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 Nithin · Sep 23, 2020 at 06:49 AM · apisLeaderboards and StatisticsIn-Game Economy

Prize tables are not rewarding instantly after reset

I'm using leaderboards that reset on daily basis and reward players after reset happens. I'm calling GetUserInventory API once leaderboard resets(displaying remaining time to reset in game) to get information on virtual currency and it is returning 0. When i tried calling API again, it displays correct result. So, only the players who are in game when remaining time becomes 0 might feel bad. Why does the rewarding doesn't happen instantly along with the leaderboard version change?? Need a way to solve this..

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

2 Replies

· Add your reply
  • Sort: 
avatar image
Best Answer

Answer by Sarah Zhang · Sep 30, 2020 at 01:50 AM

Since the rewarding prize table would be triggered after leaderboards are reset. And it's the batch operation. It will inevitably have a little delay.You can consider extending the timer, adding some automatic retry mechanisms to the clients to make sure the data updates on the clients.

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
avatar image

Answer by Sarah Zhang · Sep 23, 2020 at 09:01 AM

Could you please provide the exact application scenario? Could you please descript that why the players in game would feel bad when remaining time becomes 0?

Comment

People who like this

0 Show 1 · 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
avatar image Nithin · Sep 23, 2020 at 09:58 AM 0
Share

Hi @Sarah Zhang, thanks for the reply and sorry for being unclear. So, in my game i'm displaying remaining time for leaderboard reset and once it becomes 00:00:00 ((i.e) when reset happened), i'm calling GetUserInventory to get information on rewarded virtual currency for the player and it's showing 0 currency. If the player exits and restart the game, (i.e API gets called again), then it's able to get currency value properly..Not sure why it's happening..

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

    TypeError: server.UpdateCatalogItems is not a function 1 Answer

    Creating statistics/leaderboards dynamically using the admin API. 1 Answer

    Is there a way to get Limited Edition Count Available from server or client API? 1 Answer

    Purchase Item - Potentioal Bug? 1 Answer

    Simple leaderboard tutorial for Unity? 1 Answer

    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