4

I have a leaderboard with tamper protection ON since it's creation, but a player has added a hacked score of some millions of points (human reachable max of points is less than 1000)

How can I delete only that hacked score? It must be a way to do it... but can't find in documentation: https://developers.google.com/games/services/common/concepts/leaderboards

Brian Tompsett - 汤莱恩
  • 5,753
  • 72
  • 57
  • 129
NullPointerException
  • 36,107
  • 79
  • 222
  • 382

3 Answers3

3

Check out the players.hide() call. This will hide a player and all of his/her scores from the public leaderboard so that nobody else can see them.

Note that this REST call is not built into the mobile libraries; you'll need to create your own mini web app (or make curl calls directly) to use this call, although there is a management tools sample app that you can use here which might make your life easier.

Oh, and if you know that the human reachable high score has to be 1000 max, specify a "Max score" of 1000 for that leaderboard in the Play Games Console.

Todd Kerpelman
  • 16,875
  • 4
  • 42
  • 40
2

What I do is some kind of obfuscation.

I mean, I do replace numbers with an string like

0 = #$%@&*52$*@ 
1 = #$%@&*84$*$
2 = #$%@&*58$*#

separated for another unique string like: %$$90&* and so on.

so when I go to post the score, first I do a find and replace the string for each number, as I am posting the score locally the data would look like;

122 = #$%@&*84$*$%$$90&*#$%@&*58$*#%$$90&*#$%@&*58$*#

so its a little bit difficult (not impossible) to post a hacked score

1

You can use Google Developers OAuth 2.0 Playground to do the players.hide() as mentioned by @todd-kerpelman, following the instruction in this article, but it is still a very tedious process.

I used the management-tools before too, but it seems to be not working any more.

Richard Fu
  • 616
  • 10
  • 27