question

guildofheroes12@gmail.com avatar image
guildofheroes12@gmail.com asked

Getting user's position in the leader board using GetLeaderboardAroundUser, server api

It seems like the server api, GetLeaderboardAroundUser call will return a zero-based Position value for the leaderboard entries, rather than an absolute Position value. It is returning position 0, while the position in the leaderboard is something else. Is this normal or am I missing something? Please help me out here.

Returned by GetLeaderboardAroundUser : 6966-image.png

Actual position returned by GetLeaderBoard: 6968-image.png

Player DataLeaderboards and Statistics
image.png (20.4 KiB)
image.png (17.1 KiB)
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

This behavior is not an issue of rank estimation but is because the player is tied with other players. In the case of a tie, it is possible that the two APIs will return a different rank for the same player. For more info, you can refer to https://community.playfab.com/questions/20111/getleaderboardaroundplayer-returns-different-posit.html . In addition, our team is working on making the newer statistics service, you can keep an eye on PlayFab Roadmap - PlayFab | Microsoft Learn for any updates about “Leaderboard v2”.

1 comment
10 |1200

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

Is there a timeline for Leaderboard v2? Also in the meantime, is there any work around we can do to address this issue?

0 Likes 0 ·

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.