# steam leaderboard upload score not working as expected with k\_ELeaderboardUploadScoreMethodKeepBest

**URL:** <https://forums.unrealengine.com/t/steam-leaderboard-upload-score-not-working-as-expected-with-k_eleaderboarduploadscoremethodkeepbest/411582>\
**Category:** Platform & Builds\
**Tags:** steamworks, unreal-engine, question\
**Created:** [December 6, 2017, 8:56pm UTC](https://forums.unrealengine.com/t/steam-leaderboard-upload-score-not-working-as-expected-with-k_eleaderboarduploadscoremethodkeepbest/411582 "2017-12-06T20:56:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Troublesum](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Troublesum](https://forums.unrealengine.com/u/Troublesum)\
**Post date:** [December 6, 2017, 8:56pm UTC](https://forums.unrealengine.com/t/steam-leaderboard-upload-score-not-working-as-expected-with-k_eleaderboarduploadscoremethodkeepbest/411582/1 "2017-12-06T20:56:41Z")

</div>

Hi, I am currently having a issue with uploading scores to steam leaderboards but only for updated scores.

I am using the steam Api Directly i.e

```
SteamAPICall_t hSteamAPICall =
		SteamUserStats()->UploadLeaderboardScore(m_CurrentLeaderboard, ELeaderboardUploadScoreMethod::k_ELeaderboardUploadScoreMethodKeepBest, score, NULL, 0);

```

This works for the first time a user enters a score but if this is called again the user score is not updated even though it is a much better score then the one previously entered, reading the steam API documentation using the ELeaderboardUploadScoreMethod::k\_ELeaderboardUploadScoreMethodKeepBest enum should keep the best score but it just keeps the first score uploaded for that user.

now if I use the ELeaderboardUploadScoreMethod::k\_ELeaderboardUploadScoreMethodForceUpdate enum then the score updates / overwrites every time you upload a score regardless of score as expected but why does the k\_ELeaderboardUploadScoreMethodKeepBest calculate the best score incorrectly??

i thought it might of some format issue but the value is an int so don’t see how the comparison could be wrong (the leaderboard is set to numeric)

Any help or info on this would be great thanks

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_e026a09a](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e026a09a](https://forums.unrealengine.com/u/anonymous_user_e026a09a)\
**Post date:** [April 4, 2018, 9:33am UTC](https://forums.unrealengine.com/t/steam-leaderboard-upload-score-not-working-as-expected-with-k_eleaderboarduploadscoremethodkeepbest/411582/2 "2018-04-04T09:33:28Z")

</div>

Hi, just had the same problem and was able to fix it.

I suppose you have a stat with the name of the leaderboard as in.  
Leaderboard name: test  
Stat name: test\_test

Make sure that the stat test\_test has **“Increment Only”** set to **true** in Steamworks backend.  
After that using k\_ELeaderboardUploadScoreMethodKeepBest should work just fine! 🙂
