| Both sides previous revisionPrevious revisionNext revision | Previous revision |
| games:windows:2004scape_localhost [2026/06/02 09:19] – Sean Rhone | games:windows:2004scape_localhost [2026/06/22 00:26] (current) – Sean Rhone |
|---|
| * 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 "src/app.ts" | 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 ====== |
| |
| * 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 | |
| | |
| ===== Client TODO ===== | |
| | |
| * ''LostCity-225-EngineTS\src\view\client.ejs'' | |
| * L190 (auto to pixelated) | |
| | |
| setFilter((localStorage.getItem('filtering') == 'true') ? 'pixelated' : 'auto'); | |
| |
| setFilter((localStorage.getItem('filtering') == 'true') ? 'pixelated' : 'pixelated'); | 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 ===== |