Cox displayed name on leaderboard

Having a problem on the server? Post it here.
Mitrovic
Premium Donator
Posts: 328
Joined: Tue Oct 30, 2018 7:21 pm
Location: Belgium

Cox displayed name on leaderboard

Post by Mitrovic » Sat Feb 18, 2023 12:10 pm

Hello.

How does it work whose name is displayed on the COX leaderboard, when raiding in teams?
Raided with wir3d, he leeched soooo hard, yet his name is displayed on the leaderboard, I cba !!!!!!!!!!!!!!!!!!!!
Image

User avatar
Wir3d
Honor Player
Posts: 2020
Joined: Fri May 24, 2013 12:44 pm

Re: Cox displayed name on leaderboard

Post by Wir3d » Sat Feb 18, 2023 12:16 pm

Mitrovic wrote: Sat Feb 18, 2023 12:10 pm Hello.

How does it work whose name is displayed on the COX leaderboard, when raiding in teams?
Raided with wir3d, he leeched soooo hard, yet his name is displayed on the leaderboard, I cba !!!!!!!!!!!!!!!!!!!!
You died at p2? MVP gets name displayed for carrying teams through raids.
Image
Image
An Iron Noob wrote:This server would be way more successful, have greater player retention, and better, more positive vibes if it weren't for Nazuths and roddycc.

User avatar
Respire1337
Premium Donator
Posts: 2555
Joined: Fri Dec 02, 2016 9:56 pm

Re: Cox displayed name on leaderboard

Post by Respire1337 » Sat Feb 18, 2023 1:17 pm

No, it's whoever created the party at first I believe
Image

Korasi2
Premium Donator
Posts: 205
Joined: Tue Nov 05, 2013 7:52 pm

Re: Cox displayed name on leaderboard

Post by Korasi2 » Sat Feb 18, 2023 5:27 pm

i think its fine

Mitrovic
Premium Donator
Posts: 328
Joined: Tue Oct 30, 2018 7:21 pm
Location: Belgium

Re: Cox displayed name on leaderboard

Post by Mitrovic » Sat Feb 18, 2023 6:50 pm

Respire1337 wrote: Sat Feb 18, 2023 1:17 pm No, it's whoever created the party at first I believe
It’s not, it’s mostly me who creates it
Image

Raj
Developer
Posts: 2696
Joined: Sun Dec 30, 2018 2:50 am

Re: Cox displayed name on leaderboard

Post by Raj » Sat Feb 18, 2023 7:40 pm

Ok, so I'm like 80% sure what I'm about to say is true, but I'm not entirely sure

When the CoX highscores are saved to the database, n rows are created in the database, one for each player in the party. The player whose name is displayed is the one which is in the first row to be returned in the database query for the highscores. So like, hypothetically, if that table was indexed or shuffled or something, you might see the "leaders" names change. Only a few nerds will really understand that but it is relevant in a technical sense because what you get may not be indicative of how you saved it, which is relevant for the next part.

In terms of the ordering of the entries when being saved to the database, it looks like the rows are saved in the order in which players enter the pre-raid lobby. If a player enters then leaves, they are saved last, unless another player enters after them. If the database chooses to reorder the rows for some reason, then disregard this, because it's entirely random. But I doubt that's the case.

Again, only about 80% sure, the collection in question is referenced like 100 times in the source, and I looked at a total of 2 calls to add() and 1 call to remove(), so there might be other times players are added and removed from that list which I've missed

Tl;dr:
First person to enter the lobby without leaving between then and raid start is displayed I think

User avatar
Wir3d
Honor Player
Posts: 2020
Joined: Fri May 24, 2013 12:44 pm

Re: Cox displayed name on leaderboard

Post by Wir3d » Sat Feb 18, 2023 7:52 pm

Tl;dr:

MVP gets name first on leaderboards
Image
Image
An Iron Noob wrote:This server would be way more successful, have greater player retention, and better, more positive vibes if it weren't for Nazuths and roddycc.

User avatar
Respire1337
Premium Donator
Posts: 2555
Joined: Fri Dec 02, 2016 9:56 pm

Re: Cox displayed name on leaderboard

Post by Respire1337 » Sat Feb 18, 2023 8:04 pm

Wir3d wrote: Sat Feb 18, 2023 7:52 pm Tl;dr:

MVP gets name first on leaderboards
No, it ain't true leech beech
Image

User avatar
Wir3d
Honor Player
Posts: 2020
Joined: Fri May 24, 2013 12:44 pm

Re: Cox displayed name on leaderboard

Post by Wir3d » Sat Feb 18, 2023 10:20 pm

Respire1337 wrote: Sat Feb 18, 2023 8:04 pm
Wir3d wrote: Sat Feb 18, 2023 7:52 pm Tl;dr:

MVP gets name first on leaderboards
No, it ain't true leech beech
:kekw: Ask who had highest points in raid =)
Image
Image
An Iron Noob wrote:This server would be way more successful, have greater player retention, and better, more positive vibes if it weren't for Nazuths and roddycc.

User avatar
Iron vok
Honor Player
Posts: 177
Joined: Thu Jun 19, 2014 8:51 pm

Re: Cox displayed name on leaderboard

Post by Iron vok » Tue Mar 28, 2023 9:33 pm

Raj wrote: Sat Feb 18, 2023 7:40 pm
Tl;dr:
First person to enter the lobby without leaving between then and raid start is displayed I think
Image


Joey and I didn't create the party for slot 1 and 2. If we didn't create the party, we couldn't have been the first ones into the lobby.
Image
Image
Image

Post Reply