question

brendan avatar image
brendan asked

Are players cheating my leaderboards?

Question from a developer:

There are many users have impossibly high scores on my game's leaderboard. I checked their event histories and I'm not seeing any events, though. How is this possible?

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.

1 Answer

·
brendan avatar image
brendan answered

Having reviewed your title, the players are able to cheat their scores because you have enabled allowing the client to post statistics (in Settings->API). This is off by default for all titles, so that players cannot post whatever score they want to - the idea is that you would have the client submit scores via Cloud Script, where you can use server authoritative code to check things you need to, like min/max score, time since last score posted, etc. This is called out in more detail in our tutorial on statistics and leaderboards, here: https://api.playfab.com/docs/tutorials/landing-players/player-statistics

The reason you're not seeing any events for some of the players is because the events in question are beyond the limit of your retention period (7 days). For example, the #1 player on your "Highscore" leaderboard, PlayFab ID 2ABBC00EF3A3A752, hasn't logged in since June 19th.

2 comments
10 |1200

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

Esteban Feldman avatar image Esteban Feldman commented ·

Do you have an example on how to implement Scores and Leaderboards for a simple game with Cloud Script? Thanks

Edit: Using the JS SDK if possible

2 Likes 2 ·
Esteban Feldman avatar image Esteban Feldman Esteban Feldman commented ·

As you can see the only way you explain is the insecure way:

https://docs.microsoft.com/en-us/gaming/playfab/features/social/tournaments-leaderboards/quickstart

```

  1. Select Title settings off the Settings menu for your title.
  2. Select the API Features tab.
  3. Check the box for Allow client to post player statistics.
  4. Click the SAVE button at the bottom of the screen.

```

0 Likes 0 ·

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.