Hi,
I’m desperately trying to bring Steam-achievements into my (our) Unity-based game, using Steamworks.NET . After at first confidently trying my own approach, I now just copied the whole of ‘SteamStatsAndAchievements.cs’ from the example project, only replacing the example-achievements with the ones from our game.
Still, I don’t get very far, since I always receive ‘k_EResultFail’ from Steam. SteamManager IS initialized and the call to SteamUserStats.RequestCurrentStats(); does return true. It’s just that the callback ‘OnUserStatsReceived()’ always receives a FAIL.
(If I try to send achievements anyway, ‘SteamUserStats.SetAchievement(…)’ immediatly returns false, and a callback is never received)
When trying out the example project, everything works just fine!
What I did do:
- I have the steam-Client running, and I am logged in with an account related to the unreleased Steam-game in question (The Steam-Client correctly displays me as “in game”)
- I did define achievements on the partners.steam-site of our game (the same as in the enum)
- I did apply SteamManager.cs and SteamStatsAndAchievements.cs to a GameObject in the game
- The steam_appid.txt is there and contains the correct id
What might be reasons:
- In SteamStatsAndAchievements.cs I deleted everything stats-related (except the methods and relevant calls), since we won’t use stats in our game. Are stats required?
- The partner.steam-site of our game is far from completed. It’s almost only the achievements that are there, yet. Is there anything which absolutely has to be set up in there, in order to have the SteamAPI be able to run and handle achievements?
Else I’m clueless as to what’s going wrong . And I’m on a tough deadline. Please help if you can!