- Mar 3, 2018
- 1,587
- 496
Ninoss do we have an eta on the next update? I would like to package up what I have for scripts and dump it here after the update rolls out so I can get my code in line with your refactoring of mods.
Also I am trying to call a planned event either from the classroom or when you return home and this is what I'm using but it never happens. The is_brainwashed is a new variable so I assume I have to reset the game in order for this to work right?
When restarting I'm getting crashes now and here is a fix for one of them but idk what to do with the other:
code in eventManager.py where on line 32 you should instead have
in eventManager.py on line 33 I got this as an error:
[/CODE]
Also I am trying to call a planned event either from the classroom or when you return home and this is what I'm using but it never happens. The is_brainwashed is a new variable so I assume I have to reset the game in order for this to work right?
Code:
DB_plannedEvents.append(Event("brainwashing_complete",0, _condition = "selectedGirl.corruption = 100 and selectedGirl.is_brainwashed = False"))
code in eventManager.py where on line 32 you should instead have
Code:
except Exception as e:
Code:
[code]
I'm sorry, but an uncaught exception occurred.
While running game code:
File "game/scripts/script.rpy", line 18, in script call
call pickName from _call_pickName
File "game/scripts/lb_home.rpy", line 24, in script
$ eventManager.doEvent()
File "game/scripts/lb_home.rpy", line 24, in <module>
$ eventManager.doEvent()
File "game/scripts/main_classes/eventManager.rpy", line 74, in doEvent
if _event.timeFrame[0] <= timeManager.hour <= _event.timeFrame[1] and _event.checkConditions():
File "game/scripts/main_classes/eventManager.rpy", line 33, in checkConditions
renpy.log("[eventManager] Error in condition or girlsNeeded for {} ({})".format(self.label), e)
IndexError: tuple index out of range
-- Full Traceback ------------------------------------------------------------
Full traceback:
File "game/scripts/script.rpy", line 18, in script call
call pickName from _call_pickName
File "game/scripts/lb_home.rpy", line 24, in script
$ eventManager.doEvent()
File "renpy/ast.py", line 1133, in execute
renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
File "renpy/python.py", line 1049, in py_exec_bytecode
exec(bytecode, globals, locals)
File "game/scripts/lb_home.rpy", line 24, in <module>
$ eventManager.doEvent()
File "game/scripts/main_classes/eventManager.rpy", line 74, in doEvent
if _event.timeFrame[0] <= timeManager.hour <= _event.timeFrame[1] and _event.checkConditions():
File "game/scripts/main_classes/eventManager.rpy", line 33, in checkConditions
renpy.log("[eventManager] Error in condition or girlsNeeded for {} ({})".format(self.label), e)
IndexError: tuple index out of range
Last edited: