Coder Social home page Coder Social logo

Problem with achievements about pgsgp HOT 4 OPEN

cgisca avatar cgisca commented on June 19, 2024
Problem with achievements

from pgsgp.

Comments (4)

tx350z avatar tx350z commented on June 19, 2024 1

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?

from pgsgp.

tksney avatar tksney commented on June 19, 2024

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.

from pgsgp.

tksney avatar tksney commented on June 19, 2024

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.

from pgsgp.

tx350z avatar tx350z commented on June 19, 2024

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.

from pgsgp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.