summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2022-08-06 16:47:46 -0300
committerJesusaves <cpntb1@ymail.com>2022-08-06 16:47:46 -0300
commit38187653c556a347d4bec623d8603fef6ef0c5e9 (patch)
tree18ee11827b66ee5d965b6f2729c01e9a039595e9
parentcff66e8edc93db7586e22773fbee189f9116e824 (diff)
downloadclient-38187653c556a347d4bec623d8603fef6ef0c5e9.tar.gz
client-38187653c556a347d4bec623d8603fef6ef0c5e9.tar.bz2
client-38187653c556a347d4bec623d8603fef6ef0c5e9.tar.xz
client-38187653c556a347d4bec623d8603fef6ef0c5e9.zip
DO NOT hardcode port number
-rw-r--r--game/01_init.rpy6
-rw-r--r--game/04_init.rpy4
-rw-r--r--game/options.rpy3
3 files changed, 9 insertions, 4 deletions
diff --git a/game/01_init.rpy b/game/01_init.rpy
index 55a305c..10f7908 100644
--- a/game/01_init.rpy
+++ b/game/01_init.rpy
@@ -308,6 +308,12 @@ init -3 python:
return posix/1024.0
# File Managment Functions
+ # We could use Android/data/org.renpy.mygame/files/game
+ # to patch directly and achieve a better experience, BUT
+ # 1. this code is old, and 2. save folder can easily be
+ # retrieved from config and makes testing on Linux closer
+ # to the actual android experience (saves on debugging)
+ # Meanwhile, Windows has all sort of issues.
def get_path(path):
if not renpy.windows:
path=path.replace("/", "_")
diff --git a/game/04_init.rpy b/game/04_init.rpy
index 304f63a..9b73cd2 100644
--- a/game/04_init.rpy
+++ b/game/04_init.rpy
@@ -189,9 +189,9 @@ init python:
while not done:
try:
if use_ssl:
- ws = GameClient("wss://"+HOST+":61000")
+ ws = GameClient("wss://"+HOST+":"+PORT)
else:
- ws = GameClient("ws://"+HOST+":61000")
+ ws = GameClient("ws://"+HOST+":"+PORT)
ws.connect()
# May be problematic.
# Specially if exception is uncaught
diff --git a/game/options.rpy b/game/options.rpy
index f2297a3..4ef2a51 100644
--- a/game/options.rpy
+++ b/game/options.rpy
@@ -26,6 +26,7 @@ init -2 python:
define gui.show_name = True
define _confirm_quit = False
define config.gl2 = False
+define config.allow_underfull_grids = True
## Debug
#define config.profile = True
@@ -262,5 +263,3 @@ init python:
define build.include_update = True
-define config.allow_underfull_grids = True
-