Achievements Won't Update

I’m using UE 4.10.2 on a Windows 8 machine.

I have a game that tries to make use of the Android Achievement SubSystem. I saw your Match 3 game and looked inside it to find the blueprints responsible for updating the achievements. I copied it over and fit it to my game. But it still doesn’t work.

No achievements are updated at all and I don’t get any error messages that would indicate why this is. I already got leaderboards working though.

Below I stitched the Blueprint together in a picture so you can see it all. Opent he picture in a new tab.

https://forums.unrealengine.com/attachment.php?attachmentid=74462&d=1452960584

https://forums.unrealengine.com/attachment.php?attachmentid=74463&d=1452960600

https://forums.unrealengine.com/attachment.php?attachmentid=74464&d=1452960611

Hey Vipar,

Looking over the blueprint in Match 3 compared to the blueprint that you’ve provided screenshots in. I see a few differences. Between what’s displayed in Match 3 and the screenshots that you provided. Could you please provide me a sample project with these types of blueprints included?

Do you have any error logs you could provide? Perhaps device logs from Monitor.bat?
Have you tried this on 4.11 Preview, just for testing purposes?

Please give as much information as possible, thank you!

Since this post I’ve gotten a single achievement to work out of all 28 I have for some strange reason. Below are some blueprint pastebins:

Update_AndroidAchi: http://blueprintue.com/blueprint/j7v7-3-0/

WriteAchievement: http://blueprintue.com/blueprint/5q8fgap5/

CheckAllValueAchievements_Android: http://blueprintue.com/blueprint/e-b-rtf3/

ChooseLocalOrServerAchievementValues Macro: http://blueprintue.com/blueprint/v4htd_2j/

The execution path is: CheckAllValueAchievements_Android ==> ChooseLocalOrServerAchievementValues ==> Update_AndroidAchi ==> WriteAchievement

Vipar,

You may want to add in this as a guaranteed way not to spam your achievements, which may cause them to not update correctly:

I noticed that you do not have the exact same set up as Match3. I know you adapted it to your own project but I am wondering if this change may be causing the achievements not to update correctly.

In your screenshot where you’re setting up Achievement Names > ForEachLoop > Get Cached Achievements

https://forums.unrealengine.com/attachment.php?attachmentid=74464&d=1452960611

I believe you may want to add the GlobalGameInstance “Certain values are key for figuring out if an achievement should be earned, so we actually allow the achievement system define what the player has earned in these cases” section from Match3 (modified for your game) into your game.

Here is some documentation that may be of use, which you may have missed when setting this up:

  • [Using Play Services Leaderboards - Match 3][4]
  • [Using Play Achievements][5]

Okay so, if I understand you correctly this could be a solution:

http://puu.sh/mNnWf/068bc341aa.png

It’s added to the big network that checks achievements:

http://puu.sh/mNo1U/3cd9a3996f.jpg

But that didn’t solve it unfortunately. Nothing changed :confused:

I noticed that in your screenshots compared to the ones I posted, you have yours set up quite differently.

If you look at this blueprint, you see that the ‘do once’ node is connected to ‘write achievement progress’. On your screenshot, it’s attached to a ‘write achievement’ node instead.

This specific blueprint is set up within the GameLevel_GM blueprint if you’d like to look it over in Match 3.

If this does not work for you, you’re more than welcome to upload your project to a zip file and provide it to me in a private link on the forums. That way, I can take a look at the whole picture.

Let me know!

Hey Vipar,

We have not heard back from you in a few days, so we are marking this post as Resolved for tracking purposes. If you are still experiencing the issue you reported, please respond to this message with additional information and we will offer further assistance.

Thank you!

How do I send you a private link to download the project?

You can upload it to something like Drive and then provide the link to me within a private message on the forums. Let me know once you’ve done that as there are days when I don’t get a to view the forums.

Thanks! :slight_smile:

Sent it now :slight_smile:

Hello Vipar,

Don’t know if you solved the issue or not yet but, I made a forum post about achievement and leader board,

It is definitely not perfect at all but it worked for me. ALSO I have made changes to my present code

Hopefully it will help you.

Regards

Forgot to add the link sorry :stuck_out_tongue: Leaderboard and achievements (Google Play) - Blueprint - Epic Developer Community Forums

Vipar,

I received your project and I have been sifting through it. I was wondering though, which exact value are you having trouble with? Is it all of them, or just some of them? The more direct you can be, the easier it’ll be to try and pin-point exactly what’s happening.

Thanks!

It appears that only a single achievement actually works, which is the “We think you like this game” achievement which should be awarded after 50 games played, but I am unsure whether the conditions are met or not when it triggers.

Otherwise no other achievements work.

Hey Vipar,

I sent you a message on the forums. Could you please read over the information and let me know whether or not the email address used has to be added to a list or anything since you’re in Alpha?

Thanks!

I have answered back.

Vipar,

So, I have been working on your project and testing out a few ideas. I noticed that your GameInstance was created in code instead of blueprints, which is fine. However, when I started to look over the GameInstance, I noticed that there wasn’t any code added in for achievements.

Please look over this [documentation][1] again and make sure that you’re updating the correct blueprints or code in game. If you need a more visual guide, open up Unreal Match 3 and go to Edit > Project Settings > Maps and Modes and click on the eyeglass that’s beside “Global Game Instance”.

Let me know how it goes!

Using Google Play Achievements in Unreal Engine Projects | Unreal Engine 5.1 Documentation

I’m not quite sure what you mean.

In my current setup, which is slightly different than the one you currently got, I set a Save Game when the game starts in the Game Mode and then I refer to that Save Game by reference throughout the rest of the project.

But now the saving seems to be all over the place. I’ll send you a copy of it so you can see what I mean. Perhaps it tackles what you mention there.

I’ve sent you a link now to a newer version. You should find that the Save Game Instance is now the same across the entire thing but now I have a few other issues which I don’t quite understand.

I can’t open the project up from the APK provided. I noticed that the achievements are still not updating.

  • Could you explain what you’ve noticed that’s changed since you’ve made the Save Game Instance the same across your game?
  • Are the achievements working on your side or no?
  • Did you ever create a GameInstance, like Unreal Match 3 has shown in the documentation?