Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LoadScores with argument PlayerCentered returns wrong values #2354

Open
eklebanski opened this issue Nov 12, 2018 · 6 comments
Open

LoadScores with argument PlayerCentered returns wrong values #2354

eklebanski opened this issue Nov 12, 2018 · 6 comments

Comments

@eklebanski
Copy link

eklebanski commented Nov 12, 2018

I've noticed that my code started to return wrong result lately (after GPS update). I'm using unity 5.6.x. The returned result is always first top ten scores even though my rank is far way below 10. In the past everything worked fine, no "social" code has been changed other than mentioned GPS/plugins updates. Anyone experience the same issue?

I'm using following version of a LoadScore funcion:

 PlayGamesPlatform.Instance.LoadScores(
            leaderboardId, LeaderboardStart.PlayerCentered, 10,
            LeaderboardCollection.Public, LeaderboardTimeSpan.AllTime,
            (data) => ...
@eklebanski
Copy link
Author

eklebanski commented Nov 13, 2018

One additional information - I've checked my old builds from years ago which were working correctly (returning only 10 leaderboard scores "around" player's score) and the same issue exists. It seems like some change within Google Play servers... ? Is function LoadScores with PlayerCentered argument work properly for you guys?

And another information - when playing a game and getting a new top 10 score, the returned 10 values from LoadScores doesn't have the new entry. On the other hand checking the leaderboard through Google Play Games UI (ShowLeaderboard method) shows the entries properly (with my new high score).

Anyone knows what can cause such a weird behaviour?

@olehkuznetsov
Copy link
Contributor

I've checked using java client SDK and it seems backend works fine for PlayerCentered scores.
It could be a cached version of scores. Have you tried the same hour later?

@olehkuznetsov
Copy link
Contributor

Also, please, check if profile you are using is set to public in Play Games Settings.

@PrometeoProduction
Copy link

Hey,I have the same problem(#2674 ),have you solved it?

@exzizt
Copy link

exzizt commented Oct 3, 2019

See my issue #2740. Using PlayerCentered also doesn't set the next/previous pages, making it impossible to implement custom leaderboard UI with the PlayerCentered approach.

@Ash2022
Copy link

Ash2022 commented Jul 11, 2020

I get the exact same problem - i request Top 3 scores - i get my result as X with my user, then i send another request - this time playerCentered - with only 1 record - i get myself again - with the same user ID and name - BUT the score is different - seems like its an older cached score. not sure

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants