Steam Leaderboards - can't get it to write score value
Okay, I've been bashing my head against my desk over this for the past few hours now.
I've successfully gotten WriteLeaderboards() to work...ish
Using this code:
It creates a leaderboard under my steamworks account titled ClassicMode! Hooray! I can rest assured that my game is linked to my steam app id properly.
HOWEVER, I can't actually get it to add an entry. Using the SetIntStat (circled in red) I've tried "Score" "score" and a TON of other possibilities (so many attempts), but I can't get it to write a value to the leaderboard. I've also tried int and int32 data types.
For reference, here's the empty leaderboard created in my steamworks account:
Any idea what I should write in SetIntStat to get it to actually write an entry to the leaderboard? OR if SetIntStat is incorrect, what should I be using?
asked Oct 03 '16 at 04:59 AM in C++ Programming
The answer was to make a steam stat in addition to the leaderboard named "StatName_Statname" where StatName is the name called by SetIntStat.
However, now it's incrementing the scores instead of replacing them which is frustrating...
answered Oct 04 '16 at 01:41 AM
very nice answer,I find the StatName_StatName for many days
answered Mar 01 '18 at 07:12 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here