alexisblackbird / rsurvival

A to-do & self-care based survival game proof of concept
0 stars 0 forks source link

Update save #11

Closed alexisblackbird closed 7 years ago

alexisblackbird commented 7 years ago

A function to update save files to new versions, to maximize forward compatibility of games, by adding, removing, or renaming variables as required for a given version change.

Can work by simply having a variable that stores game version, and then when the function runs it has sections for required changes for a given update that fire if that update is greater than the current version, and then pass through all of them until it is up to date. Then any new updates that need to tweak the save file to work just have those changes added to the function.

Even if this isn't needed as of 0.2, I want the framework in place before it is needed to make sure it works.