Patching Game, New Variables, Save Compatibility.

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
Dark79
Newbie
Posts: 9
Joined: Sun Apr 18, 2021 2:21 pm
Contact:

Patching Game, New Variables, Save Compatibility.

#1 Post by Dark79 » Mon Oct 24, 2022 5:24 am

Hello there,

I have a question regarding the save compatibly when the new patch contains new added variables.

My main concern is about "default" like default NewVariable = 0 type variables. For example the new game version is 1.02 contains the new variables. Will they work fine after loading a save file which was originally generated from game version 1.01 or does the user need to start a new game for the new variables to work?

Thank you.
Last edited by Dark79 on Mon Oct 24, 2022 5:26 am, edited 1 time in total.

User avatar
Ocelot
Eileen-Class Veteran
Posts: 1882
Joined: Tue Aug 23, 2016 10:35 am
Github: MiiNiPaa
Discord: MiiNiPaa#4384
Contact:

Re: Patching Game, including new Variables

#2 Post by Ocelot » Mon Oct 24, 2022 5:26 am

Yes. they would. default will create variable if it does not exist when starting a new game or loading a saved game. This is exactly why they are suggested over simply initializing variables or creating them just after start.
< < insert Rick Cook quote here > >

Dark79
Newbie
Posts: 9
Joined: Sun Apr 18, 2021 2:21 pm
Contact:

Re: Patching Game, including new Variables

#3 Post by Dark79 » Mon Oct 24, 2022 5:30 am

Ocelot wrote:
Mon Oct 24, 2022 5:26 am
Yes. they would. default will create variable if it does not exist when starting a new game or loading a saved game. This is exactly why they are suggested over simply initializing variables or creating them just after start.
Thank you for the quick response! :D

Post Reply

Who is online

Users browsing this forum: Bing [Bot], Google [Bot]