Microsoft Azure PlayFab logo
    • Multiplayer
    • LiveOps
    • Data & Analytics
    • Add-ons
    • For Any Role

      • Engineer
      • Designer
      • Executive
      • Marketer
    • For Any Stage

      • Build
      • Improve
      • Grow
    • For Any Size

      • Solo
      • Indie
      • AAA
  • Runs on PlayFab
  • Pricing
    • Blog
    • Forums
    • Contact us
  • Sign up
  • Sign in
  • Ask a question
  • Spaces
    • PlayStream
    • Feature Requests
    • Add-on Marketplace
    • Bugs
    • API and SDK Questions
    • General Discussion
    • LiveOps
    • Topics
    • Questions
    • Articles
    • Ideas
    • Users
    • Badges
  • Home /
  • API and SDK Questions /
avatar image
Question by Tamer Nasser · Jul 28, 2020 at 06:16 PM · CloudScriptLeaderboards and Statistics

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.

Comment

People who like this

0 Show 0
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

· Add your reply
  • Sort: 
avatar image

Answer by Sarah Zhang · Jul 29, 2020 at 06:46 AM

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.

Comment

People who like this

0 Show 0 · Share
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Navigation

Spaces
  • General Discussion
  • API and SDK Questions
  • Feature Requests
  • PlayStream
  • Bugs
  • Add-on Marketplace
  • LiveOps
  • Follow this Question

    Answers Answers and Comments

    3 People are following this question.

    avatar image avatar image avatar image

    Related Questions

    Update Statistic: invocation of cloud script function failed 1 Answer

    Is there a "log level" for ExecuteCloudScript? 1 Answer

    How to get the position (rank) of the leaderboard when you reset the leaderboard. And send a notification with rank? 1 Answer

    Azure Function PLAYFAB_DEV_SECRET_KEY simple question 1 Answer

    Cloudscript Updating Statistics 4 Answers

    PlayFab

    • Multiplayer
    • LiveOps
    • Data & Analytics
    • Runs on PlayFab
    • Pricing

    Solutions

    • For Any Role

      • Engineer
      • Designer
      • Executive
      • Marketer
    • For Any Stage

      • Build
      • Improve
      • Grow
    • For Any Size

      • Solo
      • Indie
      • AAA

    Engineers

    • Documentation
    • Quickstarts
    • API Reference
    • SDKs
    • Usage Limits

    Resources

    • Forums
    • Contact us
    • Blog
    • Service Health
    • Terms of Service
    • Attribution

    Follow us

    • Facebook
    • Twitter
    • LinkedIn
    • YouTube
    • Sitemap
    • Contact Microsoft
    • Privacy & cookies
    • Terms of use
    • Trademarks
    • Safety & eco
    • About our ads
    • © Microsoft 2020
    • Anonymous
    • Sign in
    • Create
    • Ask a question
    • Create an article
    • Post an idea
    • Spaces
    • PlayStream
    • Feature Requests
    • Add-on Marketplace
    • Bugs
    • API and SDK Questions
    • General Discussion
    • LiveOps
    • Explore
    • Topics
    • Questions
    • Articles
    • Ideas
    • Users
    • Badges