I feel so terrible when I shutdown my servers for an update, and I get comments and PMs from people saying “Where did my stats go?” It isn’t the game’s fault either, as I have various friends who deal with the same problem. Data Persistence is REALLY important to some players, especially hardcore fans of games who play everyday.
Something really needs to be done about it bugging out so much, especially when servers shutdown. Maybe even a way to restore previous saves if the first fails.
[quote] Isn’t this something they have addressed with their upcoming data persistence update? Unless I’m wrong of course.
“Guaranteed saves - as soon as call returns, data will not be lost” [/quote]I hope so, then people can stop whining at me about lost data when I have to shut down multiple servers for updates.
[quote] Isn’t this something they have addressed with their upcoming data persistence update? Unless I’m wrong of course.
“Guaranteed saves - as soon as call returns, data will not be lost” [/quote]I hope so, then people can stop whining at me about lost data when I have to shut down multiple servers for updates.
Some people get REAL pissed off about it.[/quote]
Yeah, I’m getting mad comments on how people have 'Completely lost interest" and how I’m “A terrible person” and that my game is “Just a scheme for visits, and you lose your data dont play!!1!1!”
A current work around I created was something I call MSShutdown.
Add a script to your game that checks an assets description every minute, if that suddenly becomes ‘Shutdown’ then all the stats are saved by the script and the game is shutdown.
[quote] A current work around I created was something I call MSShutdown.
Add a script to your game that checks an assets description every minute, if that suddenly becomes ‘Shutdown’ then all the stats are saved by the script and the game is shutdown. [/quote]
That is one way to do it, but see the new API that will be released soon at the Production channel
What I did instead is had a version checking script that gave everyone a big annoying red box telling them the server was outdated. They could continue playing and it would work fine or they could leave, game would save properly, and join a new server.
Wait, sorry, useful information, shouldn’t be posting that here. Flame storm incoming
I have that problem too, and is really annoying, visitors have been mad because they lose all points they earn in the game, this has also happened with myself.
Save a stat each time it is changed.
Use .Changed to determine when a stat is changed, and call a save function for the stat. With a lot of stats this may seem like a lot of functions, you can group together some stats so you don’t have to have so many. The trade off is the amount of data your game saves every time the stat(s) is/are changed.
This way the player’s data is always saved as soon as it is changed. Shutdowns do not ruin data if done this way.
I would personally say, use a Event on the game or something like that that tells us the game that we are shutting down.
Workaround for now :
Update a Item that is on your Shop with a Time stamp. Use the MarketplaceService to determine the value of the item and close down the server accordingly to that. Your cathing fire game doesn’t has empty servers, your current workaround of closing down servers using a calculated time can also work, but you will still have servers that are outdated
Yeah, I don’t think all of you understand how it works.
Basically, when you SaveInstance or whatever, it the server makes a note like “Alright, Nikilis has 50 points.” , and when the player leaves, the server goes “Okay, Nikilis is leaving, let’s check my notes. It says here he has 50 points, I’m going to send that to the ROBLOX servers.” and then the data is properly saved.
If the server is shutdown, or a player is disconnected, the server simply doesn’t do that.
I also appreciate how no one used my advice, that’s cool, it’s really your loss because it works great for this issue.
You are right. This is long overdue. The plan is to turn on the New Persistence API tomorrow for everyone that signed up. It saves data instantly and has stronger guarantees. Did you try it on GT5? Does it meet your needs? Would love to get your feedback.
Tried it the other night, it didn’t to seem to have any bugs but I did oddly loose connection twice( I have a pretty good internet connection and hardly ever randomly get disconnected ) , not sure if it is related to the new datapersistance or verizon failing me…