question

fivefinger2015 avatar image
fivefinger2015 asked

I'm curious about how the tie-breakers are handled on the leaderboard.

The game is using a leaderboard.

A reward table is connected to the leaderboard.

If there is a tie on the leaderboard, the person who scored late will take the first place.

In the case of a tie, is it correct that the person who arrives late will be ranked first?

The person who reached first
Is there any way to get first place?
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

·
Sarah Zhang avatar image
Sarah Zhang answered

>> In the case of a tie, is it correct that the person who arrives late will be ranked first?

In PlayFab, the tied rankings won’t be sorted based on the statistics update time. They are sorted based on the size of PlayFabId(Hexadecimal random number), the bigger PlayFabId would be ranked higher. It’s not a correct way to handle the tied rankings. We will improve it in the Leaderboard v2. Currently, PlayFab leaderboard doesn’t support handling the tied rank.

>> The person who reached first Is there any way to get first place?

As the above answer said, PlayFab doesn’t support such features now. As this thread -- Is there a way to sort 2 users with the same score value on leaderboard ? - Playfab Community said, the possible workaround is using the upper bits of the statistic value as the score, and the lower bits for the time. You can write a CloudScript function to merge them, then upload the result.

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.