From 904c9e4e908df1324e58d0af6f135b818eeee954 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Thu, 28 Jul 2022 20:49:58 -0300 Subject: Start sending MyUID, however it isn't used yet --- game/01_init.rpy | 4 +++- game/options.rpy | 2 +- game/register.rpy | 8 +++++++- 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/game/01_init.rpy b/game/01_init.rpy index 4b7c596..55a305c 100644 --- a/game/01_init.rpy +++ b/game/01_init.rpy @@ -41,7 +41,7 @@ init -3 python: # Configuration config.autoreload = False config.save_on_mobile_background = False - persistent.release_name = "Diamond Python" + persistent.release_name = "Diamond Python VIII" if persistent.host is None: persistent.host="spheres.tmw2.org" persistent.serverlist=[["TMW2", "spheres.tmw2.org", 61000]] @@ -50,6 +50,8 @@ init -3 python: persistent.ssl_enabled=False else: persistent.serverlist.append(["Localhost", "localhost", 61000]) + if persistent.MyUID is None: + persistent.MyUID=uuid.uuid4().hex.upper() if (persistent.allfiles is None): persistent.allfiles=[] allfiles=[] diff --git a/game/options.rpy b/game/options.rpy index 01403a2..0050ab7 100644 --- a/game/options.rpy +++ b/game/options.rpy @@ -17,7 +17,7 @@ init -2 python: ## The version of the game. - config.version = "2.1.8.18" + config.version = "2.2.7.27" ## Determines if the title given above is shown on the main menu screen. Set diff --git a/game/register.rpy b/game/register.rpy index d09b579..0aae3fe 100644 --- a/game/register.rpy +++ b/game/register.rpy @@ -85,8 +85,14 @@ label register_email: "The email you've entered is not valid.") # You've inserted a valid email - raw=send_packet("register", """{"email": "%s"}""" % email) + raw=send_packet("register", """{"email": "%s", "MyUID": "%s"}""" % (email, persistent.MyUID)) bt=json_decode(raw) + # TODO: Maybe just use uuid4 to make a fake email, then fetch password + # Show player the fake email (UUID) and the password and disclaim: + # THIS WON'T BE SHOWN AGAIN, STORE IT SOMEWHERE SECURE + # (or save to persistent data and allow linking later?) + # ...Actually the email/UUID gimmick is useless? + # Also, couldn't people just brute-force other ppl passwords? try: password=bt["password"] -- cgit v1.2.3-60-g2f50