Sign In Register

How can we help you today?

Start a new topic
Answered

Copy Live data to a new Game

Our company is in a situation where we will need to 100% clone our Game, including all live player data. 


Is this possible? If so, how can we go about it?


The use-case for this scenario is that we are re-releasing a game as a different title. The new game is significantly different than the old one, but migrates the existing old player data. The old game has to stay in operation.


Best Answer

Hi Mike,


You can achieve this by copying a Snapshot of your game to a new GameSparks game. This should copy over the whole configuration of the game, though all runtime and player collections will not be moved (unless you move them to metaCollections yourself which is the preferred use-case). If you want to do this another way you can do the following.


Collections in NoSQL can be exported to .json files (on the find window) which can then be imported using the REST API Insert call (you can use curl or some other post-method in a loop to insert multiple entries at a time). We do not support importing json files in the NoSQL browser so this is a solution for that.


Let me know if this helps, and if you have any more questions please let me know.


-Pádraig


1 person has this question

Answer

Hi Mike,


You can achieve this by copying a Snapshot of your game to a new GameSparks game. This should copy over the whole configuration of the game, though all runtime and player collections will not be moved (unless you move them to metaCollections yourself which is the preferred use-case). If you want to do this another way you can do the following.


Collections in NoSQL can be exported to .json files (on the find window) which can then be imported using the REST API Insert call (you can use curl or some other post-method in a loop to insert multiple entries at a time). We do not support importing json files in the NoSQL browser so this is a solution for that.


Let me know if this helps, and if you have any more questions please let me know.


-Pádraig

We have a similar situation where this would be a lot of help. But with ~60 runtime collections it's not very comfortable to export them by hand. Also when I export a collection that has dependencies to another collection and there is to much time between the exports, the data could be invalid. Some database dump tool would be very helpfull. Also getting a compressed json (gzip or something) would be very usefull for bandwith saving.

Are there any plans for the future to implement something like this?


2 people like this
Login to post a comment