[Solved] Non-persistent variables are getting carried form older saves to new games.
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.
-
- Regular
- Posts: 37
- Joined: Sat Nov 23, 2019 7:03 pm
- Projects: Kingmaker
- Contact:
[Solved] Non-persistent variables are getting carried form older saves to new games.
Hey, guys. I'm having an issue with renpy so I was wondering if any of you had an idea of what was going on. It's pretty much what the title says. Right now if I start a new game I'll have all the variables carry over from the last save, and these are not persistent variables so they shouldn't do that.
Last edited by KingmakerVN on Sat Jan 15, 2022 5:26 pm, edited 1 time in total.
- Ocelot
- Lemma-Class Veteran
- Posts: 2384
- Joined: Tue Aug 23, 2016 10:35 am
- Github: MiiNiPaa
- Discord: MiiNiPaa#4384
- Contact:
Re: Non-persistent variables are getting carried form older saves to new games.
How do you start new game? Did you change main menu screen? If so, show definition of button which starts a new game.
< < insert Rick Cook quote here > >
-
- Regular
- Posts: 37
- Joined: Sat Nov 23, 2019 7:03 pm
- Projects: Kingmaker
- Contact:
Re: Non-persistent variables are getting carried form older saves to new games.
You mean this?
Code: Select all
if main_menu:
textbutton _("Start") action Start()
-
- Regular
- Posts: 37
- Joined: Sat Nov 23, 2019 7:03 pm
- Projects: Kingmaker
- Contact:
Re: Non-persistent variables are getting carried form older saves to new games.
It also happens when I activate auto-reload.
Re: Non-persistent variables are getting carried form older saves to new games.
What's that variables, how they defined, how they change their values, how did you find out that those variables are keep the values from previous gameplay?
Check this section if haven't yet - https://www.renpy.org/doc/html/save_load_rollback.html
Check this section if haven't yet - https://www.renpy.org/doc/html/save_load_rollback.html
-
- Regular
- Posts: 37
- Joined: Sat Nov 23, 2019 7:03 pm
- Projects: Kingmaker
- Contact:
Re: Non-persistent variables are getting carried form older saves to new games.
Yes, thank you. It seemed to be that. It somehow didn't matter when the variables were defined on the main script but since I move all the code to its own script it started acting up.Alex wrote: ↑Sat Jan 15, 2022 5:14 pm What's that variables, how they defined, how they change their values, how did you find out that those variables are keep the values from previous gameplay?
Check this section if haven't yet - https://www.renpy.org/doc/html/save_load_rollback.html
Who is online
Users browsing this forum: Ahrefs [Bot], Kocker, Semrush [Bot], ZianRiyone