[BUG] Steam achievement progress instant unlock
Hello, we have problems with the achievement system between UE4 and Steam.
We have followed this link images to create stats and achievements: link text
We have also added achievements to "DefaultEngine.ini" and Steam overlay is visible when we run the build game or in "Standalone Game".
We added achievements and stats to Steamworks as the following pictures:
Any error in them?
From our PlayerController we increased the initial value (0)+1, and try to write the result. However, even the achievement of the image needs 100 attempts, is unlocked in the first try.
It looks like Incremental Achievements work differently than regular Achievements. The WriteAchievements node will unlock the achievement when it is run. The Progress input is a bit misleading; that actually refers to a function in the engine that is not currently implemented in the Steam OSS, SteamUserStats()->IndicateAchievementProgress() for things like showing a progress bar.
Instead, you want to update the Stat itself. In Blueprints, you can access this using the ReadLeaderboardInteger and WriteLeaderboardInteger nodes. Once the value you feed it reaches the max limit you've set on the Achievement, it will automatically unlock (as long as the Stat and Achievement are appropriately linked; it looks like yours are).
Hope that helps!
answered Oct 28 '15 at 09:46 PM
SUCCESS! Stats Behaviour is very strange.
As I read the link, I followed these steps:
-Steam Stat name = mystatname_mystatname
Yes, twice Stat name separated by underscore. Careful not to use more than one underscore.
-Then in Steam Achievement:
Steam Achievement name = myachievementname
Here it does not matter if it is different from the Stat name.
-Stat Blueprint name = mystatname:
Without underscore , because UE4 adds subsequently and forms mystatname_mystatname string.
First of all, get the CacheAchievements to read and write Stats.
It seems to work. Anything else?
We have noticed that if we make several "WriteLeaderboardInteger" (max 5) takes a long time to update the status of Stats.
Not too familiar with steam, but you have your minimum value for the acheivment as Zero, so, when you add +1 its already above 0 and they get it. Or thats what it seems like to me.
answered Oct 27 '15 at 08:59 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here