I have an issue with using ‘incr’ leaderboards in a lua module. (Nakama 2.6.0)
I was using the leaderboard with the
best parameter, and the leaderboard settings didn’t update the setting when I changed the leaderboard initialization code.
I update the leaderboard but only the best value is recorded for the user. It seems it’s still acting as if it’s a
Do I have to manually delete the leaderboard from the server to make it update the settings?
I was able to fix it by changing the leaderboard name I’m using from “totalCoins” and “totalRewards”, but it would be great if the leaderboard settings could be changed when needed (even if means deleting all the leaderboard data).
Not only for the match or even for the session, the value is just never incremented unless there is a new “best” value given that’s higher than the recorded one.
The leaderboard set call does not return an error and the log file shows no errors.
Here is the whole method I’m using
For clarification, when I added a logger call under
if changeset.coins >0 then it was printing that it’s updating the leaderboard when it should
skip_leaderboard is false and when
coins are positive.
But when i check the leaderboard afterwards it always only shows the first/best value set.
The leaderboard is defined with
nk.leaderboard_create(plat .. "-" .. "totalCoins", authoritative, sort, "incr", reset, metadata)
Should I open a github issue?