summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2021-05-10 01:06:37 -0300
committerJesusaves <cpntb1@ymail.com>2021-05-10 01:06:37 -0300
commit2f15dc17ac2b68bba0d1bd44bfd57b6c6881e4cf (patch)
treea62e48bd39ef8716bd5a7be35b03ef9183dcd6f0
parent484cea05874fc18b942cc2e42cb0178af6388de0 (diff)
downloadrenpy-2f15dc17ac2b68bba0d1bd44bfd57b6c6881e4cf.tar.gz
renpy-2f15dc17ac2b68bba0d1bd44bfd57b6c6881e4cf.tar.bz2
renpy-2f15dc17ac2b68bba0d1bd44bfd57b6c6881e4cf.tar.xz
renpy-2f15dc17ac2b68bba0d1bd44bfd57b6c6881e4cf.zip
Define USE_DUMMY_DATA, which causes Ren'Py to use a dummy data instead of fetching updates.
-rw-r--r--game/options.rpy1
-rw-r--r--game/update.rpy9
2 files changed, 10 insertions, 0 deletions
diff --git a/game/options.rpy b/game/options.rpy
index 3038eb3..c89f79a 100644
--- a/game/options.rpy
+++ b/game/options.rpy
@@ -250,4 +250,5 @@ init python:
define config.steam_appid = 1570940
define discord_id = 840427221193195541
+define USE_DUMMY_DATA = False
diff --git a/game/update.rpy b/game/update.rpy
index 234516e..9c4525b 100644
--- a/game/update.rpy
+++ b/game/update.rpy
@@ -85,6 +85,15 @@ init python:
global progress, statusmsg, responsive, has_steam, vaultId, vaultToken
statusmsg="Loading user configuration..."
#########################################################################
+ ## Strictly for debugging purposes, skip everything
+ if USE_DUMMY_DATA:
+ if persistent.host is None:
+ persistent.host=HOST_LIST[0]
+ if persistent.serverlist is None or persistent.serverlist == []:
+ persistent.serverlist=[{"Name": "Moubootaur Legends", "Host": "server.tmw2.org", "Port": 6901, "Desc": "Ready to become a Moubootaur Legend now?\n\nIn Moubootaur Legends universe, a being known as the Monster King threatens humanity, sending hordes of monsters and causing havoc for purposes unknown for anyone. And yet, in the shadows, a greater threat looms over the horizon, waiting for the time of its ressurection...\nTake arms, for heroes are not born but forged with sweat and effort, and become a Moubootaur Legend now.", "Link": "https://moubootaurlegends.org/", "News": "https://updates.tmw2.org/news.txt", "Back": "tmw2", "UUID": "5936870052ae411c8f0271907f8cf2e4", "Help": "https://discord.gg/J4gcaqM", "Online": "https://tmw2.org/online.json", "Policy": "https://tmw2.org/legal"}]
+ vaultId = 99; vaultToken = "token"; progress = 100
+ return
+ #########################################################################
# If persistent data is not yet set, it must be created
# This block is 1~60%
# But first we check for updates