Updating a Game
NovicaStudio
Member Posts: 174
Hi,
So… let's say I make a game, and then a month later, I make an update to add new stuff and fix some random bugs. And then let's also say someone had 2,579 coins on their game (this 'coins' is stored in a table which is being constantly saved) When I update the game, is the table cleared? Like, if I made an update adding new stuff, would it erase almost all data? If so, is there a way to prevent this?
Thanks a head of time,
Ethan
So… let's say I make a game, and then a month later, I make an update to add new stuff and fix some random bugs. And then let's also say someone had 2,579 coins on their game (this 'coins' is stored in a table which is being constantly saved) When I update the game, is the table cleared? Like, if I made an update adding new stuff, would it erase almost all data? If so, is there a way to prevent this?
Thanks a head of time,
Ethan
Best Answer
-
Adamgopro Posts: 310All the data will still be saved as I've updated my games a few times because the highscore never gets reset it only patches over it
Answers
Because either way you go, you want to update without overwriting your saved high score. So it would be best to build a adhoc of you update and test it.
Guru Video Channel | Lost Oasis Games | FRYING BACON STUDIOS
My test shows that a table cell value is indeed not changed after update, it stays the same. This is often a good thing.
But in the same way, if a table cell value in version 1 is 0 and in version 2 is 10, the game uses the old number still. I think this is a bit strange but sure, it´s hard to know what cells to update i suppose, so the game do not care if you change your table cell values at all in a update.
So keep in mind that you cannot change in your table in GS in order to publish an update, because those changes will not be implemented. This is how it worked on my android phone anyway, it maybe works differently on iphone..have to test it out as well when I get hold of a device. (i have noticed this while testing in GS Viewer as well, the android device does not get me a fresh install as the Mac Viewer does, probably because saved table values.)
I suppose changes to tables could be programmed as a one time change upon first startup if you want to change table values in an update in order for it to match your GS file. Can we draw the conclusion that tables basically do not update at all after the first release? You will be stuck with the table layout as it was when released?
Guru Video Channel | Lost Oasis Games | FRYING BACON STUDIOS