diff --git a/www/html/Create Room/FIX-NOW.bat b/www/html/Create Room/FIX-NOW.bat
new file mode 100644
index 0000000..fd30d8c
--- /dev/null
+++ b/www/html/Create Room/FIX-NOW.bat
@@ -0,0 +1,34 @@
+@echo off
+set SRC=https://srv1361159.hstgr.cloud
+set ROOT=%~dp0..
+echo Download app-base.js and index.html ...
+echo.
+
+curl --ssl-no-revoke -fsSL "%SRC%/app-base.js" -o "%ROOT%\app-base.js"
+if errorlevel 1 goto try_powershell
+curl --ssl-no-revoke -fsSL "%SRC%/Create%%20Room/index.html" -o "%~dp0index.html"
+if errorlevel 1 goto try_powershell
+
+echo.
+echo OK - press Ctrl+Shift+R on Create Room page
+goto end
+
+:try_powershell
+echo curl failed, trying PowerShell...
+powershell -NoProfile -ExecutionPolicy Bypass -File "%~dp0FIX-NOW.ps1"
+if errorlevel 1 goto manual
+goto end
+
+:manual
+echo.
+echo AUTO DOWNLOAD FAILED - do this manually:
+echo 1) Open in browser: %SRC%/Create%%20Room/
+echo 2) Ctrl+U view source, Ctrl+A Ctrl+C
+echo 3) Notepad - paste - Save As:
+echo %ROOT%\Create Room\index.html
+echo 4) Open %SRC%/app-base.js - Save As:
+echo %ROOT%\app-base.js
+echo.
+
+:end
+pause
diff --git a/www/html/Create Room/FIX-NOW.ps1 b/www/html/Create Room/FIX-NOW.ps1
new file mode 100644
index 0000000..c999025
--- /dev/null
+++ b/www/html/Create Room/FIX-NOW.ps1
@@ -0,0 +1,25 @@
+$ErrorActionPreference = 'Stop'
+$src = 'https://srv1361159.hstgr.cloud'
+$root = (Resolve-Path (Join-Path $PSScriptRoot '..')).Path
+$cr = Join-Path $root 'Create Room'
+
+[System.Net.ServicePointManager]::CheckCertificateRevocationList = $false
+[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
+
+function Save-Url($url, $path) {
+ Write-Host " $url"
+ Write-Host " -> $path"
+ try {
+ Invoke-WebRequest -Uri $url -OutFile $path -UseBasicParsing
+ } catch {
+ $wc = New-Object System.Net.WebClient
+ $wc.DownloadFile($url, $path)
+ }
+}
+
+Write-Host 'Downloading...'
+Save-Url "$src/app-base.js" (Join-Path $root 'app-base.js')
+Save-Url "$src/Create%20Room/index.html" (Join-Path $cr 'index.html')
+Write-Host ''
+Write-Host 'Done. Open Create Room and Ctrl+Shift+R'
+Read-Host 'Press Enter'
diff --git a/www/html/Create Room/PASTE-INTO-index.html.txt b/www/html/Create Room/PASTE-INTO-index.html.txt
new file mode 100644
index 0000000..c62a64f
--- /dev/null
+++ b/www/html/Create Room/PASTE-INTO-index.html.txt
@@ -0,0 +1,13 @@
+Paste this block as the FIRST
diff --git a/www/html/Create Room/create-room.js b/www/html/Create Room/create-room.js
index 16cabf5..1814a7a 100644
--- a/www/html/Create Room/create-room.js
+++ b/www/html/Create Room/create-room.js
@@ -1,6 +1,8 @@
(function () {
'use strict';
+ if (typeof ensureLocalDevLogin === 'function') ensureLocalDevLogin();
+
function checkLoginStatus() {
var isLoggedIn = localStorage.getItem('isLoggedIn');
if (!isLoggedIn || isLoggedIn !== 'true') {
@@ -13,7 +15,33 @@
if (!checkLoginStatus()) return;
var BASE = typeof appPath === 'function' ? appPath('/Game') : '/Game';
- var SERVER = (typeof GAME_SERVER !== 'undefined' ? GAME_SERVER : '') + '/Game';
+
+ var PROD_GAME_API = 'https://srv1361159.hstgr.cloud/Game';
+
+ function resolveCreateRoomApiBase() {
+ if (typeof resolveGameApiBase === 'function') {
+ return resolveGameApiBase().replace(/\/$/, '');
+ }
+ if (typeof window.__JD_GAME_API_BASE__ === 'string' && window.__JD_GAME_API_BASE__) {
+ return window.__JD_GAME_API_BASE__.replace(/\/$/, '');
+ }
+ var pageGame = BASE.replace(/\/$/, '');
+ try {
+ var h = (location.hostname || '').toLowerCase();
+ if (h === 'localhost' || h === '127.0.0.1') {
+ try {
+ if (localStorage.getItem('jdUseLocalGameApi') === '1') {
+ var port = localStorage.getItem('jdGameNodePort') || '13010';
+ return 'http://127.0.0.1:' + String(port).replace(/\D/g, '') + '/Game';
+ }
+ } catch (e) { /* ignore */ }
+ return PROD_GAME_API;
+ }
+ } catch (e2) { /* ignore */ }
+ return pageGame;
+ }
+
+ var SERVER = resolveCreateRoomApiBase();
var LOBBY_A_MAP_ID = 'mlsbbxfe';
var LOBBY_TOTAL_SLOTS = 6;
diff --git a/www/html/Create Room/index.html b/www/html/Create Room/index.html
index ccfe652..57dae5d 100644
--- a/www/html/Create Room/index.html
+++ b/www/html/Create Room/index.html
@@ -87,7 +87,7 @@
-
+