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 /
  • Bugs /
avatar image
Question by k-krrs · Mar 14, 2018 at 02:42 PM · apisLeaderboards and Statistics

UpdatePlayerStatistics no longer working

The server API's UpdatePlayerStatistics no longer works - it adds 2 Points (our statistics) the first time and then just stays at two until the next reset. What gives?

TitleID: 1F03

Comment

People who like this

0 Show 1
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 pfnathan ♦ · Mar 14, 2018 at 09:52 PM 0
Share

We are investigating the issue, will post an update.

1 Reply

· Add your reply
  • Sort: 
avatar image
Best Answer

Answer by Brendan · Mar 15, 2018 at 01:24 AM

Your aggregation type is set to "Last" (https://developer.playfab.com/en-us/1F03/leaderboards/UG9pbnRz/edit). If your goal is to add the value passed in the UpdatePlayerStatistics call to the player's current value, increasing it, you should set it to "Sum" aggregation.

Comment
pfnathan

People who like this

1 Show 3 · 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 Tibor Dandi · Apr 11, 2021 at 02:11 PM 0
Share

Hi there.

im using ue4 and your plugin


When i update a character stat with cloud script the sum works well,but when i wanna update via blueprints it does not sum the exist statistic number only replace it. can you tell me why?

I already set the stats to "sum" aggregation.

you can see on the pics bottom.

thanks

1.png (464.7 kB)
2.png (134.8 kB)
avatar image henriquecarv · May 05, 2021 at 07:09 AM 0
Share

Hi Brendan,

Thanks for this clarification. It makes total sense.

I might have not noticed before, has the "Sum" aggregation option always been there?

Also, it appears that some of my Leaderboards with "Last" aggregation, have been behaving as if they were "Sum", for quite some time. Do you have any thoughts on that?

avatar image henriquecarv · May 05, 2021 at 07:20 AM 0
Share

Actually, it makes sense now. Feel free to disregard my previous comment :)

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

    4 People are following this question.

    avatar image avatar image avatar image avatar image

    Related Questions

    GetLeaderboardAroundPlayer api call failing 0 Answers

    UE4 continually crashing 1 Answer

    Leaderboard limits? No where does it say this. 2 Answers

    Leaderboards AvatarUrl and LinkedAccounts are always Null. 2 Answers

    GetFriendLeaderboard allwase return 0 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