0
Completed

Cloud saving gpgs

Timothee Dumarais 2 weeks ago in Game Creator updated 1 week ago 4

Created an addon that allows us to retrieve our variables in order to save on the google play service cloud. It would be enough to assign the variables that we wanted to save in order to recover our parts in case the games are uninstalled.

Unity version:
2018+
Game Creator version:
Latest

Answer

Answer
Completed

Hi Tomothee;

Not sure if this is a statement or are you asking how to do this. If it's the later, check out the IDataProvider class. This is responsible for how Game Creator stores data.

By default it uses a class called DataProviderDefault that inherits from IDataProvider and is linked to the Game Creator trough the General tab in the Preferences Window.

If you want to create a custom saving method, simply create a new class that inherits from IDataProvider and implement all methods (OnSave, OnLoad, ...). Then, create an instance of the scriptable object that results of your new class and drop it in the "provider" field at the General tab of the Preferences Window.

From now on, Game Creator will use your class as a relay for storing and loading game saves data. Let me know if you have any questions!

Answer
Completed

Hi Tomothee;

Not sure if this is a statement or are you asking how to do this. If it's the later, check out the IDataProvider class. This is responsible for how Game Creator stores data.

By default it uses a class called DataProviderDefault that inherits from IDataProvider and is linked to the Game Creator trough the General tab in the Preferences Window.

If you want to create a custom saving method, simply create a new class that inherits from IDataProvider and implement all methods (OnSave, OnLoad, ...). Then, create an instance of the scriptable object that results of your new class and drop it in the "provider" field at the General tab of the Preferences Window.

From now on, Game Creator will use your class as a relay for storing and loading game saves data. Let me know if you have any questions!

It was an idea, create a script where we could choose the variables we want saved on a cloud. Notament on the google play service. Because currently if you uninstall a mobile app created with game creator, the game creator backup is deleted. If we could retrieve the variables saved in game creator and send them to google play cloud, we could find our game creator game saves.

( Sorry im french and use google translate)

+1

Yeah, this should be feasible, although you'll need some programming experience. As I said, simply create a scriptable object that inherits from IDataProvider and sync it with your Google Cloud service (or any platform you want).

+1
 Ok, thank marti for this indication, i go test that.