Saving global stats that are accessible with listFriends request.
-
Hi there

I am trying to find a way to store data for things like:
xp, rank points, currentSkin, currentHat, etc..
So that when a players logs in and gets list of friends he will be able to see their level, rank apoints, and aesthetic stuff like skin and hat.So I though summaryFriendData is a great place to keep these stats because it is automatically added in many responses, BUT... clients can just alter their own summaryFriendData and set "xp" to 999,999, "rank points" to 999,999 and "currentSkin" to "superRareSkin" (and cheat).
So my question is, where do I store this kind of public data while still (a) getting it for each friend in listFriends request. (b) not letting the client alter it and the opportunity to cheat.
Thanks!
-
To limit operations like IncrementExperiencePoints() to cloud code only. This will essentially take away the ability to make these calls from the bare client API. You can see a script that enforces these restrictions here - https://getbraincloud.com/apidocs/cloud-code-central/handy-cloud-code-scripts/restrictclientcalls-script/
Refer to another post below for more strategies you can apply to prevent cheating: https://forums.getbraincloud.com/topic/23/discussion-strategies-to-prevent-cheating-in-tournaments
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login