x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

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.

alt text

alt text

alt text

Product Version: UE 4.10
Tags:
more ▼

asked Jan 17 '16 at 05:54 PM in Packaging & Deployment

avatar image

OmniOwl
219 18 25 35

avatar image Samantha Sutton ♦♦ STAFF Jan 25 '16 at 08:34 PM

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!

avatar image OmniOwl Jan 25 '16 at 08:53 PM

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

avatar image Samantha Sutton ♦♦ STAFF Jan 28 '16 at 10:18 PM

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:

Avoid Spamming Blueprint

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.

Cache Achievements from Google/Apple

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

Vipar Blueprint

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:

vipar1.jpg (101.9 kB)
vipar2.jpg (72.1 kB)
avatar image OmniOwl Jan 28 '16 at 10:39 PM

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

alt text

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

alt text

But that didn't solve it unfortunately. Nothing changed :/

avatar image Samantha Sutton ♦♦ STAFF Feb 01 '16 at 04:07 PM

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

Blueprint

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!

avatar image SHOBBIT Feb 12 '16 at 05:03 PM

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

(comments are locked)
10|2000 characters needed characters left

1 answer: sort voted first

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!

more ▼

answered Feb 05 '16 at 05:26 PM

avatar image OmniOwl Feb 05 '16 at 06:22 PM

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

avatar image Samantha Sutton ♦♦ STAFF Feb 11 '16 at 09:13 PM

You can upload it to something like Google 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 chance to view the forums.

Thanks! :)

avatar image OmniOwl Feb 11 '16 at 10:15 PM

Sent it now :)

avatar image Samantha Sutton ♦♦ STAFF Feb 17 '16 at 10:05 PM

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!

avatar image OmniOwl Feb 17 '16 at 11:06 PM

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.

avatar image Samantha Sutton ♦♦ STAFF Feb 24 '16 at 02:26 PM

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!

avatar image OmniOwl Feb 24 '16 at 02:44 PM

I have answered back.

avatar image Samantha Sutton ♦♦ STAFF Feb 24 '16 at 06:41 PM

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 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!

avatar image OmniOwl Feb 24 '16 at 07:50 PM

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.

avatar image OmniOwl Feb 24 '16 at 08:24 PM

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.

avatar image Samantha Sutton ♦♦ STAFF Feb 25 '16 at 08:14 PM

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?

avatar image OmniOwl Feb 25 '16 at 08:19 PM

After the update, the save file doesn't seem to consistently save or load information. Like if you press Play in the new version you'll notice that all models are missing even though they should be loaded from the save file at construction time.

Also the achievements still don't work. And I am not sure what you mean.with the game instance thing.

avatar image Samantha Sutton ♦♦ STAFF Feb 26 '16 at 08:05 PM

With the APK that you provided me, everything loads perfectly fine. The only thing I notice is that the achievements still aren't working. It keeps up to date with the times you've played the game.

Regarding the GameInstance. Please go to Edit > Project Settings > Maps & Modes > Game Instance and then press the little magnifying glass that's beside the drop-down menu.

Please see image for an example: Maps & Modes

Once you've hit that button, the content browser is going to update and highlight the GameInstance for you. This GameInstance being used in your project is made out of C++ but if you're more of a blueprint person, you can create a new one in blueprints and go from there (don't forget to update in the project settings when you're done.)

Once you've gotten your GameInstance opened, please start looking over this documentation that I sent earlier. If you scroll down, you'll see a section for caching your achievements, and it goes over how to update that within the game instance. Continue on from here and update this in your game. I believe this is what you're missing for your achievements to work properly.

Let me know if you have any further questions. :)

untitled.png (34.0 kB)
(comments are locked)
10|2000 characters needed characters left
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question