question

Stefano Zinna avatar image
Stefano Zinna asked

2 or more players with same score in leaderboard

Hello All,

If 2 players have the same score which will be the order in the leader board? I saw similar question in the past with people asking to differentiate based on time stamp: who deliver the score earlier come first. Is this the case now?

My situation is a bit more complicated: I have a daily leaderboard and an associated prize table that increment a weekly leaderboard. Every day the weekly leaderboard is updated depending on the position in the daily leaderboard. In this case it is important in which order the prize table is processed: will be from top position to the bottom (and players at top will send their score in the weekly leaderboard earlier) OR from bottom position to top (and players at bottom will send their score in the weekly leaderboard earlier). Hence y second question is in which order the weekly leadeboard will be updated based on the prize table?

unity3dLeaderboards and Statistics
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
Neils Shi avatar image
Neils Shi answered

In PlayFab, the tied rankings won’t be sorted based on the statistics update time. When two players have the same score, the API GetLeaderboard will return different rankings for them (the ranking depends on our internal algorithms). And when they each call the API GetLeaderboardAroundPlayer to retrieve their rankings, then their rankings are actually consistent. You can refer to GetLeaderboardAroundPlayer returns different Position than GetLeaderboard - Playfab Community for more details. In your case, since the tied rankings are not sorted based on the statistics update time, it makes no difference to have the top or bottom players send their scores first or later. For now, the possible workaround is to avoid the same statistics, as this thread -- Is there a way to sort 2 users with the same score value on leaderboard ? - Playfab Community said, you can use the upper bits of the statistic value as the score, and the lower bits for the time.

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.