How to Get Stat Value of another Player using Just DisplayTitleName?
How to Get Stat Value of another Player using Just DisplayTitleName?
I know there are many ways to retrieve Statvalue. But lets say we have friend in friendlist and we have ShowStatistics value set true in settings,
would there be any implications? security wise? what could be the worst possible scenario if we turn on the ShowStatistics value in Title Settings for PlayerProfileViewConstraints.
I believe it is safe, because client API’s capability is very limited and most of the jobs can be done only impact itself. However, if showStatistics is enabled, all the statistics will be exposed to players and there is no option for exposing partially. The impacts really depend on how you design the purpose of statistics, but in my point of view, there won’t be abusive usage since we should disallow players to update statistics by themselves.
If you still have concerns, you can write a cloud script function that receives target player ID and call server API directly, without enabling corresponding option in Game Manager.
Okay this is good. But one little confusion. What happens when we turn the ShowStatsValue on or off? the values are exposed in both cases right? whether if its on or off? I dont get it. If we set the value to OFF what happens then? what is exposed and what isnt? arent we exposing the statvalues when we are calling the GetStatisticsRequest method to retrieve the stats?
I've just realised it that GetStatisticsRequest method is to get OUR stats. but ShowStatsValue is for all other profiles other than ours. Right?
First, it only affects client API, which means either on or off, server API can always review any players' any statistics.
Second, if Statistics option is off in "ALLOW CLIENT ACCESS TO PROFILE PROPERTIES" section of title settings in the game manager. Players cannot check any statistics in the profile property, including their own, but it only affects the profile related API, like GetPlayerProfile, which also means either it is on or off, it doesn't affect GetPlayerStatistics API (since its client API can only retrieve the player self's statistics) .When it is ON, GetPlayerProfile client API can get any players' statistics.
So what do You say? In our game Each player needs to Access Two Other Players StatValue. ,Every 2 mins or so.
Which one would be better? Get the statistic value thru a cloudscript or set the ShowStatsValue to true in profile properties.
3 People are following this question.