Hello guys! I have been using the Saving System from the RPG Course and have some questions regarding it.
In my case with CaptureState()
, I initially saved the following data:
List<Attribute> attributes;
However, as development progressed, there were changes in implementation and it was changed to:
Attribute[] attributes;
Loading the old save file that had saved List<Attribute>
data and restoring it with RestoreState()
to Attribute[]
data gave a runtime error. During development, the solution to this was to delete the existing save file with the old data implementation in order for the Saving System to start saving using the new data implementation with a fresh start. However, when a game is released or launched, we surely would want the previously saved data to be retrieved and incorporated with the new implementation brought by game updates.
With this, I would like to ask, what do you guys think would be a great or best way to address this problem without having the need to delete the existing save file? Do you guys have any techniques you could share on how most complex games do their saving with updates/patches in mind?
Thanks in advance to you guys that could share something about this!