Hey!
I'm the developer of the renpy sandbox game COED Conquest!
When I started the project as a complete noob 1,5 years ago, I didn't spend any thought on compatability of my save files.
All my variables are defined inside a label at the beginning of a new game, therefore if I add something like a new heroine or an event (both classes in my game) they won't be in a save file from an older version!
Since the game has quite a lot of variables split into multiple files making changes is a lot of work, and therefore I would like to discuss the solution I thought of here first before I spend hours trying something that won't work.
My idea would be to turn all my old labels into 'init python' blocks with priorities according to the current variable declaration regime.
This should add any newly defined variable to the old save files correct?
If that would work I have the problem that variables like for example 'Events' are appended to an 'Eventlist' in the initialization, so every new event would not end up in the 'Eventlist' of old save files, since they already have said list saved in their save, correct?
If I'm correct so far, I could add a label that checks if an element is inside the list and adds it if it is not, would that work? If yes, can I make it so that it only is called when loading, or starting a new game? EDIT: Just found the after_load label, that should work for me in that regard at least!
Thanks in advance for your input!
I'm the developer of the renpy sandbox game COED Conquest!
When I started the project as a complete noob 1,5 years ago, I didn't spend any thought on compatability of my save files.
All my variables are defined inside a label at the beginning of a new game, therefore if I add something like a new heroine or an event (both classes in my game) they won't be in a save file from an older version!
Since the game has quite a lot of variables split into multiple files making changes is a lot of work, and therefore I would like to discuss the solution I thought of here first before I spend hours trying something that won't work.
My idea would be to turn all my old labels into 'init python' blocks with priorities according to the current variable declaration regime.
This should add any newly defined variable to the old save files correct?
If that would work I have the problem that variables like for example 'Events' are appended to an 'Eventlist' in the initialization, so every new event would not end up in the 'Eventlist' of old save files, since they already have said list saved in their save, correct?
If I'm correct so far, I could add a label that checks if an element is inside the list and adds it if it is not, would that work? If yes, can I make it so that it only is called when loading, or starting a new game? EDIT: Just found the after_load label, that should work for me in that regard at least!
Thanks in advance for your input!
Last edited: