Achievement problems

Hello,

So I am trying to get achievements working in our game, but I can’t seem to get a successful achievement connection.

So I first followed the unreal documentation. When that didn’t seem to work I followed http://www.grimwolfgames.com/setting-up-android-achievements-in-ue4/

But still it doesn’t seem to work… I can’t cache the achievements or write to them succesfully, the game is uploaded to android developer as an apk and is already downloadable as an alpha version to some people at the office. So it is a full shipping build published on the android store I am talking about. But I keep getting failure messages.

This is how I set up the achievements in unreal:

99935-1.png

This in google play:

This is how my game blueprint is setup:

And here is how I try to write to the achievement in a level blueprint

EDIT: I just noticed some flaws in writing to the achievement. But even though that could be a serious problem for writing to it. The cache achievements node also fails, so I think there is another problem going on!

According to Google, they won’t turn on until you have some magical number of scores recorded.

Do you have a link to that? So I can’t test my achievements until I launched my game and then hopefully it works?

Can I get more information on this? I still have no idea how to get the achievements working! :frowning:

So I managed to fix it by following this Integrate Google Play Services with Blueprint - Blueprint - Epic Developer Community Forums

And then it still did not work and I had to add something to the build.cs file.
Which I found in this forum post:

I had the login return fail problem.
Made changes found all over the forums
relating to this (additions to
proguard-project.txt, etc.), the one
that finally did it:

Add to MyProject.build.cs:

if (Target.Platform ==
UnrealTargetPlatform.Android) {
PrivateDependencyModuleNames.Add(“OnlineSubsystem”);
PrivateDependencyModuleNames.Add(“OnlineSubsystemGooglePlay”);
}

Also: added AndroidEngine.ini:
Android Compile Errors - Mobile - Epic Developer Community Forums

1 Like

Not sure if this helps, but the solution @SoulRyder provided initially didn’t work for me until the following:

  • Delete the ‘Android’ file under ‘Build’ in your project directory

  • Re-clicking the red ‘configure now’ buttons under ‘APK Packaging’ and ‘Google Play Services’ in ‘Project Settings’ - ‘Android’

Maybe its unreal not recognising the change and needed reconfiguring?

NOTE: MAKE SURE NOT TO DELETE YOUR KEYSTORE FILE UNDER YOUR PROJECT DIRECTORY - ‘BUILD’ - ‘ANDROID’ (IF IT IS STORED THERE)

Hope this helps someone