play-games-plugin-for-unity
play-games-plugin-for-unity copied to clipboard
PlayGamesPlatform.Instance.LoadScores returns old scores
This is the code that I use:
PlayGamesPlatform.Instance.LoadScores(
"CgkIvJ3e4_MWEAIQAQ",
LeaderboardStart.PlayerCentered,
100,
LeaderboardCollection.Public,
LeaderboardTimeSpan.AllTime,
(data) =>
{
foreach(var score in data.Scores)
{
Debug.Log(score.value + " - " + score.userID + " - " + score.leaderboardID);
}
});
When I load scores using the API (Social API or PlayGamesPlatform.Instance), I get out of date scores.
But, when I use ShowLeaderBoardUI() function instead, the scores are correct in the GUI.
Is this normal?
UPDATE EDIT:
The problem seems to be LeaderboardStart.PlayerCentered.
When I use PlayerCentered it returns old or wrong values, instead when I use LeaderboardStart.TopScores I get the right values.
Why does this happen?
I confirm, PlayerCentered returns old scores
LeaderboardStart.TopScores seems to return the highest score in the game from all players, should I filter to find the player's highscore? That sounds like an issue if the leaderboard contains a lot of entries
LeaderboardStart.TopScores seems to return the highest score in the game from all players, should I filter to find the player's highscore? That sounds like an issue if the leaderboard contains a lot of entries
See #2740 I recently opened. There's also a bug where if you use PlayCentered it doesn't provide any paging, making it practically impossible to make a custom leaderboard UI starting from the PlayCentered part of the data.
Thanks for reporting. We are looking at it.
Any news on this issue? Thanks!
Same here, using 0.10.7. Any hint how this could be fixed maybe locally already before an official new version is released? I can successfully write a new score (also then shown on different device), however reading it back again locally will just deliver a previous value only. Opening the „stock“ leaderboard UI, though, will already show the new value. So I‘d suspect some internal caching to be a bit too sustainable...
Same on 0.10.8, PlayerCentered returns old values.
Same thing also happens when using PlayGamesPlatform.Instance.ShowLeaderboardUI()
.
@olehkuznetsov Any updates on this critical issue?
In the BlueStack emulator PlayGamesPlatform.Instance.ShowLeaderboardUI() returns true values but in my phone return old values
This breaks the entire plugin and is still not fixed after 1 damn year? Wow.
Correct me if I'm wrong, but it seems that the "All times" is slow to update. When you check the score with "Today" filter on the Leaderboard GUI it displays the updated score, but the "All times" remains with the old one, so the issue may be the way "All times" is being updated, so they don't overburden their servers while collecting scores from, well, all time.
Any updates on this? Running into the same issue.
Hey there. Is there any update?
UPD. Added a PR with the fix: https://github.com/playgameservices/play-games-plugin-for-unity/pull/3228
Hey there. Is there any update?
UPD. Added a PR with the fix: #3228
Thanks! Your pull request helped me