From 10f79752c0446ce5939eb12260f65343846a567d Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Sat, 7 Aug 2021 23:46:48 -0300 Subject: Respond better to fatal errors --- game/01_init.rpy | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'game/01_init.rpy') diff --git a/game/01_init.rpy b/game/01_init.rpy index bcdd844..9b12e74 100644 --- a/game/01_init.rpy +++ b/game/01_init.rpy @@ -328,7 +328,7 @@ init -3 python: ############################################################################# # URL3 Function def GAME_UPDATER(): - global tr_uptodate + global tr_uptodate, tr_fatality tr_uptodate=False # If no version is provided, we are using default files @@ -346,6 +346,7 @@ init -3 python: # TODO: Should we set a "ver"? if (int(persistent.version) < ver): + try: # TODO: Check if the server have SSL support stdout("Downloading updated game data...") @@ -393,6 +394,10 @@ init -3 python: persistent.version=ver stdout("Update complete") + except: + tr_fatality = False + traceback.print_exc() + stdout("[FATAL] Unable to update JSON files; Aborted") # Download server news # Handled by GAME_LOADER -- cgit v1.2.3-60-g2f50