Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with achievements #19

Open
tksney opened this issue Jun 4, 2020 · 4 comments
Open

Problem with achievements #19

tksney opened this issue Jun 4, 2020 · 4 comments

Comments

@tksney
Copy link

tksney commented Jun 4, 2020

Hi, how are you? I am having some problems with the achievements of a published game. The problem is that achievements are unlocking normally, all callbacks return positive, pop ups appear to the user but the achievement disappears after a while. It is as if Google did not register, did not accept.

Do you have any knowledge about this? Something I can help me with?

I already reviewed everything but in the API panel, I still receive 100% error in the requests
games.achievements.unlock
games.applications.played
games.achievements.updateMultiple

I don't know if it is any with the module or another reason: /

@tx350z
Copy link

tx350z commented Jun 4, 2020

I might be able to help but more info is needed.
Are you using plugins other than this one?
You say "all callbacks return positive", where are you seeing "100% error in the requests"?
Are you looking at achievements in the Play Games app or loading them into your game?
Do your achievements require multiple steps?
Are they hidden? Is your game published?
If not published, have you set-up testers in the Play Games console?

@tksney
Copy link
Author

tksney commented Jun 4, 2020

Oh thank you very much.

I'm using Admob, Vibration and Share.
https://github.com/Shin-NiL/Godot-Android-Admob-Plugin
https://github.com/Shin-NiL/Godot-Android-Share-Plugin
https://github.com/Shin-NiL/Godot-Mobile-Vibration

I'm getting 100% error on requests in Google API Console: https://imgur.com/a/X5jRzns
I see them right in the game, it unlocks normally, the user just doesn’t earn XP and disappears after a while.
No, they are simple achievements, there are none with multiple steps
There are 3 that are hidden. Yes it is already published, so I really want to resolve it.
And yes, there are testers set up because I did tests.

An alert appears on the Google Play Console:
"An incorrect implementation was detected
Your game has incorrectly implemented the following Play Games services: Achievement"

"Achievements: This game has created achievements in the Play Console but never calls the SDK's unlock methods. This approach is discouraged because it could result in a poor user experience."

I even reviewed all of my code thinking that I didn't call Unlock for any achievements, but all are right. I imagine it is something out of the game.

@tksney
Copy link
Author

tksney commented Jun 4, 2020

Update

I use two apks, one with arm64-v8a architecture and the other armeabi-v7a. Incredibly, I just tested it on an armeabi-v7a phone and the achievements are working and the xp is won. But the problem remains with my cell phone which is arm64-v8a. Only one apk is being affected, it could be something when exporting, some module.

@tx350z
Copy link

tx350z commented Jun 7, 2020

Sorry for the delay in responding. I'm not sure why it would work on one architecture and not another. Make sure you are using the same keystore for both APKs.

After working for a month to get Google Play Games working smoothly in my game I've decided it is not worth the trouble to get only Achievements and Leader Boards. So I've completely removed the GPGS from my game.

NOTE: There is nothing wrong with the plug-in, it works fine. However, because all Play Games functions use callbacks, I found my game code becoming very disorganized. I realized to make it work with my game I'd have to create my own version of the GPGS pop-ups. The other option is to build a complex state-machine driven by a pipe-line queue to handle things like multiple GPGS actions (e.g. increment an achievement, unlock an achievement, and update multiple leader boards).

In my opinion it would be better if the plug-in functions didn't return until the GPGS call completed. I'd create a branch for the project and add that feature but, again, it is not worth the effort to me to get just Achievements and Leader Boards. Looking back, a better option for me would be to create a custom server using Nakama which offers far more features than GPGS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants