Hi all,
I am really desesperate because I am implementing gpgs in my game and I get correctly login Google Play games, archievements and leaderboards however it seems impossible to implement the snapshots.
This is my code:
function loadSavedGamesGPGS()
print(“START open …”)
gpgs.snapshots.open({
filename = “save_slot_G”,
create = true,
listener = function(event)
snapshotId = event.snapshotId
end
})
print(“END open …”)
print(“START getSnapshot …”)
snapshot = gpgs.snapshots.getSnapshot( snapshotId )
print("snapshot: " … snapshot)
print(“END getSnapshot …”)
end
When I connect my device to debug it, appears this log:
10-28 09:46:40.965 29877 29904 I Corona : START open …
10-28 09:46:40.965 29877 29904 I Corona : END open …
10-28 09:46:40.965 29877 29904 I Corona : START getSnapshot …
10-28 09:46:40.965 29877 29904 I Corona : ERROR: Runtime error
10-28 09:46:40.965 29877 29904 I Corona : ?:0: attempt to concatenate global ‘snapshot’ (a nil value)
10-28 09:46:40.965 29877 29904 I Corona : stack traceback:
10-28 09:46:40.965 29877 29904 I Corona : ?: in function ‘loadSavedGamesGPGS’
10-28 09:46:40.965 29877 29904 I Corona : ?: in main chunk
I am just wondering if gpgs.snapshots.open is ignored and if i am doing well. The configuration in Google develop console is correct with saved games and my permissions for android are:
“android.permission.INTERNET”,
“com.android.vending.BILLING”,
“com.android.vending.CHECK_LICENSE”,
“android.permission.WRITE_EXTERNAL_STORAGE”,
I think open is not working, is there any place in google where I could see by UI all snapshots created ?
Any advice ?
Thanks so much,
Jorge