games:windows:2004scape_localhost
Table of Contents
Information
- Lost City
225Server + Client
Media
Prerequisites
Dependencies
Java
25
- Last tested:
microsoft-jdk-25.0.1-windows-x64.msi
- Entire feature install of
Microsoft Build of OpenJDK
Bun
- Latest bun-windows-x64.zip 1)
MKDIR "%UserProfile%\Projects\LostCity-225-EngineTS\ext" & DEL /Q "%UserProfile%\Projects\LostCity-225-EngineTS\ext\bun.exe" & "curl.exe" --output "%UserProfile%\Downloads\bun-windows-x64.zip" --location "https://github.com/oven-sh/bun/releases/latest/download/bun-windows-x64.zip" && "tar.exe" -xvf "%UserProfile%\Downloads\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" -v
Download Source
Engine-TS
"%ProgramFiles%\Git\bin\git.exe" clone --branch "225" --depth "1" --recurse-submodules "https://github.com/LostCityRS/Engine-TS.git" "%UserProfile%\Projects\LostCity-225-EngineTS\src"
Content
"%ProgramFiles%\Git\bin\git.exe" clone --branch "225" --depth "1" --recurse-submodules "https://github.com/LostCityRS/Content.git" "%UserProfile%\Projects\LostCity-225-EngineTS\content"
Initial Build
"%UserProfile%\Projects\LostCity-225-EngineTS\ext\bun.exe" --cwd="%UserProfile%\Projects\LostCity-225-EngineTS\src" install
Set-up
- Set up as a development world
"%UserProfile%\Projects\LostCity-225-EngineTS\ext\bun.exe" --cwd="%UserProfile%\Projects\LostCity-225-EngineTS\src" run "setup"
Settings
- Last commit: Jun 25, 2025
de5fa4d
MKDIR "%UserProfile%\Projects\LostCity-225-EngineTS\conf" & "notepad.exe" "%UserProfile%\Projects\LostCity-225-EngineTS\conf\localhost.env"
NODE_XPRATE=1 NODE_PROFILE=localhost NODE_STAFF=Test NODE_DEBUGPROC_CHAR=: NODE_CLIENT_ROUTEFINDER=false # End
Scripts
MKDIR "%UserProfile%\Projects\LostCity-225-EngineTS\scripts"
"explorer.exe" "%UserProfile%\Projects\LostCity-225-EngineTS\scripts"
Server Start
"notepad.exe" "%UserProfile%\Projects\LostCity-225-EngineTS\scripts\localhost-server-start.bat"
@echo off TITLE 2004Scape Server CD "%Temp%" SET "NODE=%UserProfile%\Projects\LostCity-225-EngineTS\ext\bun.exe" SET "_JAVA_OPTIONS=--sun-misc-unsafe-memory-access=allow" "%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" || EXIT "1" SET "NODE=" SET "_JAVA_OPTIONS=" :: End
"%UserProfile%\Projects\LostCity-225-EngineTS\scripts\localhost-server-start.bat"
Server Update
"notepad.exe" "%UserProfile%\Projects\LostCity-225-EngineTS\scripts\localhost-server-update.bat"
@echo off TITLE 2004Scape Updater CD "%Temp%" "%ProgramFiles%\Git\bin\git.exe" -C "%UserProfile%\Projects\LostCity-225-EngineTS\src" reset --hard "origin/225" "%ProgramFiles%\Git\bin\git.exe" -C "%UserProfile%\Projects\LostCity-225-EngineTS\src" pull origin "225" --rebase "%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 DEL /Q "%Temp%\bun-windows-x64.zip" "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" "tar.exe" -xf "%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" SET "NODE=%UserProfile%\Projects\LostCity-225-EngineTS\ext\bun.exe" 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" install "%UserProfile%\Projects\LostCity-225-EngineTS\ext\bun.exe" --cwd="%UserProfile%\Projects\LostCity-225-EngineTS\src" run "setup" SET "NODE=" MSG %USERNAME% /TIME:"2" "2004Scape localhost server update complete" :: End
"%UserProfile%\Projects\LostCity-225-EngineTS\scripts\localhost-server-update.bat"
Save Data Back-up
"notepad.exe" "%UserProfile%\Projects\LostCity-225-EngineTS\scripts\localhost-save-backup.bat"
@echo off CD "%Temp%" "tar.exe" -czf "%UserProfile%\Downloads\%RANDOM%-2004Scape-localhost-Saves.tar.gz" -C "%UserProfile%\Projects\LostCity-225-EngineTS\src\data\players" "localhost" MSG %USERNAME% /TIME:"2" "2004Scape Save Data Backed-up Successfully to Downloads" :: End
"%UserProfile%\Projects\LostCity-225-EngineTS\scripts\localhost-save-backup.bat"
Extras
Icon
- Copies to
src\public\favicon.icofor browser windows to show favicon
MKDIR "%UserProfile%\Projects\LostCity-225-EngineTS\ext" & DEL /Q "%Temp%\2004Scape-favicon.ico" "%UserProfile%\Projects\LostCity-225-EngineTS\ext\favicon.ico" "%UserProfile%\Projects\LostCity-225-EngineTS\src\public\favicon.ico" & "curl.exe" --output "%Temp%\2004Scape-favicon.ico" --location "https://raw.githubusercontent.com/2004Scape/Server/7b0f1ec303dc1f76c7b29a2fff83b5797dafa01b/public/favicon.ico" && "certutil.exe" -hashfile "%Temp%\2004Scape-favicon.ico" SHA384 | FIND "c70ef71357951b3c1895cf205746eb93959cf8031d1f83b6f43d8a9efbb272d79ed6b4a64fb1c39f6898ed56601bfc63" && MOVE /Y "%Temp%\2004Scape-favicon.ico" "%UserProfile%\Projects\LostCity-225-EngineTS\ext\favicon.ico" && COPY /Y "%UserProfile%\Projects\LostCity-225-EngineTS\ext\favicon.ico" "%UserProfile%\Projects\LostCity-225-EngineTS\src\public\favicon.ico"
Map
MKDIR "%UserProfile%\Projects\LostCity-225-EngineTS\ext" & DEL /Q "%Temp%\June_2004_Map.jpg" "%UserProfile%\Projects\LostCity-225-EngineTS\ext\June_2004_Map.jpg" & "curl.exe" --output "%Temp%\June_2004_Map.jpg" --location "https://runescape.wiki/images/June_2004_Map.jpg?35d17" && "certutil.exe" -hashfile "%Temp%\June_2004_Map.jpg" SHA384 | FIND "abfdfe4597975addbb9d79d2cce2e56f0054f2742f351bd9dc700f55e91157e6c2142749f113927b027ed42efb8ad833" && MOVE /Y "%Temp%\June_2004_Map.jpg" "%UserProfile%\Projects\LostCity-225-EngineTS\ext\June_2004_Map.jpg"
Chaos Altar
MKDIR "%UserProfile%\Projects\LostCity-225-EngineTS\ext" & DEL /Q "%Temp%\Chaos_Altar_map.png" "%UserProfile%\Projects\LostCity-225-EngineTS\ext\Chaos_Altar_map.png" & "curl.exe" --output "%Temp%\Chaos_Altar_map.png" --location "https://oldschool.runescape.wiki/images/Chaos_Altar_map.png?71a3b" && "certutil.exe" -hashfile "%Temp%\Chaos_Altar_map.png" SHA384 | FIND "64dc7c294ec5978bcfb3865d6a65dccb1e35e8964b65c1bc6ea98c228a1663924a297093952c1bd57c63c0cb4a4b7b45" && MOVE /Y "%Temp%\Chaos_Altar_map.png" "%UserProfile%\Projects\LostCity-225-EngineTS\ext\Chaos_Altar_map.png"
SC55_zzdenis SoundFont
298,185,428 SC55_zzdenis_v0.5.sf2
MKDIR "%UserProfile%\Projects\LostCity-225-EngineTS\ext" & "certutil.exe" -hashfile "%UserProfile%\Downloads\SC55_zzdenis_v0.5.sf2" SHA384 | FIND "f386f638777072fc220e39afbd7efcd227ca2bfcf13403bf47fbb2e2b8f4d151239710cc36c8530a75c3b4c3f55066b7" && MOVE /Y "%UserProfile%\Downloads\SC55_zzdenis_v0.5.sf2" "%UserProfile%\Projects\LostCity-225-EngineTS\ext"
DEL /Q "%UserProfile%\Projects\LostCity-225-EngineTS\src\public\client\SCC1_Florestan.sf2" && MKLINK "%UserProfile%\Projects\LostCity-225-EngineTS\src\public\client\SCC1_Florestan.sf2" "%UserProfile%\Projects\LostCity-225-EngineTS\ext\SC55_zzdenis_v0.5.sf2"
DIR "%UserProfile%\Projects\LostCity-225-EngineTS\src\public\client\SCC1_Florestan.sf2"
Update Script
- Above
MSGline
"notepad.exe" "%UserProfile%\Projects\LostCity-225-EngineTS\scripts\localhost-server-update.bat"
:: SC55_zzdenis_v0.5.sf2 DEL /Q "%UserProfile%\Projects\LostCity-225-EngineTS\src\public\client\SCC1_Florestan.sf2" MKLINK "%UserProfile%\Projects\LostCity-225-EngineTS\src\public\client\SCC1_Florestan.sf2" "%UserProfile%\Projects\LostCity-225-EngineTS\ext\SC55_zzdenis_v0.5.sf2" :: SF End
Login Autofill
- Modifies
client.jsto have pre-filled username/password
"notepad.exe" "%UserProfile%\Projects\LostCity-225-EngineTS\scripts\localhost-autologin-sed.sh"
#!/bin/sh cd '/tmp' '/usr/bin/sed' -i -e 's/usernameInput="";passwordInput=""/usernameInput="Espionage724";passwordInput="1"/g' ~/'Projects/LostCity-225-EngineTS/src/public/client/client.js' # End
"%ProgramFiles%\Git\bin\sh.exe" -- "%UserProfile%\Projects\LostCity-225-EngineTS\scripts\localhost-autologin-sed.sh"
Update Script
- Above
MSGline
"notepad.exe" "%UserProfile%\Projects\LostCity-225-EngineTS\scripts\localhost-server-update.bat"
:: Login Autofill "%ProgramFiles%\Git\bin\sh.exe" -- "%UserProfile%\Projects\LostCity-225-EngineTS\scripts\localhost-autologin-sed.sh" :: Autofill End
Launcher Shortcuts
Desktop
Server Start
"%UserProfile%\Projects\LostCity-225-EngineTS\scripts\localhost-server-start.bat"
2004Scape Server
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"
2004Scape
Icon
"%UserProfile%\Projects\LostCity-225-EngineTS\ext\favicon.ico"
Start Menu
MKDIR "%AppData%\Microsoft\Windows\Start Menu\Programs\2004Scape" & "explorer.exe" "%AppData%\Microsoft\Windows\Start Menu\Programs\2004Scape"
Server Start
"%UserProfile%\Projects\LostCity-225-EngineTS\scripts\localhost-server-start.bat"
Server Start
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"
2004Scape (localhost)
Icon
"%UserProfile%\Projects\LostCity-225-EngineTS\ext\favicon.ico"
Update
"%UserProfile%\Projects\LostCity-225-EngineTS\scripts\localhost-server-update.bat"
Updater
Save Backup
"%UserProfile%\Projects\LostCity-225-EngineTS\scripts\localhost-save-backup.bat"
Save Back-up
Save Folder
MKDIR "%UserProfile%\Projects\LostCity-225-EngineTS\src\data\players\localhost"
"%UserProfile%\Projects\LostCity-225-EngineTS\src\data\players\localhost"
Save Folder
World Map
"%UserProfile%\Projects\LostCity-225-EngineTS\ext\June_2004_Map.jpg"
World Map
Chaos Altar Map
"%UserProfile%\Projects\LostCity-225-EngineTS\ext\Chaos_Altar_map.png"
Chaos Altar Map
Install Notes
"https://wiki.realmofespionage.xyz/games;windows;2004scape_localhost"
Install Notes
Quick Commands
Save Restore
data\players\localhost\espionage724.sav
MKDIR "%UserProfile%\Projects\LostCity-225-EngineTS\src\data\players\localhost" & "explorer.exe" "%UserProfile%\Projects\LostCity-225-EngineTS\src\data\players\localhost"
Firewall TODO
Bun
"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
"netsh.exe" advfirewall firewall delete rule name="2004Scape localhost Server (bun.exe)"
Allow LAN
- Needs above Bun block rule deleted first
"netsh.exe" advfirewall firewall add rule name="2004Scape localhost Server (bun.exe)" dir="in" action="allow" profile="any" program="%UserProfile%\Projects\LostCity-225-EngineTS\ext\bun.exe" protocol="tcp" localport="80" remoteip="localsubnet"
C:/www/wiki/data/pages/games/windows/2004scape_localhost.txt · Last modified: by Sean Rhone
