Completely disable rollback
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.
-
- Miko-Class Veteran
- Posts: 616
- Joined: Thu Oct 26, 2006 4:23 pm
- Projects: My Teacher; Songs of Araiah; Something new; Possible Cross Bomber?
- Location: Slovakia, Kosice
- Contact:
Completely disable rollback
How do you disable(enable) rollback? I don't mean block_rollback() but completely disable that feature (say, during a combat done in renpy, rollback is a terrible option)
http://www.bishojo.tk is technically ONLINE!
Songs of Araiah promo: http://www.youtube.com/watch?v=CalchucuoDU
- Ocelot
- Lemma-Class Veteran
- Posts: 2406
- Joined: Tue Aug 23, 2016 10:35 am
- Github: MiiNiPaa
- Discord: MiiNiPaa#4384
- Contact:
Re: Completely disable rollback
https://www.renpy.org/doc/html/save_loa ... g-rollback
It is possible to disable rollback in part or in full. If rollback is not wanted at all, it can simply be turned off through the config.rollback_enabled option.
< < insert Rick Cook quote here > >
-
- Miko-Class Veteran
- Posts: 616
- Joined: Thu Oct 26, 2006 4:23 pm
- Projects: My Teacher; Songs of Araiah; Something new; Possible Cross Bomber?
- Location: Slovakia, Kosice
- Contact:
Re: Completely disable rollback
yeah exactly that is not useful, since you would have to call this at every interaction though or disable it for whole game
http://www.bishojo.tk is technically ONLINE!
Songs of Araiah promo: http://www.youtube.com/watch?v=CalchucuoDU
Re: Completely disable rollback
You can do it easily just place this line at the start of your game. And if you want it enabled back just set it to True.
Code: Select all
$ config.rollback_enabled = False
-
- Miko-Class Veteran
- Posts: 616
- Joined: Thu Oct 26, 2006 4:23 pm
- Projects: My Teacher; Songs of Araiah; Something new; Possible Cross Bomber?
- Location: Slovakia, Kosice
- Contact:
Re: Completely disable rollback
so renpy actually dynamically checks config.rollback_enabled? cool to know
http://www.bishojo.tk is technically ONLINE!
Songs of Araiah promo: http://www.youtube.com/watch?v=CalchucuoDU
- papiersam
- Veteran
- Posts: 231
- Joined: Fri Aug 12, 2016 2:24 pm
- Completed: Gem Hunt Beta, 1/Probably, Animunch
- Projects: The Panda Who Dreamed
- Contact:
Re: Completely disable rollback
No, I don't think so. rollblock_enable probably acts as a flag that is checked at program startup, rather than dynamically. But that's just an assumption.so renpy actually dynamically checks config.rollback_enabled?
- PyTom
- Ren'Py Creator
- Posts: 16096
- Joined: Mon Feb 02, 2004 10:58 am
- Completed: Moonlight Walks
- Projects: Ren'Py
- IRC Nick: renpytom
- Github: renpytom
- itch: renpytom
- Location: Kings Park, NY
- Contact:
Re: Completely disable rollback
I don't recommend changing config variables while the game is running, since they're not updated when a game is loaded.
Instead, consider controlling the _rollback variable.
Instead, consider controlling the _rollback variable.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom(When was the last time you backed up your game?)
Software > Drama • https://www.patreon.com/renpytom
-
- Miko-Class Veteran
- Posts: 616
- Joined: Thu Oct 26, 2006 4:23 pm
- Projects: My Teacher; Songs of Araiah; Something new; Possible Cross Bomber?
- Location: Slovakia, Kosice
- Contact:
Re: Completely disable rollback
thanks pytom, that was it, Can it be done from python code?
http://www.bishojo.tk is technically ONLINE!
Songs of Araiah promo: http://www.youtube.com/watch?v=CalchucuoDU
- PyTom
- Ren'Py Creator
- Posts: 16096
- Joined: Mon Feb 02, 2004 10:58 am
- Completed: Moonlight Walks
- Projects: Ren'Py
- IRC Nick: renpytom
- Github: renpytom
- itch: renpytom
- Location: Kings Park, NY
- Contact:
Re: Completely disable rollback
Yes, it's just a normal python variable. You can do things like setting it from python code. If you want to control it from inside a function, be sure to set the function global.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom(When was the last time you backed up your game?)
Software > Drama • https://www.patreon.com/renpytom
-
- Miko-Class Veteran
- Posts: 616
- Joined: Thu Oct 26, 2006 4:23 pm
- Projects: My Teacher; Songs of Araiah; Something new; Possible Cross Bomber?
- Location: Slovakia, Kosice
- Contact:
Re: Completely disable rollback
what if I want to access it from outside python code from some imported module?
http://www.bishojo.tk is technically ONLINE!
Songs of Araiah promo: http://www.youtube.com/watch?v=CalchucuoDU
- PyTom
- Ren'Py Creator
- Posts: 16096
- Joined: Mon Feb 02, 2004 10:58 am
- Completed: Moonlight Walks
- Projects: Ren'Py
- IRC Nick: renpytom
- Github: renpytom
- itch: renpytom
- Location: Kings Park, NY
- Contact:
Re: Completely disable rollback
You can do:
import renpy.store
and then
renpy.store._rollback = ...
import renpy.store
and then
renpy.store._rollback = ...
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom(When was the last time you backed up your game?)
Software > Drama • https://www.patreon.com/renpytom
-
- Miko-Class Veteran
- Posts: 616
- Joined: Thu Oct 26, 2006 4:23 pm
- Projects: My Teacher; Songs of Araiah; Something new; Possible Cross Bomber?
- Location: Slovakia, Kosice
- Contact:
Re: Completely disable rollback
thanks a lot!
http://www.bishojo.tk is technically ONLINE!
Songs of Araiah promo: http://www.youtube.com/watch?v=CalchucuoDU
Who is online
Users browsing this forum: Ahrefs [Bot]