diff options
author | Jesusaves <cpntb1@ymail.com> | 2020-12-16 16:03:54 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2020-12-16 16:03:54 -0300 |
commit | fba89f64f6f69e9a0d58c0ea67d4d3cca2e242b4 (patch) | |
tree | a6c3e5530cd74298053a12dd361e10a59f2ea333 /game | |
parent | f18fff1414414bdd245aec76a172e55f4dbfe162 (diff) | |
download | client-fba89f64f6f69e9a0d58c0ea67d4d3cca2e242b4.tar.gz client-fba89f64f6f69e9a0d58c0ea67d4d3cca2e242b4.tar.bz2 client-fba89f64f6f69e9a0d58c0ea67d4d3cca2e242b4.tar.xz client-fba89f64f6f69e9a0d58c0ea67d4d3cca2e242b4.zip |
Some stuff is broken D:
Diffstat (limited to 'game')
-rw-r--r-- | game/misc.rpy | 15 | ||||
-rw-r--r-- | game/screens.rpy | 1 | ||||
-rw-r--r-- | game/script.rpy | 5 |
3 files changed, 13 insertions, 8 deletions
diff --git a/game/misc.rpy b/game/misc.rpy index f52664c..a92acd8 100644 --- a/game/misc.rpy +++ b/game/misc.rpy @@ -168,6 +168,7 @@ label clear_all: python: # Your version is no longer valid if (HOST != persistent.host): + print("Host changed from %s to %s" % (str(HOST), persistent.host)) persistent.version=1 # TODO: Clear cache @@ -177,8 +178,10 @@ label clear_all: renpy.notify("Deleting password: %s" % persistent.password) persistent.password=None - "Spheres" "Server data purged, we'll update game data next time you start the game." - $renpy.full_restart() + "Spheres" "Server data purged, we will now relaunch the game." + if debug or config.developer: + "Spheres" "Techinical info:\n\nServer: [HOST]:[PORT]" + $renpy.quit(relaunch=True) jump start label clear_cache: @@ -190,10 +193,10 @@ label clear_cache: persistent.version=1 # Find path to cached files - if renpy.android: - root=get_path("") - else: - root=get_path("extra/") + #if renpy.android: + root=get_path("") + #else: + # root=get_path("extra/") # Remove cached files for file in os.listdir(root): diff --git a/game/screens.rpy b/game/screens.rpy index 77b953e..185ef08 100644 --- a/game/screens.rpy +++ b/game/screens.rpy @@ -778,6 +778,7 @@ screen preferences(): null height 60 label _("Server") for k in persistent.serverlist: + # FIXME textbutton _(k[0]): action [ SetVariable("persistent.host", k[1]), diff --git a/game/script.rpy b/game/script.rpy index 6147efe..456f4f8 100644 --- a/game/script.rpy +++ b/game/script.rpy @@ -143,6 +143,7 @@ label start: # Otherwise just login jump login +############################################################################ # Registration procedures # You don't have an account yet label register_email: @@ -152,7 +153,7 @@ label register_email: email = "" # Ask player for their email while email == "": - email=renpy.call_screen("input_box", "Welcome to %s!\nPlease insert your email to register an account: \n{size=12}Your account password will be emailed to you. This is the only way to recover a lost account. You can use an {a=https://www.tempmailaddress.com/}Temporary email{/a} if you wish.{/size}" % (config.name)) + email=renpy.call_screen("input_box", "Welcome to %s!\nPlease insert your email to register an account: \n{size=24}Your account password will be emailed to you. This is the only way to recover a lost account. You can use an {a=https://www.tempmailaddress.com/}Temporary email{/a} if you wish.{/size}" % (config.name)) if not re.search(regex, email): email="" renpy.call_screen("msgbox", @@ -237,7 +238,7 @@ label login: for a in inv: Player["inv"].append(a) - # Run AP Timer if needed + # Run AP Timer if needed (FIXME) if (Player["ap"] < Player["max_ap"]): ApTimer=Timer(360.0, ap_restore) ApTimer.start() |