Page 1 of 2

Cox displayed name on leaderboard

Posted: Sat Feb 18, 2023 12:10 pm
by Mitrovic
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 !!!!!!!!!!!!!!!!!!!!

Re: Cox displayed name on leaderboard

Posted: Sat Feb 18, 2023 12:16 pm
by Wir3d
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.

Re: Cox displayed name on leaderboard

Posted: Sat Feb 18, 2023 1:17 pm
by Respire1337
No, it's whoever created the party at first I believe

Re: Cox displayed name on leaderboard

Posted: Sat Feb 18, 2023 5:27 pm
by Korasi2
i think its fine

Re: Cox displayed name on leaderboard

Posted: Sat Feb 18, 2023 6:50 pm
by Mitrovic
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

Re: Cox displayed name on leaderboard

Posted: Sat Feb 18, 2023 7:40 pm
by Raj
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

Re: Cox displayed name on leaderboard

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

MVP gets name first on leaderboards

Re: Cox displayed name on leaderboard

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

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

Re: Cox displayed name on leaderboard

Posted: Sat Feb 18, 2023 10:20 pm
by Wir3d
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 =)

Re: Cox displayed name on leaderboard

Posted: Tue Mar 28, 2023 9:33 pm
by Iron vok
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.