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 Taran Saini · 6 days ago · Leaderboards and Statistics

Weekly leaderboard not resetting properly

We currently have two weekly leaderboards for wins and kills. We've noticed in recent weeks that when leaderboards reset, some players are still incrementing the previous week's value instead of incrementing from 0. These players seem to be carrying their previous week's value over to the next week's leaderboards. We dealt with this so far by manually resetting weekly leaderboards.

Regarding updating player statistics: We have already taken into account players who may be playing during a leaderboard reset so this shouldn't be an issue (set player statistic is called in our cloud scripts and retrieve current player statistics before updating to make sure it has the most up to date statistics).

Comment

People who like this

0 Show 4
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 Citrus Yan ♦ · 6 days ago 0
Share

May I have your title id, the PlayFabId & statistic name of those players whose leaderboard not resetting properly?

avatar image Taran Saini Citrus Yan ♦ · 5 days ago 0
Share

Title Id: A7796

Statistic Name: Weekly_wins

PlayFabIds: ACB75AE02917680D, F514C9DF1D1C78D5

Note: The player's ids provided are taken from this weeks reset. Players who leaderboards are not resetting are different week by week.

avatar image Citrus Yan ♦ Taran Saini · 4 days ago 0
Share

I checked both of the players you provided and cannot identify the issue you were having. Take player ACB75AE02917680D for example, I can see the "player_statistic_changed" event emitted around 2021-02-22T00:06:34.0139147Z, which is about one minute after the weekly reset (2021-02-22T00:05:34.5387163Z):

{
    "PlayFabEnvironment": {
        "Application": "mainservercloudscriptint",
        "Vertical": "master",
        "Commit": "535f9a6",
        "Cloud": "main"
    },
    "EventNamespace": "com.playfab",
    "StatisticName": "Weekly_wins",
    "EntityType": "player",
    "SourceType": "BackEnd",
    "Timestamp": "2021-02-22T00:06:34.0139147Z",
    "EventName": "player_statistic_changed",
    "EntityId": "ACB75AE02917680D",
    "EventId": "b29c75a3e9b8457e9e87744f6457aacb",
    "TitleId": "A7796",
    "Version": 26,
    "Source": "PlayFab",
    "AggregationMethod": "Last",
    "StatisticValue": 69,
    "StatisticId": 1828836447
}

You can see there is no field called "StatisticPreviousValue" included in this event, compared to an event with a previous value:

"Version": 26,
"Source": "PlayFab",
"StatisticPreviousValue": 0,
"AggregationMethod": "Last",
"StatisticValue": 1<br>
Show more comments

0 Replies

· Add your reply
  • Sort: 

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

    Playfab ID deleted from my game still being pulled by leaderboard. 3 Answers

    Playfab-Unity Leaderboard with Facebook Login 1 Answer

    Getting all clan members data/account information without making a lot of API calls 1 Answer

    How many previous statistic value versions is returned in PlayerProfileModel.Statistics? 1 Answer

    How to delete a leaderboard? 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