| Both sides previous revisionPrevious revisionNext revision | Previous revision |
| games:windows:2004scape_localhost [2026/05/23 15:30] – Sean Rhone | games:windows:2004scape_localhost [2026/06/22 00:26] (current) – Sean Rhone |
|---|
| ====== Information ====== | ====== Information ====== |
| |
| * Lost City ''225'' Server + Client | * Lost City Server + Client |
| | * ''225'' |
| * [[https://lostcity.rs/t/singleplayer-main-branch-scripts-and-desktop-start-launchers-on-windows-linux-freebsd/54|Lost City Forums]] | * [[https://lostcity.rs/t/singleplayer-main-branch-scripts-and-desktop-start-launchers-on-windows-linux-freebsd/54|Lost City Forums]] |
| |
| ===== Media ===== | |
| |
| * [[https://media.realmofespionage.xyz/index/category/2|Progress Pics]] | |
| * [[https://www.youtube.com/watch?v=o-HlDZREEAw|Full install video]] | |
| |
| ===== Prerequisites ===== | ===== Prerequisites ===== |
| * Latest [[https://github.com/oven-sh/bun/releases/latest/download/bun-windows-x64.zip|bun-windows-x64.zip]] (([[https://github.com/oven-sh/bun/releases/latest/download/bun-windows-x64-baseline.zip|baseline]] for older CPU, [[https://bun.com/docs/installation#baseline-builds|more info]])) | * Latest [[https://github.com/oven-sh/bun/releases/latest/download/bun-windows-x64.zip|bun-windows-x64.zip]] (([[https://github.com/oven-sh/bun/releases/latest/download/bun-windows-x64-baseline.zip|baseline]] for older CPU, [[https://bun.com/docs/installation#baseline-builds|more info]])) |
| |
| MKDIR "%UserProfile%\Projects\LostCity-225-EngineTS\ext" & DEL /Q "%UserProfile%\Projects\LostCity-225-EngineTS\ext\bun.exe" "%Temp%\bun-windows-x64.zip" & "%SystemRoot%\System32\curl.exe" --output "%Temp%\bun-windows-x64.zip" --location "https://github.com/oven-sh/bun/releases/latest/download/bun-windows-x64.zip" --progress-bar && "%SystemRoot%\System32\tar.exe" -xvf "%Temp%\bun-windows-x64.zip" --strip-components="1" -C "%UserProfile%\Projects\LostCity-225-EngineTS\ext" "bun-windows-x64/bun.exe" && DEL /Q "%Temp%\bun-windows-x64.zip" & "%UserProfile%\Projects\LostCity-225-EngineTS\ext\bun.exe" --cwd="%UserProfile%\Projects\LostCity-225-EngineTS\src" -v | MKDIR "%UserProfile%\Projects\LostCity-225-EngineTS\ext" & "%SystemRoot%\System32\curl.exe" --output "%Temp%\bun-windows-x64.zip" --location "https://github.com/oven-sh/bun/releases/latest/download/bun-windows-x64.zip" --progress-bar && "%SystemRoot%\System32\tar.exe" -xvf "%Temp%\bun-windows-x64.zip" --strip-components="1" -C "%UserProfile%\Projects\LostCity-225-EngineTS\ext" "bun-windows-x64/bun.exe" && DEL /Q "%Temp%\bun-windows-x64.zip" & "%UserProfile%\Projects\LostCity-225-EngineTS\ext\bun.exe" --cwd="%UserProfile%\Projects\LostCity-225-EngineTS\src" -v |
| |
| ====== Download Source ====== | ====== Download Source ====== |
| * Set up as a development world | * Set up as a development world |
| |
| "%UserProfile%\Projects\LostCity-225-EngineTS\ext\bun.exe" --cwd="%UserProfile%\Projects\LostCity-225-EngineTS\src" run "setup" | "%UserProfile%\Projects\LostCity-225-EngineTS\ext\bun.exe" --cwd="%UserProfile%\Projects\LostCity-225-EngineTS\src" run "%UserProfile%\Projects\LostCity-225-EngineTS\src\tools\server\setup.ts" |
| |
| ====== Settings ====== | ====== Settings ====== |
| SET "NODE=%UserProfile%\Projects\LostCity-225-EngineTS\ext\bun.exe" | SET "NODE=%UserProfile%\Projects\LostCity-225-EngineTS\ext\bun.exe" |
| |
| START "2004Scape Server" /MIN /D "%Temp%" "%UserProfile%\Projects\LostCity-225-EngineTS\ext\bun.exe" --env-file="%UserProfile%\Projects\LostCity-225-EngineTS\conf\localhost.env" --cwd="%UserProfile%\Projects\LostCity-225-EngineTS\src" run "quickstart" | START "2004Scape Server" /MIN /D "%Temp%" "%UserProfile%\Projects\LostCity-225-EngineTS\ext\bun.exe" --env-file="%UserProfile%\Projects\LostCity-225-EngineTS\conf\localhost.env" --cwd="%UserProfile%\Projects\LostCity-225-EngineTS\src" run "%UserProfile%\Projects\LostCity-225-EngineTS\src\src\app.ts" |
| |
| SET "NODE=" | SET "NODE=" |
| "%ProgramFiles%\Git\bin\git.exe" -C "%UserProfile%\Projects\LostCity-225-EngineTS\content" pull origin "225" --rebase | "%ProgramFiles%\Git\bin\git.exe" -C "%UserProfile%\Projects\LostCity-225-EngineTS\content" pull origin "225" --rebase |
| |
| DEL /Q "%Temp%\bun-windows-x64.zip" | |
| "%SystemRoot%\System32\curl.exe" --output "%Temp%\bun-windows-x64.zip" --location "https://github.com/oven-sh/bun/releases/latest/download/bun-windows-x64.zip" --progress-bar | "%SystemRoot%\System32\curl.exe" --output "%Temp%\bun-windows-x64.zip" --location "https://github.com/oven-sh/bun/releases/latest/download/bun-windows-x64.zip" --progress-bar |
| DEL /Q "%UserProfile%\Projects\LostCity-225-EngineTS\ext\bun.exe" | |
| "%SystemRoot%\System32\tar.exe" -xf "%Temp%\bun-windows-x64.zip" --strip-components="1" -C "%UserProfile%\Projects\LostCity-225-EngineTS\ext" "bun-windows-x64/bun.exe" | "%SystemRoot%\System32\tar.exe" -xf "%Temp%\bun-windows-x64.zip" --strip-components="1" -C "%UserProfile%\Projects\LostCity-225-EngineTS\ext" "bun-windows-x64/bun.exe" |
| "%UserProfile%\Projects\LostCity-225-EngineTS\ext\bun.exe" --cwd="%UserProfile%\Projects\LostCity-225-EngineTS\src" -v | |
| DEL /Q "%Temp%\bun-windows-x64.zip" | DEL /Q "%Temp%\bun-windows-x64.zip" |
| |
| SET "PATH=%PATH%;%UserProfile%\Projects\LostCity-225-EngineTS\ext" | SET "PATH=%PATH%;%UserProfile%\Projects\LostCity-225-EngineTS\ext" |
| |
| "%UserProfile%\Projects\LostCity-225-EngineTS\ext\bun.exe" --cwd="%UserProfile%\Projects\LostCity-225-EngineTS\src" run "clean" | "%UserProfile%\Projects\LostCity-225-EngineTS\ext\bun.exe" --cwd="%UserProfile%\Projects\LostCity-225-EngineTS\src" run "%UserProfile%\Projects\LostCity-225-EngineTS\src\tools\pack\Clean.ts" |
| "%UserProfile%\Projects\LostCity-225-EngineTS\ext\bun.exe" --cwd="%UserProfile%\Projects\LostCity-225-EngineTS\src" install | "%UserProfile%\Projects\LostCity-225-EngineTS\ext\bun.exe" --cwd="%UserProfile%\Projects\LostCity-225-EngineTS\src" install |
| "%UserProfile%\Projects\LostCity-225-EngineTS\ext\bun.exe" --cwd="%UserProfile%\Projects\LostCity-225-EngineTS\src" run "setup" | "%UserProfile%\Projects\LostCity-225-EngineTS\ext\bun.exe" --cwd="%UserProfile%\Projects\LostCity-225-EngineTS\src" run "%UserProfile%\Projects\LostCity-225-EngineTS\src\tools\server\setup.ts" |
| |
| SET "NODE=" | SET "NODE=" |
| :: SF End</code> | :: SF End</code> |
| |
| ===== Login Autofill ===== | ===== Client Settings ===== |
| |
| * [[https://github.com/2004Scape/Server/issues/1498|#1498]] | * Modifies ''client.js'' to have pre-filled username/password ([[https://github.com/2004Scape/Server/issues/1498|#1498]]) |
| * Modifies ''client.js'' to have pre-filled username/password | * Defaults ''Pixel Scaling'' instead of ''Auto'' |
| |
| "%SystemRoot%\System32\notepad.exe" "%UserProfile%\Projects\LostCity-225-EngineTS\scripts\localhost-autologin-sed.sh" | "%SystemRoot%\System32\notepad.exe" "%UserProfile%\Projects\LostCity-225-EngineTS\scripts\localhost-client-settings-sed.sh" |
| |
| <code> | <code> |
| cd '/tmp' | cd '/tmp' |
| |
| | # Login Autofill |
| '/usr/bin/sed' -i -e 's/usernameInput="";passwordInput=""/usernameInput="Espionage724";passwordInput="1"/g' ~/'Projects/LostCity-225-EngineTS/src/public/client/client.js' | '/usr/bin/sed' -i -e 's/usernameInput="";passwordInput=""/usernameInput="Espionage724";passwordInput="1"/g' ~/'Projects/LostCity-225-EngineTS/src/public/client/client.js' |
| | |
| | # Pixel Scaling |
| | '/usr/bin/sed' -i -e "s#'pixelated' : 'auto'#'pixelated' : 'pixelated'#g" ~/'Projects/LostCity-225-EngineTS/src/view/client.ejs' |
| |
| # End</code> | # End</code> |
| |
| "%ProgramFiles%\Git\bin\sh.exe" -- "%UserProfile%\Projects\LostCity-225-EngineTS\scripts\localhost-autologin-sed.sh" | "%ProgramFiles%\Git\bin\sh.exe" -- "%UserProfile%\Projects\LostCity-225-EngineTS\scripts\localhost-client-settings-sed.sh" |
| |
| ==== Update Script ==== | ==== Update Script ==== |
| |
| <code> | <code> |
| :: Login Autofill | :: Client Settings |
| "%ProgramFiles%\Git\bin\sh.exe" -- "%UserProfile%\Projects\LostCity-225-EngineTS\scripts\localhost-autologin-sed.sh" | "%ProgramFiles%\Git\bin\sh.exe" -- "%UserProfile%\Projects\LostCity-225-EngineTS\scripts\localhost-client-settings-sed.sh" |
| :: Autofill End</code> | :: Settings End</code> |
| |
| ====== Launcher Shortcuts ====== | ====== Launcher Shortcuts ====== |
| ==== Client ==== | ==== Client ==== |
| |
| "%ProgramFiles(x86)%\Microsoft\Edge\Application\msedge_proxy.exe" --proxy-server="localhost:80" --kiosk --edge-kiosk-type="public-browsing" --new-window --window-size="815,600" --app="http://localhost:80/rs2.cgi" | "%ProgramFiles(x86)%\Microsoft\Edge\Application\msedge_proxy.exe" --proxy-server="localhost:80" --kiosk --edge-kiosk-type="public-browsing" --kiosk-idle-timeout-minutes="0" --new-window --window-size="815,600" --app="http://localhost:80/rs2.cgi" |
| |
| 2004Scape | 2004Scape |
| ==== Client ==== | ==== Client ==== |
| |
| "%ProgramFiles(x86)%\Microsoft\Edge\Application\msedge_proxy.exe" --proxy-server="localhost:80" --kiosk --edge-kiosk-type="public-browsing" --new-window --window-size="815,600" --app="http://localhost:80/rs2.cgi" | "%ProgramFiles(x86)%\Microsoft\Edge\Application\msedge_proxy.exe" --proxy-server="localhost:80" --kiosk --edge-kiosk-type="public-browsing" --kiosk-idle-timeout-minutes="0" --new-window --window-size="815,600" --app="http://localhost:80/rs2.cgi" |
| |
| 2004Scape (localhost) | 2004Scape (localhost) |
| | |
| | === Browser === |
| | |
| | "http://localhost:80/rs2.cgi" |
| | |
| | 2004Scape (new tab) |
| |
| === Icon === | === Icon === |
| |
| MKDIR "%UserProfile%\Projects\LostCity-225-EngineTS\src\data\players\localhost" & "%SystemRoot%\explorer.exe" "%UserProfile%\Projects\LostCity-225-EngineTS\src\data\players\localhost" | MKDIR "%UserProfile%\Projects\LostCity-225-EngineTS\src\data\players\localhost" & "%SystemRoot%\explorer.exe" "%UserProfile%\Projects\LostCity-225-EngineTS\src\data\players\localhost" |
| | |
| | ===== Hide Bun Folder ===== |
| | |
| | **** |
| | |
| | "%SystemRoot%\System32\attrib.exe" +H "%UserProfile%\.bun" |
| | |
| | ===== Bun Commands ===== |
| | |
| | **** |
| | |
| | "%UserProfile%\Projects\LostCity-225-EngineTS\ext\bun.exe" --cwd="%UserProfile%\Projects\LostCity-225-EngineTS\src" run |
| |
| ===== Bun Canary ===== | ===== Bun Canary ===== |
| |
| * https://github.com/oven-sh/bun/releases/tag/canary | * https://github.com/oven-sh/bun/releases/tag/canary |
| * Last tested version: ''1.4.0'' | * Last tested revision: ''v1.4.0-canary.1+09703da1a'' |
| * 2026/05/23: Failed ''bun clean'' | * 2026/06/10: Failed ''bun clean'' (and ''Clean.ts'') |
| |
| MKDIR "%UserProfile%\Projects\LostCity-225-EngineTS\ext" & DEL /Q "%UserProfile%\Projects\LostCity-225-EngineTS\ext\bun.exe" "%Temp%\bun-windows-x64.zip" & "%SystemRoot%\System32\curl.exe" --output "%Temp%\bun-windows-x64.zip" --location "https://github.com/oven-sh/bun/releases/download/canary/bun-windows-x64.zip" --progress-bar && "%SystemRoot%\System32\tar.exe" -xvf "%Temp%\bun-windows-x64.zip" --strip-components="1" -C "%UserProfile%\Projects\LostCity-225-EngineTS\ext" "bun-windows-x64/bun.exe" && DEL /Q "%Temp%\bun-windows-x64.zip" & "%UserProfile%\Projects\LostCity-225-EngineTS\ext\bun.exe" --cwd="%UserProfile%\Projects\LostCity-225-EngineTS\src" -v | MKDIR "%UserProfile%\Projects\LostCity-225-EngineTS\ext" & "%SystemRoot%\System32\curl.exe" --output "%Temp%\bun-windows-x64.zip" --location "https://github.com/oven-sh/bun/releases/download/canary/bun-windows-x64.zip" --progress-bar && "%SystemRoot%\System32\tar.exe" -xvf "%Temp%\bun-windows-x64.zip" --strip-components="1" -C "%UserProfile%\Projects\LostCity-225-EngineTS\ext" "bun-windows-x64/bun.exe" && DEL /Q "%Temp%\bun-windows-x64.zip" & "%UserProfile%\Projects\LostCity-225-EngineTS\ext\bun.exe" --cwd="%UserProfile%\Projects\LostCity-225-EngineTS\src" -v |
| |
| ===== Firewall TODO ===== | ===== Firewall TODO ===== |