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 /
  • General Discussion /
avatar image
Question by Nithin · Jul 20, 2020 at 06:26 AM · Player DataLeaderboards and Statistics

How to create leader-boards according to the timestamp ?

I want to create a different leader-boards based on timestamp i.e one leader-board should display users who have entered a game-event (maybe from a button-click) in last 30 min(for example) and another leader-board should contain next 30 min users. How to achieve 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

1 Reply

· Add your reply
  • Sort: 
avatar image
Best Answer

Answer by Sarah Zhang · Jul 20, 2020 at 02:45 PM

To meet your requirements, you can consider resetting the leaderboard every 30 minutes. If so, the ranking of each period will be separately stored in the different leaderboard versions. PlayFab's Leaderboard supports scheduled resetting, and the fastest reset period supported natively is an hour. You can refer to this documentation -- https://docs.microsoft.com/en-us/gaming/playfab/features/social/tournaments-leaderboards/using-resettable-statistics-and-leaderboards for more details.

If you want to reset the leaderboard every 30 minutes, you can check this section -- https://docs.microsoft.com/en-us/gaming/playfab/features/social/tournaments-leaderboards/using-resettable-statistics-and-leaderboards#manually-resetting-a-statistic for more assistance. We would suggest you call the admin API sets only in the custom server and administration tools.

Comment

People who like this

0 Show 4 · 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 · Jul 21, 2020 at 04:41 AM 0
Share

Hi @Sarah Zhang, thanks for the reply...Actually, i'm making a tournament in game, that'll remain for 24 hrs, and I have to display leaderboard for all users who joined in first 30 min, when the event started, that will keep on updating until it ends(24 hrs). And after that, next 30 min. users should see different players in leaderboard(which will also continue updating till 24 hrs). So that 1st, 2nd, 3rd prizes can be awarded to maximum no. of people(that's what my requirement is)..Do i need to maintain different leaderboards, any API or other suggestions please..

avatar image Sarah Zhang Nithin · Jul 21, 2020 at 09:09 AM 0
Share

Yes, you may need to maintain different leaderboards. You can create all empty leaderboards in the Game Manager in advance, then add players from different periods to their respective leaderboards. For the Free Plan title, up to 300 leaderboards can be created.

Are the “first 30 minutes players”(Player Group 1) and the “next 30 minutes players” (Player Group 2) in the one tournament? Does “Player Group 1” and “Player Group 2” need to be compared with each other? If they need to be compared with each other and at the same time they need to have their respective ranking, you can create 3 leaderboards for them, like “Group1 Ranking”, ”Group2 Ranking” and “1&2 Total Ranking”.

The players in group 1 can upload their scores to “Group1 Ranking” and “1&2 Total Ranking” using client API UpdatePlayerStatistics. The players in group 2 can upload their scores to “Group2 Ranking” and “1&2 Total Ranking” using client API UpdatePlayerStatistics.

Then you can refer to this documentation -- Using prize tables to reward the 1st, 2nd, 3rd players.

avatar image Nithin Sarah Zhang · Jul 21, 2020 at 11:26 AM 0
Share

Thank you @Sarah Zhang for the information. One last thing, isn't there a way to do it without different leaderboards? Like..retrieving only a certain no. of players in leaderboard who joined in 30 min. timestamp ? Thanks in advance..

Show more comments

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

    Player Segment value are loading indefinitely 1 Answer

    Getting Player Title Data with Leaderboards? 2 Answers

    error CS0120: An object reference is required for the non-static field, method, or property 'PlayFabManager.SendLeaderboard(int)' 1 Answer

    How to create leader-boards according to the timestamp ? 0 Answers

    Setting the currency of a player to an existing statistic? 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