I’m using the cookbook OOP & Rollback module to take care of rollback with class variables. But simply importing the module
Code: Select all
init -999:
$ from oop import *
Code: Select all
I'm sorry, but an uncaught exception occurred.
While executing init code:
File "renpy/common/00action_other.rpy", line 417, in script
screen notify:
File "renpy/common/000window.rpy", line 76, in _window_auto_callback
if not store._window_auto:
AttributeError: 'StoreModule' object has no attribute '_window_auto'
-- Full Traceback ------------------------------------------------------------
Full traceback:
File "renpy/common/00action_other.rpy", line 417, in script
screen notify:
File "C:\Users\isana\My Applications\renpy-6.17.7-sdk\renpy\ast.py", line 1751, in execute
statement_name("screen")
File "C:\Users\isana\My Applications\renpy-6.17.7-sdk\renpy\ast.py", line 41, in statement_name
i(name)
File "renpy/common/000window.rpy", line 76, in _window_auto_callback
if not store._window_auto:
AttributeError: 'StoreModule' object has no attribute '_window_auto'
Windows-7-6.1.7601-SP1
Ren'Py 6.18.3.761
The author of the module did say the code was functional but not optimal. How can the exception be fixed?
(I know there’s always the option of quitting the game normally, and using other means to jump back to the part of the game being tested, but it would be nice if the reload function worked again and the OOP module could be kept. Unless there is a simpler, no uncaught exception workaround for rollback with class variables?)