Hello! I’ve been trying to make an updateable saving system for about 5 months now, but I’m starting to think this isn’t possible, I’ve tried all of the basics such as
- Saving individual variables - not updateable nor robust
- Saving a structure with children as all the variables you need - not updateable since the values are not carried over to new variables if you already have saved data
- The same as 2, but using a climb to check for a variables existence upon load and if the variable doesn’t exist create a variable with the current climb name & value - works okay, but doesn’t transfer the values of child arrays & structures, which I use very frequently
I would just go for option 1 even though it takes an annoying amount of time, But this doesn’t work when I need to save a structure/array & then add new variables to it, of course I could use the climb on option 3, but I end up having very large nests of data that typically look like this:
- Main array: “Missions”
- 10-20 Sub structures with 10-20 variables each containing their data
If I were to use a climb for every one of these variables, It would take an EXPONENTIAL amount of code, so it wouldn’t really work under any circumstances
Does anyone have any other methods to offer? My current best idea is having a completely separate structure with initial values, using the climb to check for the child variable’s existence, and then moving the variable from the initial values structure to the saved data structure, but I have absolutely no clue how to move a variable.