You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here's my code. I would expect userStatsReceived to be called eventually, and onGameOverlayActivated to be called whenever I open and close the team overlay, but neither happen for me. Is there something I'm doing wrong? I've tested this with Steamwork SDK 1.42 and SDK 1.44, both behave identically.
Despite all this, I'm still able to execute setAchievement, getAchievement, storeStats, and resetAllStats, and they all appear to work in real time.
Thank you.
localSteam=require'luasteam'functionlove.load()
Steam.init()
Steam.userStats.requestCurrentStats()
end-- This never gets triggered!!functionSteam.userStats.userStatsReceived(...)
print('userStatsReceived')
print(...)
end-- Activating and Deactivating the game overlay does not trigger this.functionSteam.userStats.onGameOverlayActivated(data)
print("Steam overlay is now " .. (data.activeand"active" or"inactive"))
endfunctionlove.update()
Steam.runCallbacks()
endfunctionlove.quit()
-- prints:-- Setting breakpad minidump AppID = 1040490-- Steam_SetMinidumpSteamID: Caching Steam ID: 76561197967143787 [API loaded no]Steam.shutdown()
end
The text was updated successfully, but these errors were encountered:
The problem is that the first callback is called Steam.userStats.onUserStatsReceived, and the second callback is called Steam.friends.onGameOverlayActivated(doc).
I'm so sorry, it seems like the Getting Started page is wrong for onGameOverlayActivated, that's what led to you mistake. I'll fix that.
It seems the doc is also wrong in mentioning userStatsReceived.
I fixed these mistakes in the doc. Should show up in the next release (I'll probably make a small release with just the docs, since not much is going on here).
Here's my code. I would expect
userStatsReceived
to be called eventually, andonGameOverlayActivated
to be called whenever I open and close the team overlay, but neither happen for me. Is there something I'm doing wrong? I've tested this with Steamwork SDK 1.42 and SDK 1.44, both behave identically.Despite all this, I'm still able to execute
setAchievement
,getAchievement
,storeStats
, andresetAllStats
, and they all appear to work in real time.Thank you.
The text was updated successfully, but these errors were encountered: