I’m working on a project right now, and before going forward with writing a module for storing players’ data for it, I want to know if there’s any practices I should follow to help in a (unlikely but never impossible) case of a player’s data being corrupted due to an issue on my end.
To give more detail, I’m using Roblox’s data stores. I doubt this would ever be the case when it comes to something simple like saving experience points or saving currency as these are just numbers. My biggest worry is when it comes to saving inventories of items. I’ve never ran into any issues before with it, just taking precaution since I would hate for someone’s data they worked hard for (or even paid for some of it) to go to waste.
In case I haven’t been clear on the case I want to be ready for just in case, here’s a set of hypothetical steps:
Roblox user Timmy plays the game
Roblox user Timmy spends a lot of time gaining items and spending on items
I make a mistake and before catching it, Timmy plays the game and their data is corrupted
Is there any steps that can be taken to set up a player’s data where that can be rolled back? Or is this just something that I need to be thorough with on my end and hope it never happens?