question

Yousef avatar image
Yousef asked

Leaderboard positioning have problem

Hi Guys!
i have a problem with my game's leaderboard
my title id is : DA526

one of our users told us that he and his friends are playing the game and getting scores
but when they check leaderboard , they find out with different scores , they have same position!
i checked it on two devices and yeah it was true
for example 2 devices have exactly 3 Million score and their positions are in 2087 and if i play one level with one device and get my score higher , the score gets higher but both devices position are still at 2087

any help would be great
thanks

Leaderboards 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.

Seth Du avatar image
Seth Du answered

It is possible and by design. Based on Brendan's answer in the previous thread I have mentioned --the leaderboard provides a consistently reproducible position for each player, which is a reasonable estimate of their actual position, on a per-player basis. The position above 1000 is an estimated rank instead of precise one. Recalculating every position, for every player, each time any player in the game submits a score, would be incredibly expensive. That's why services that provide global leaderboards use estimation past a certain point in the leaderboard. Players are highly sensitive to position when they're near the top of a leaderboard. They're not when they're nowhere near the top.

I suggest you look into Brendan's detailed answer in the threads I have provided above.

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.

Yousef avatar image Yousef commented ·

Yeah now i got what brendan was saying

Ok then

Thank you @SethDu for your help

0 Likes 0 ·
Seth Du avatar image
Seth Du answered

Besides of the update latency of Leaderboard because Statistics is a shared resource, there are many other reasons may result in this issue. You may refer to Wrong leaderboard position - Playfab Community and Leaderboard positions wrong / duplicated when viewing multiple leaderboards - Playfab Community.

In addition, would you also share the callback result of GetLeaderboardAroundPlayer API? Have the Players in position 2086 and 2088 changed after the update?

10 |1200

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

Yousef avatar image
Yousef answered

Thanks for answering @SethDu



these are two device i was talking about (i played a little and positions are not same as i told you)

FYI -> in my game i sum positions with 1

{
    "code": 200,
    "status": "OK",
    "data": {
        "Leaderboard": [
            {
                "PlayFabId": "7C543AC7BF493E09",
                "StatValue": 3707651,
                "Position": 2112,
                "Profile": {
                    "PublisherId": "CA60F9DDCCD96310",
                    "TitleId": "DA526",
                    "PlayerId": "7C543AC7BF493E09"
                }
            },
            {
                "PlayFabId": "3DA778EA5D058919",
                "DisplayName": "yosiiiiiiiii",
                "StatValue": 3707006,
                "Position": 2113,
                "Profile": {
                    "PublisherId": "CA60F9DDCCD96310",
                    "TitleId": "DA526",
                    "PlayerId": "3DA778EA5D058919",
                    "DisplayName": "yosiiiiiiiii"
                }
            },
            {
                "PlayFabId": "7C044E8F71678277",
                "StatValue": 3706506,
                "Position": 2114,
                "Profile": {
                    "PublisherId": "CA60F9DDCCD96310",
                    "TitleId": "DA526",
                    "PlayerId": "7C044E8F71678277"
                }
            }
        ],
        "Version": 0
    }
}

and this is the postman log for getleaderboardarounduser as you see "yosiiiiiii" is me with correct position and my other device is not there

and when i searched my other device with postman this will happen:

{
    "code": 200,
    "status": "OK",
    "data": {
        "Leaderboard": [
            {
                "PlayFabId": "984903A8AD179865",
                "StatValue": 3702848,
                "Position": 2112,
                "Profile": {
                    "PublisherId": "CA60F9DDCCD96310",
                    "TitleId": "DA526",
                    "PlayerId": "984903A8AD179865"
                }
            },
            {
                "PlayFabId": "C821B435A2A0476",
                "DisplayName": "Useeef",
                "StatValue": 3700277,
                "Position": 2113,
                "Profile": {
                    "PublisherId": "CA60F9DDCCD96310",
                    "TitleId": "DA526",
                    "PlayerId": "C821B435A2A0476",
                    "DisplayName": "Useeef"
                }
            },
            {
                "PlayFabId": "8CFD19CA01184EC7",
                "DisplayName": "memafa",
                "StatValue": 3699845,
                "Position": 2114,
                "Profile": {
                    "PublisherId": "CA60F9DDCCD96310",
                    "TitleId": "DA526",
                    "PlayerId": "8CFD19CA01184EC7",
                    "DisplayName": "memafa"
                }
            }
        ],
        "Version": 0
    }
}

and as you see my other device "Useeef" is there with correct position but my first device is not there


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.