diff options
Diffstat (limited to 'game/04_init.rpy')
-rw-r--r-- | game/04_init.rpy | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/game/04_init.rpy b/game/04_init.rpy index b5449f5..2becb6f 100644 --- a/game/04_init.rpy +++ b/game/04_init.rpy @@ -62,7 +62,8 @@ init python: # This is a huge problem o.o while True: renpy.call_screen("msgbox", - "An unrecoverable error happened.\nPress OK to return to main menu screen.") + "An unrecoverable error happened.\nPlease close and re-open the app.") + # "An unrecoverable error happened.\nPress OK to return to main menu screen.") #raise KeyboardException(str(err)) #raise err # FIXME: Not working, and the loop also does not work @@ -70,6 +71,15 @@ init python: # I wonder if I can/should run this in a non-daemon thread? # But I sense the problem is not here but a level above #renpy.quit(relaunch=True, status=1) - sdelay(1.0) + sdelay(20.0) return 1 + # Be mindful of where/when using this function + # Or "onmsg" may accidentally not be cast =/ + def send_packet_now(packet, args=""): + global ws, tr_load, tr_val, tr_busy + + stdout("Sending: %s" % packet) + ws.send(get_token() + ";" + packet + ";" + args) + return + |