Cox displayed name on leaderboard
-
- Premium Donator
- Posts: 328
- Joined: Tue Oct 30, 2018 7:21 pm
- Location: Belgium
Cox displayed name on leaderboard
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 !!!!!!!!!!!!!!!!!!!!
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 !!!!!!!!!!!!!!!!!!!!
- Wir3d
- Honor Player
- Posts: 2020
- Joined: Fri May 24, 2013 12:44 pm
Re: Cox displayed name on leaderboard
You died at p2? MVP gets name displayed for carrying teams through raids.
- Respire1337
- Premium Donator
- Posts: 2555
- Joined: Fri Dec 02, 2016 9:56 pm
-
- Premium Donator
- Posts: 205
- Joined: Tue Nov 05, 2013 7:52 pm
Re: Cox displayed name on leaderboard
i think its fine
-
- Premium Donator
- Posts: 328
- Joined: Tue Oct 30, 2018 7:21 pm
- Location: Belgium
Re: Cox displayed name on leaderboard
It’s not, it’s mostly me who creates it
-
- Developer
- Posts: 2696
- Joined: Sun Dec 30, 2018 2:50 am
Re: Cox displayed name on leaderboard
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
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
- Wir3d
- Honor Player
- Posts: 2020
- Joined: Fri May 24, 2013 12:44 pm
Re: Cox displayed name on leaderboard
Tl;dr:
MVP gets name first on leaderboards
MVP gets name first on leaderboards
- Respire1337
- Premium Donator
- Posts: 2555
- Joined: Fri Dec 02, 2016 9:56 pm
- Wir3d
- Honor Player
- Posts: 2020
- Joined: Fri May 24, 2013 12:44 pm
Re: Cox displayed name on leaderboard
Ask who had highest points in raid =)
- Iron vok
- Honor Player
- Posts: 177
- Joined: Thu Jun 19, 2014 8:51 pm
Re: Cox displayed name on leaderboard
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.