rlabrecque / Steamworks.NET

Steamworks wrapper for Unity / C#
http://steamworks.github.io
MIT License
2.84k stars 369 forks source link

Achievements granted only after closing the game. #622

Closed MoctezumaDev closed 4 months ago

MoctezumaDev commented 5 months ago

I recently was playing a game and their achievements came on screen as overlay as I was getting them.

But in my current implementation with Steamworks.NET my achievements are granted but they only show up until I close the game.

I checked the documenation and the only thing that seems to be relevant is to be making a call to

SteamAPI.RunCallbacks();

Maybe I'm missing something.

KelsamGames commented 5 months ago

Sounds like you're likely having Steam Overlay issues, or perhaps just not firing StoreStats after giving achievements (this call causes achievements/stats updates to upload immediately).

Simple checklist:

If you're doing this and the achievements still don't pop while you're in-game, try to open the overlay manually (Shift+Tab by default). If it does not come up, your game is almost certainly doing something to interfere with it.

MoctezumaDev commented 4 months ago

Hi, I just was able to confirm the issue... I was missing the call to SteamUserStats.StoreStats.

Thanks for the clear check list. :)