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

Everything except saved games work #32

Closed
myood opened this issue Aug 13, 2020 · 1 comment
Closed

Everything except saved games work #32

myood opened this issue Aug 13, 2020 · 1 comment

Comments

@myood
Copy link

myood commented Aug 13, 2020

Hey, I have problem setting up saved games. Signing in, achievements, leader boards - all work.

Saved games turned on in Google Play Game Services for a game (and published).
Google Drive API is enabled.

I call:
play_games_services.saveSnapshot("TEST_SNAPSHOT", data, "This is beta test saved game snapshot")

where data is a dictionary converted to json:
to_json(dict_variable)

I'm kinda stuck what to check next. Debuggin with logcat is not very helpful, because all I see is a callback with status failed (_on_game_saved_fail)

Can you help me? What else should I check?

Regards

@myood
Copy link
Author

myood commented Aug 15, 2020

OK, I found the root cause, the most silly obviously - I used the wrong init method (missed the comment during setup). :-(

Log from the plugin could be useful, if calling methods related to saved games but it was not initializied. :-) Like 'Saved games not requested upon initialization, if you wan't to call these methods use init(showPopups, savedGamesName) in GDScript'

@myood myood closed this as completed Aug 15, 2020
@myood myood changed the title Snapshot failed to save game - what should I check? Everything except saved games work Aug 15, 2020
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

1 participant