summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2022-07-28 20:49:58 -0300
committerJesusaves <cpntb1@ymail.com>2022-07-28 20:49:58 -0300
commit904c9e4e908df1324e58d0af6f135b818eeee954 (patch)
tree4f8836897b75eed18d693fb02224f3ce493426e0
parent39ad62c23d917507c4a8912b071730abd2210a61 (diff)
downloadclient-904c9e4e908df1324e58d0af6f135b818eeee954.tar.gz
client-904c9e4e908df1324e58d0af6f135b818eeee954.tar.bz2
client-904c9e4e908df1324e58d0af6f135b818eeee954.tar.xz
client-904c9e4e908df1324e58d0af6f135b818eeee954.zip
Start sending MyUID, however it isn't used yet
-rw-r--r--game/01_init.rpy4
-rw-r--r--game/options.rpy2
-rw-r--r--game/register.rpy8
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"]