Jump to content

Do leaderboards still work?


AggrorJorn
 Share

Recommended Posts

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)

Link to comment
Share on other sites

Setting it to either true or false doesn't seem to be affecting it.

  1. I retrieve the leaderboard, just in case it hasnt been created yet
  2. I set the score
  3. 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)

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...