I need Help for RMVX Ace, please.

YamiiJudaii

Warper
Member
Joined
Oct 24, 2020
Messages
4
Reaction score
1
First Language
francais
Primarily Uses
RMVXA
Hello, sorry my english is not good. I need help because
I would like to find a solution to update the script.
without going through "new game" each time. I add new content to the script as the game progresses but when
loading the save the addition of the script is not taken into account.
I thank those who will take the time to help me with this problem.
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,776
Reaction score
7,872
First Language
German
Primarily Uses
RMMV
basically almost impossible.

theoretically it could be done by writing specific loading code that checks for the missing part and manually adds them into the save, but it can't be automated. Each such loading code would have to be custom fit to the missing addition of the code, and that is much more complex - so most scripters don't care and simply require you to start a new game when a script adds data into the savefiles.

Which is why we usually suggest to get the scripts finished before developing the rest of the game...
 

YamiiJudaii

Warper
Member
Joined
Oct 24, 2020
Messages
4
Reaction score
1
First Language
francais
Primarily Uses
RMVXA
basically almost impossible.

theoretically it could be done by writing specific loading code that checks for the missing part and manually adds them into the save, but it can't be automated. Each such loading code would have to be custom fit to the missing addition of the code, and that is much more complex - so most scripters don't care and simply require you to start a new game when a script adds data into the savefiles.

Which is why we usually suggest to get the scripts finished before developing the rest of the game...
Thank you for your answer. I would have preferred to adjust my script as the project progresses, but that's okay. Thank you very much.
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,776
Reaction score
7,872
First Language
German
Primarily Uses
RMMV
If it is just your own script, then this is theoretically possible. Just a lot more work.

basically you need to create a savefile version number. That number is stored with each savefile and checked directly after loading.
Then every time you add data to the engine and the save process, you'll have to do the following:
1) increase the version number for next saves
2) create a modify function that adds the new data to any older save
3) apply that function to the load sequence conditioned on the version number.

at the end the load needs to work like this:
- loading old save
- checking save version
- calling all functions that add the missing data between the save version and the current version.

so if you're loading save v5 into a game v9 you'll have to call modifyv6, modifyv7, modifyv8 and modifyv9 on the old save to make it compatible with the current game version.

creating those modify functions is impossible if you don't know the script that added to the savefile - which is why this can't be done by someone whithout the knowledge of what the script does.
calling the modify functions even if they were written by the original scripter would require programming knowledge to add them into the load function.

that is why this is impossible to do by most developers.
doing this only for your own self-written scripts is possible, but you'll have to write those modify functions based on what you changed in newgame, and that is a step above simply adding things there.
 

zeroscares

Veteran
Veteran
Joined
Oct 17, 2020
Messages
93
Reaction score
18
First Language
português
Primarily Uses
RMVXA
for playtesting and not having to rely on new game everytime
you could probably get away with the save file doctor script

 

YamiiJudaii

Warper
Member
Joined
Oct 24, 2020
Messages
4
Reaction score
1
First Language
francais
Primarily Uses
RMVXA
If it is just your own script, then this is theoretically possible. Just a lot more work.

basically you need to create a savefile version number. That number is stored with each savefile and checked directly after loading.
Then every time you add data to the engine and the save process, you'll have to do the following:
1) increase the version number for next saves
2) create a modify function that adds the new data to any older save
3) apply that function to the load sequence conditioned on the version number.

at the end the load needs to work like this:
- loading old save
- checking save version
- calling all functions that add the missing data between the save version and the current version.

so if you're loading save v5 into a game v9 you'll have to call modifyv6, modifyv7, modifyv8 and modifyv9 on the old save to make it compatible with the current game version.

creating those modify functions is impossible if you don't know the script that added to the savefile - which is why this can't be done by someone whithout the knowledge of what the script does.
calling the modify functions even if they were written by the original scripter would require programming knowledge to add them into the load function.

that is why this is impossible to do by most developers.
doing this only for your own self-written scripts is possible, but you'll have to write those modify functions based on what you changed in newgame, and that is a step above simply adding things there.

I see, too complicated for me but thank.
 

YamiiJudaii

Warper
Member
Joined
Oct 24, 2020
Messages
4
Reaction score
1
First Language
francais
Primarily Uses
RMVXA
for playtesting and not having to rely on new game everytime
you could probably get away with the save file doctor script

Thank.
 

Latest Threads

Latest Posts

Latest Profile Posts

2021? I still wonder if people still doing MV than MZ more
Seeing a lot more active Ace topics recently, is it making a comeback? :o
0-7, left-to-right, top-to-bottom
As soon as I'm able to get out of bed I'm probably gonna go so hyper from being too cooped up, and burn myself out into another awful flare. lol
It makes me feel proud whenever an RM game does well. Even though I had nothing to do with it.

Forum statistics

Threads
107,627
Messages
1,031,013
Members
139,746
Latest member
Krunga
Top