| Both sides previous revisionPrevious revisionNext revision | Previous revision |
| games:windows:2004scape_localhost [2026/06/10 01:58] – [Bun Canary] Sean Rhone | games:windows:2004scape_localhost [2026/08/12 14:45] (current) – Sean Rhone |
|---|
| * ''225'' | * ''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=RFmbHS4w9mU|Presentation Video]] |
| | * [[https://www.youtube.com/watch?v=o-HlDZREEAw|Full-install Video]] |
| | * [[https://www.youtube.com/watch?v=CpOPie2s8nI|Offline Test Video]] |
| |
| ===== Prerequisites ===== | ===== Prerequisites ===== |
| * https://bun.com/ | * https://bun.com/ |
| * https://github.com/oven-sh/bun | * https://github.com/oven-sh/bun |
| * 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]] |
| |
| 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 |
| | |
| | ==== Baseline ==== |
| | |
| | * Latest [[https://github.com/oven-sh/bun/releases/latest/download/bun-windows-x64-baseline.zip|bun-windows-x64-baseline.zip]] |
| | * For older CPUs ([[https://bun.com/docs/installation#baseline-builds|more info]]) |
| | |
| | MKDIR "%UserProfile%\Projects\LostCity-225-EngineTS\ext" & "%SystemRoot%\System32\curl.exe" --output "%Temp%\bun-windows-x64-baseline.zip" --location "https://github.com/oven-sh/bun/releases/latest/download/bun-windows-x64-baseline.zip" --progress-bar && "%SystemRoot%\System32\tar.exe" -xvf "%Temp%\bun-windows-x64-baseline.zip" --strip-components="1" -C "%UserProfile%\Projects\LostCity-225-EngineTS\ext" "bun-windows-x64-baseline/bun.exe" && DEL /Q "%Temp%\bun-windows-x64-baseline.zip" & "%UserProfile%\Projects\LostCity-225-EngineTS\ext\bun.exe" --cwd="%UserProfile%\Projects\LostCity-225-EngineTS\src" -v |
| |
| ====== Download Source ====== | ====== Download Source ====== |
| |
| ====== Initial Build ====== | ====== Initial Build ====== |
| |
| **** | |
| |
| "%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 |
| * 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" /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" reset --hard "origin/225" | "%ProgramFiles%\Git\bin\git.exe" -C "%UserProfile%\Projects\LostCity-225-EngineTS\content" reset --hard "origin/225" |
| "%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 | |
| 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" | |
| "%UserProfile%\Projects\LostCity-225-EngineTS\ext\bun.exe" --cwd="%UserProfile%\Projects\LostCity-225-EngineTS\src" -v | |
| DEL /Q "%Temp%\bun-windows-x64.zip" | |
| |
| SET "NODE=%UserProfile%\Projects\LostCity-225-EngineTS\ext\bun.exe" | SET "NODE=%UserProfile%\Projects\LostCity-225-EngineTS\ext\bun.exe" |
| 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=" |
| * https://runescape.wiki/w/World_map#/media/File:June_2004_Map.jpg ([[https://drive.google.com/file/d/1V_nMvkDwE__dtokzG0xaytUwrqOtGKMO/view?usp=sharing|mirror]]) | * https://runescape.wiki/w/World_map#/media/File:June_2004_Map.jpg ([[https://drive.google.com/file/d/1V_nMvkDwE__dtokzG0xaytUwrqOtGKMO/view?usp=sharing|mirror]]) |
| |
| MKDIR "%UserProfile%\Projects\LostCity-225-EngineTS\ext" & "%SystemRoot%\System32\curl.exe" --output "%Temp%\June_2004_Map.jpg" --location "https://runescape.wiki/images/June_2004_Map.jpg?35d17" --progress-bar && "%SystemRoot%\System32\certutil.exe" -hashfile "%Temp%\June_2004_Map.jpg" "SHA384" | "%SystemRoot%\System32\find.exe" "abfdfe4597975addbb9d79d2cce2e56f0054f2742f351bd9dc700f55e91157e6c2142749f113927b027ed42efb8ad833" && MOVE /Y "%Temp%\June_2004_Map.jpg" "%UserProfile%\Projects\LostCity-225-EngineTS\ext\June_2004_Map.jpg" && DIR /B "%UserProfile%\Projects\LostCity-225-EngineTS\ext\June_2004_Map.jpg" | MKDIR "%UserProfile%\Projects\LostCity-225-EngineTS\ext" & "%SystemRoot%\System32\curl.exe" --output "%Temp%\June_2004_Map.jpg" --location "https://runescape.wiki/images/June_2004_Map.jpg?35d17" --progress-bar && "%SystemRoot%\System32\certutil.exe" -hashfile "%Temp%\June_2004_Map.jpg" "SHA384" | "%SystemRoot%\System32\find.exe" "abfdfe4597975addbb9d79d2cce2e56f0054f2742f351bd9dc700f55e91157e6c2142749f113927b027ed42efb8ad833" && MOVE /Y "%Temp%\June_2004_Map.jpg" "%UserProfile%\Projects\LostCity-225-EngineTS\ext\June_2004_Map.jpg" & DIR /B "%UserProfile%\Projects\LostCity-225-EngineTS\ext\June_2004_Map.jpg" |
| |
| ===== SC55_zzdenis SoundFont ===== | ===== SC55_zzdenis SoundFont ===== |
| |
| === Icon === | === Icon === |
| |
| **** | |
| |
| "%UserProfile%\Projects\LostCity-225-EngineTS\ext\favicon.ico" | "%UserProfile%\Projects\LostCity-225-EngineTS\ext\favicon.ico" |
| |
| ===== Start Menu ===== | ===== Start Menu ===== |
| |
| **** | |
| |
| MKDIR "%AppData%\Microsoft\Windows\Start Menu\Programs\2004Scape" & "%SystemRoot%\explorer.exe" "%AppData%\Microsoft\Windows\Start Menu\Programs\2004Scape" | MKDIR "%AppData%\Microsoft\Windows\Start Menu\Programs\2004Scape" & "%SystemRoot%\explorer.exe" "%AppData%\Microsoft\Windows\Start Menu\Programs\2004Scape" |
| |
| === Icon === | === Icon === |
| |
| **** | |
| |
| "%UserProfile%\Projects\LostCity-225-EngineTS\ext\favicon.ico" | "%UserProfile%\Projects\LostCity-225-EngineTS\ext\favicon.ico" |
| |
| ===== Hide Bun Folder ===== | ===== Hide Bun Folder ===== |
| |
| **** | |
| |
| "%SystemRoot%\System32\attrib.exe" +H "%UserProfile%\.bun" | "%SystemRoot%\System32\attrib.exe" +H "%UserProfile%\.bun" |
| |
| ===== Bun Commands ===== | ===== Bun Commands ===== |
| |
| **** | |
| |
| "%UserProfile%\Projects\LostCity-225-EngineTS\ext\bun.exe" --cwd="%UserProfile%\Projects\LostCity-225-EngineTS\src" run | "%UserProfile%\Projects\LostCity-225-EngineTS\ext\bun.exe" --cwd="%UserProfile%\Projects\LostCity-225-EngineTS\src" run |
| * 2026/06/10: Failed ''bun clean'' (and ''Clean.ts'') | * 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 |
| | |
| | ===== Touchscreen TODO ===== |
| | |
| | * Needs to be batch file or command-prompt launched |
| | |
| | "%ProgramFiles(x86)%\Microsoft\Edge\Application\msedge_proxy.exe" --kiosk --edge-kiosk-type="public-browsing" --kiosk-idle-timeout-minutes="0" --new-window --window-size="815,600" --user-agent="Android" --touch-events="enabled" --app="http://192.168.1.150:80/rs2.cgi" |
| | |
| | <code>--user-agent="Android" --touch-events="enabled"</code> |
| |
| ===== Firewall TODO ===== | ===== Firewall TODO ===== |
| |
| ==== Block ==== | ==== Block ==== |
| |
| **** | |
| |
| "%SystemRoot%\System32\netsh.exe" advfirewall firewall add rule name="2004Scape localhost Server (bun.exe)" dir="in" action="block" profile="any" program="%UserProfile%\Projects\LostCity-225-EngineTS\ext\bun.exe" | "%SystemRoot%\System32\netsh.exe" advfirewall firewall add rule name="2004Scape localhost Server (bun.exe)" dir="in" action="block" profile="any" program="%UserProfile%\Projects\LostCity-225-EngineTS\ext\bun.exe" |
| |
| === Delete Rule === | === Delete Rule === |
| |
| **** | |
| |
| "%SystemRoot%\System32\netsh.exe" advfirewall firewall delete rule name="2004Scape localhost Server (bun.exe)" | "%SystemRoot%\System32\netsh.exe" advfirewall firewall delete rule name="2004Scape localhost Server (bun.exe)" |