question

Tamer Nasser avatar image
Tamer Nasser asked

CloudScript is not returning the right value of player statistics

Hello


I have started a production title to use it for the live version we have, but we faced a weird issue.
We have a handler that returns the statistics but for unknown reason it is returning the value 1 for the statistics instead of the real value.


The handler from CloudScript, I edited it to make short so it just returns the response of GerPlayerStatistics.

https://imgur.com/ErZ6yCd


The response I get:

https://imgur.com/mo0SqIq

The statistics value:

https://imgur.com/HIeaBl7




Note: The exact handler works great on the development title, both development and production title have the same configuration/settings.

CloudScriptLeaderboards 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

·
Sarah Zhang avatar image
Sarah Zhang answered

Could you please provide the source code that contains the logic to get “stats” or provide your TitleId? We cannot reproduce the issue according to the current info provided. The “FunctionResult” in the 2nd screenshot is “stats”. Now we have tested the CloudScript that you provided in the 1st screenshot, it can return the correct result of “playerStats”.

Besides, if you have a PlayFab live title, you can navigate to [Game Manager]->[(?)]->[Contact Us] -- https://developer.playfab.com/en-US/r/t/[YourTitleID]/support (replace [YourTitleID] to your actual title Id), to submit any questions via support tickets. You can submit your questions via support tickets if you want to discuss it in private supports.

10 |1200

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

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.