I'm sorry, but an uncaught exception occurred.
While running game code:
File "game/script.rpy", line 17, in script
call screen waitforevent
File "renpy/common/000statements.rpy", line 519, in execute_call_screen
store._return = renpy.call_screen(name, *args, **kwargs)
File "renpy/common/00action_other.rpy", line 506, in __call__
rv = self.callable(*self.args, **self.kwargs)
File "game/dungeon.rpy", line 91, in dungeon_walk
endturn('step')
File "game/dungeon.rpy", line 108, in endturn
event.checktrigger(what)
File "game/dungeon.rpy", line 26, in checktrigger
renpy.jump_out_of_context(self.label)
JumpOutException: testexit
-- Full Traceback ------------------------------------------------------------
Full traceback:
File "D:\Programme\Ren'py\renpy-6.99.12.4-sdk\renpy\bootstrap.py", line 306, in bootstrap
renpy.main.main()
File "D:\Programme\Ren'py\renpy-6.99.12.4-sdk\renpy\main.py", line 513, in main
run(restart)
File "D:\Programme\Ren'py\renpy-6.99.12.4-sdk\renpy\main.py", line 139, in run
renpy.execution.run_context(True)
File "D:\Programme\Ren'py\renpy-6.99.12.4-sdk\renpy\execution.py", line 846, in run_context
context.run()
File "game/script.rpy", line 17, in script
call screen waitforevent
File "D:\Programme\Ren'py\renpy-6.99.12.4-sdk\renpy\ast.py", line 1828, in execute
self.call("execute")
File "D:\Programme\Ren'py\renpy-6.99.12.4-sdk\renpy\ast.py", line 1816, in call
return renpy.statements.call(method, parsed, *args, **kwargs)
File "D:\Programme\Ren'py\renpy-6.99.12.4-sdk\renpy\statements.py", line 177, in call
return method(parsed, *args, **kwargs)
File "renpy/common/000statements.rpy", line 519, in execute_call_screen
store._return = renpy.call_screen(name, *args, **kwargs)
File "D:\Programme\Ren'py\renpy-6.99.12.4-sdk\renpy\exports.py", line 2664, in call_screen
rv = renpy.ui.interact(mouse="screen", type="screen", roll_forward=roll_forward)
File "D:\Programme\Ren'py\renpy-6.99.12.4-sdk\renpy\ui.py", line 287, in interact
rv = renpy.game.interface.interact(roll_forward=roll_forward, **kwargs)
File "D:\Programme\Ren'py\renpy-6.99.12.4-sdk\renpy\display\core.py", line 2635, in interact
repeat, rv = self.interact_core(preloads=preloads, trans_pause=trans_pause, **kwargs)
File "D:\Programme\Ren'py\renpy-6.99.12.4-sdk\renpy\display\core.py", line 3437, in interact_core
rv = root_widget.event(ev, x, y, 0)
File "D:\Programme\Ren'py\renpy-6.99.12.4-sdk\renpy\display\layout.py", line 986, in event
rv = i.event(ev, x - xo, y - yo, cst)
File "D:\Programme\Ren'py\renpy-6.99.12.4-sdk\renpy\display\layout.py", line 986, in event
rv = i.event(ev, x - xo, y - yo, cst)
File "D:\Programme\Ren'py\renpy-6.99.12.4-sdk\renpy\display\layout.py", line 986, in event
rv = i.event(ev, x - xo, y - yo, cst)
File "D:\Programme\Ren'py\renpy-6.99.12.4-sdk\renpy\display\screen.py", line 689, in event
rv = self.child.event(ev, x, y, st)
File "D:\Programme\Ren'py\renpy-6.99.12.4-sdk\renpy\display\layout.py", line 986, in event
rv = i.event(ev, x - xo, y - yo, cst)
File "D:\Programme\Ren'py\renpy-6.99.12.4-sdk\renpy\display\behavior.py", line 439, in event
rv = run(action)
File "D:\Programme\Ren'py\renpy-6.99.12.4-sdk\renpy\display\behavior.py", line 315, in run
return action(*args, **kwargs)
File "renpy/common/00action_other.rpy", line 506, in __call__
rv = self.callable(*self.args, **self.kwargs)
File "game/dungeon.rpy", line 91, in dungeon_walk
endturn('step')
File "game/dungeon.rpy", line 108, in endturn
event.checktrigger(what)
File "game/dungeon.rpy", line 26, in checktrigger
renpy.jump_out_of_context(self.label)
File "D:\Programme\Ren'py\renpy-6.99.12.4-sdk\renpy\exports.py", line 1626, in jump_out_of_context
raise renpy.game.JumpOutException(label)
JumpOutException: testexit
Windows-8-6.2.9200
Ren'Py 6.99.14.2.3333
Dungeoncrawl 1.0
Fri May 18 01:53:51 2018
The code is not really that interesting in this regard and not that easy to evaluate. In essence, you press keys that are bound to functions that change variables. After each keypress, a set of if-checks occurs and if they give the right results, the jump is initiated. No other jumps or calls except function calls occur during the "minigame".
Code: Select all
screen minigame:
key "K_UP" action Function(dungeon_walk, 0)
key "K_LEFT" action Function(dungeon_turn, -1)
key "K_RIGHT" action Function(dungeon_turn, 1)
key "K_DOWN" action Function(dungeon_walk, 2)
key "K_SPACE" action Jump('event')
## and lots of "if" and "add" statements
dungeon_walk and dungeon_turn change some simple variables and end with a function call to endturn(what):
Code: Select all
def endturn(what):
for event in currentlevel.events:
event.checktrigger(what)
And checktrigger() is defined inside a class as:
Code: Select all
def checktrigger(self, action):
if self.active:
if self.coords == (party_x, party_y) and (2**party_heading & self.facing):
if (self.type == "auto") or (self.type == action):
## trigger this action
if not self.repeat:
self.active == False
renpy.jump_out_of_context(self.label)
The label "testexit" exists:
Code: Select all
label testexit:
"You found the EXIT."
return