Steam Achievements cache always failing

Hey,

Hello All - I’m trying to get steam achievements to work and I’m having an issue where the ‘cache achievements’ is always failing. I’ve got the steam online subsystem working and I’ve followed instructions (Steam achievements implementation for UE4 developers: tips and tricks. - Blueprint Visual Scripting - Unreal Engine Forums & [Tutorial] Steam Achievements - Community Content, Tools and Tutorials - Unreal Engine Forums) - but its just not working

in the first tutorial the author mentions that you need to create stats in steam works for the achievement to work. Is this true?

I have also noticed that in my steamworks > achievements > my ID starts from 2/0 (instead of 1/0 as shown in tutorials) - so I’m wondering if I need to change the achievement ID reference in the defaultengine.ini, but I’m unsure what that ID should look like. I’ve tried Achievement_2_0_Id=“NEW_ACHIEVEMENT_11_0” but it didn’t work.

Any idea what I might be doing wrong?

I figured it out. When dragging the pin from ‘player controller’ and selecting ‘Cache Achievement’ - by default the pin gets connected to ‘World Context’ which is incorrect.

incorrect version:

Create ‘Cache Achievement’ then link the ‘Player Controller’ pin to the ‘Player Controller’ slot on the ‘Cache Achievement’

Correct Version:

hope this helps someone :slight_smile:

Late to the party, but thank you so much!

Hey, just a quick question, I have the id 2/0 too, which id ended up working for you? Also, did you end up having to create stats or no?

Hey, I got it fixed, so leaving this here for anyone else. In regards to the id, ignore the first number. So if the id is showing up as 2/0 on the admin page, the id you will put for it in the defaultengine.ini is 0. I also did not have to work with stats either. Hope this helps someone.

My Player Controller is connected correctly, but the CacheAchievements node still fails for me.


image

Any idea what could be going wrong?

I am running standalone, and the steam overlay appears in the bottom right as expected. I am using my own AppID.

It’s the same for me… Cache achievements always fail and I can’t trigger any achievements… Any ideas?

To anyone who comes later, also ensure you do not have quotation marks as per this users questions:

ie: Achievement_3_Id=Die NOT Achievement_3_Id=“Die”

1 Like

Cache achievements was failing for me too. Make sure you put the node in the event begin play of your player controller, otherwise if you are caching in the begin play of the game instance for example it will fail because the game instance is initialized before the player controller.