Game version flag from saved files
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.
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.
Game version flag from saved files
Hello, I'm trying to implement the concept of a variable changing if the saved file loaded is from an old version of the game. Like I want to check user is currently using the latest version of the game, is this possible?
- Ocelot
- Eileen-Class Veteran
- Posts: 1883
- Joined: Tue Aug 23, 2016 10:35 am
- Github: MiiNiPaa
- Discord: MiiNiPaa#4384
- Contact:
Re: Game version flag from saved files
Something like that:
Code: Select all
default save_version = config,version
label after_load:
if save_version != config.version:
# Update data
# Other things to do
$ save_version = config.version # Update save game version
return
< < insert Rick Cook quote here > >
Re: Game version flag from saved files
Thanks!Ocelot wrote: ↑Sat Feb 12, 2022 3:07 pmSomething like that:
Code: Select all
default save_version = config,version label after_load: if save_version != config.version: # Update data # Other things to do $ save_version = config.version # Update save game version return
Who is online
Users browsing this forum: No registered users