31

I've done some tests while integrating the new Google Play Games with fake scores, now I need to reset the leaderboards before publishing my game!

I found this REST API: https://developers.google.com/games/services/management/api/?hl=en#Scores

But this seems to be related only to web games, not Android games: "Use the Google Play game services REST API to set and retrieve game services data from your web game"

Thanks!

thiagolr
  • 6,909
  • 6
  • 44
  • 64
  • 3
    If you down vote a question, you should at least explain why... – thiagolr May 17 '13 at 10:57
  • 7
    I don't agree with this question being closed, this is a new service launched this week and I'm pretty sure there will be other people asking the same question, wondering how to reset unpublished leaderboard scores... – thiagolr May 17 '13 at 14:21
  • 5
    I dont agree too, this service is new and there no information in google api documentation. – PaNaVTEC May 18 '13 at 16:02
  • Anyone interested on the answer, please vote to reopen this question! =) – thiagolr May 20 '13 at 16:10
  • Have you checked if you can reset them in the developer console?! – WarrenFaith May 21 '13 at 14:41

3 Answers3

18

I ended up switching all my leaderboards in the Developer Console to use "lowest scores are best" instead of the previous "highest scores are best" and this seems to have reset the old scores that were saved. It's a bit of a hack but very useful. You could probably switch back again and everything would still be cleared.

Gabriel
  • 181
  • 1
  • 2
  • This worked! I was able to switch it to Smaller is better, then immediately back to Larger is better. It immediately cleared the scores without having to rebuild anything. – Shygar Jan 22 '14 at 23:24
  • Does it work on published leaderboard? I'd like to reset the leaderboard regularly once it is live, but didn't find a way to do so... – Zennichimaro Mar 02 '14 at 09:43
  • @Zennichimaro You cannot do that on a published leaderboard. Anyway, I want to confirm that this 'hack' still works - just did it now. I still don't know of any better way. – async Sep 30 '14 at 20:11
  • Working in an unpublished leaderboard – esdebon Dec 30 '14 at 22:38
7

Updating the answer as it is now possible to reset the leaderboard during development.

You can only reset player progress data for your draft leaderboards.

To reset leaderboards in the Google Play Developer Console, click the button labeled Reset leaderboard progress at the bottom of the form for that event. To reset leaderboard data programmatically, call the Management API Scores methods.

Reference: https://developers.google.com/games/services/common/concepts/leaderboards#resetting_a_leaderboard

thiagolr
  • 6,909
  • 6
  • 44
  • 64
  • 4
    This didn't work for me. My published leaderboard had the highscores from testing and was actually broken as a result. I had to delete it and replace it with another leaderboard. – Tickled Pink May 23 '14 at 17:58
  • 1
    Yes, anyone please don't believe this. I believed it and now all my scores are their in released version. Also, leaderboards cannot be reset after publishing the game and google game center. – Kunalxigxag Jun 17 '15 at 16:45
  • This is working perfectly as described. Remember that this can be done only in draft leaderboards and **not** in published leaderboards. – Neerkoli Dec 09 '15 at 11:53
1

Reset Test Achievements and Leaderboard Scores

As of Sep 9 2013 (From the Public issue tracker for the Play Games platform):

Issue 9: reset leader board / achievement data.

If you are still in test phase, you can reset your Achievements by deleting your account from the Test list in your developer console and adding it again.

Community
  • 1
  • 1
Dannie
  • 2,430
  • 14
  • 16