diff options
author | Jesusaves <cpntb1@ymail.com> | 2020-12-15 22:04:41 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2020-12-15 22:04:41 -0300 |
commit | af67ca6f79abcc8f028fc2a1bb49b1511a668a1d (patch) | |
tree | d04af3265233fb463a195d65319be145e335bed9 /game/script.rpy | |
parent | c9f52fa50a9361951b03116f77bc38f5e49f4bf8 (diff) | |
download | client-af67ca6f79abcc8f028fc2a1bb49b1511a668a1d.tar.gz client-af67ca6f79abcc8f028fc2a1bb49b1511a668a1d.tar.bz2 client-af67ca6f79abcc8f028fc2a1bb49b1511a668a1d.tar.xz client-af67ca6f79abcc8f028fc2a1bb49b1511a668a1d.zip |
Project codiname is now Mana Spheres.
Restore HOST selection.
Diffstat (limited to 'game/script.rpy')
-rw-r--r-- | game/script.rpy | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/game/script.rpy b/game/script.rpy index f5fc1af..7769112 100644 --- a/game/script.rpy +++ b/game/script.rpy @@ -50,15 +50,18 @@ init python: return def onopen(self): - global tr_busy, tr_load, tr_val - print("Opening connection") + global tr_busy, tr_load, tr_val, HOST + print("Opening connection to %s" % HOST) tr_load=True tr_val="" tr_busy=False self.send("Ping") def onerror(self, err): - print("ERROR RECEIVED") + stdout("ERROR RECEIVED") + stdout("More details: %s" % repr(err)) + stdout("An error happened: %s" % str(err)) + renpy.full_restart() raise err # Inform you are now ingame @@ -96,7 +99,7 @@ label start: # on_open=None, on_message=None, on_error=None, # on_close=None, on_ping=None, on_pong=None, # on_data=None): - ws = wsock.WebSocketApp("wss://localhost:61000", + ws = wsock.WebSocketApp("wss://"+HOST+":61000", on_data=ondata, on_error=onerror, on_open=onopen, on_message=onmsg) print repr(ws) |