cgisca / PGSGP

Play Games Services plugin for Godot Game Engine - Android
MIT License
219 stars 60 forks source link

Everything except saved games work #32

Closed myood closed 4 years ago

myood commented 4 years ago

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 commented 4 years ago

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'