Closed OWL7seven closed 3 years ago
OK after 3 weeks of trying to find a solution, its seem that you need to "open" the save file when saving and loading.
so this means using :
private static void WriteOpenSavedGame(string filename) { ISavedGameClient savedGameClient = PlayGamesPlatform.Instance.SavedGame; savedGameClient.OpenWithAutomaticConflictResolution(filename, DataSource.ReadCacheOrNetwork, ConflictResolutionStrategy.UseLastKnownGood, WriteOnSavedGameOpened); }
and there after you can use PlayGamesPlatform.Instance.SavedGame.ReadBinaryData to load that save file to get the byte data.
I am also getting this error now, I am opening the file before save exactly as it is mentioned above. Could it be some other reason for that @OWL7seven?
Hi,
So for the past few weeks, I've been having issues with a few things, some have been resolved, but note everything was working at one point, and i haven't touched any of the code that handles my saves.
Currently i have an issue loading my save data from the google play select save UI. its saving correctly and i able to see all instance of the save files, i was able to load successfully until recently.
the issue i get in my logs on the device is the SaveGameRequestStatus returns BadInputError, as seen on the by the last section of the code below, i m not sure why this is happening. any help would be much appreciated.
before this log, i am getting these following warnings (this could be from writing the save files):
public static void ShowSelectSaveUI()
Here is the Code i use to write my save files, its been working so far, as i can see the files in the google UI
private static void WriteSavedGame(ISavedGameMetadata game, string stringData, bool withScreenshot) {