When trying to update a Steam leaderboard, the source code currently adds the new value to the old value instead of replacing the old value with the new value. This works fine for something like a Total Time Played stat, but does not work when trying to update a high score list where the new score needs to replace the old score.

Steps to Reproduce
  1. Open the OnlineLeaderboardInterfaceSteam.cpp file.
  2. Go to line 293 and 304.
    • bSuccess = SteamUserStatsPtr->SetStat(TCHAR_TO_UTF8(*StatName), OldValue + Value) ? true : false;

The code sets the stat value by adding the old and new values together.

The code sets the stat value differently, depending on what is being updated.

Have Comments or More Details?

Head over to the existing Questions & Answers thread and let us know what's up.

Login to Vote

Affects Versions4.
Target Fix4.20
Fix Commit3844803
Main Commit4051554
Release Commit4095966
CreatedDec 23, 2015
ResolvedJan 18, 2018
UpdatedOct 28, 2022