AggrorJorn Posted December 18, 2016 Share Posted December 18, 2016 I am trying to get the steam leaderboards to work but I am just getting weird results. No matter what I do, the leaderboard just gets updated with whatever value I give it. Sorting to ascending/descending doesn't seem to work, setting its type to time/number doesn't seem to work. Leaderboard* Steamworks::GetLeaderboard(std::string name="Hiscore", const int type = 1) self.leaderboard = Steamworks:GetLeaderboard(tostring("levelseed"),1) Quote Link to comment Share on other sites More sharing options...
Josh Posted December 18, 2016 Share Posted December 18, 2016 bool SetScore(const int score, const bool forceupdate = false) Second parameter should be false, or unspecified. Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
AggrorJorn Posted December 18, 2016 Author Share Posted December 18, 2016 Setting it to either true or false doesn't seem to be affecting it. I retrieve the leaderboard, just in case it hasnt been created yet I set the score I retrieve the leaderboard again since it was updated. local leaderboardName = "test1" self.leaderboard = Steamworks:GetLeaderboard(leaderboardName,1) if self.leaderboard==nil then error("Leaderboard is empty, not good") end local result = self.leaderboard:SetScore(highScoreTime, false) self.leaderboard = Steamworks:GetLeaderboard(leaderboardName,1) Quote Link to comment Share on other sites More sharing options...
Josh Posted December 18, 2016 Share Posted December 18, 2016 You could also perform the check yourself, although you should not have to. Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.