Prerequisites
Dependencies
Java
Bun
MKDIR "%UserProfile%\Projects\LostCity-244-EngineTS\ext" & "explorer.exe" "%UserProfile%\Projects\LostCity-244-EngineTS\ext"
DIR "%UserProfile%\Projects\LostCity-244-EngineTS\ext\bun.exe"
Node.js
MKDIR "%UserProfile%\Projects\LostCity-244-EngineTS\ext" & "explorer.exe" "%UserProfile%\Projects\LostCity-244-EngineTS\ext"
DIR "%UserProfile%\Projects\LostCity-244-EngineTS\ext\node.exe"
Download Source
Engine-TS
"%ProgramFiles%\Git\bin\git.exe" clone --branch "244" --depth "1" --recurse-submodules "https://github.com/LostCityRS/Engine-TS.git" "%UserProfile%\Projects\LostCity-244-EngineTS\src"
Content
"%ProgramFiles%\Git\bin\git.exe" clone --branch "244" --depth "1" --recurse-submodules "https://github.com/LostCityRS/Content.git" "%UserProfile%\Projects\LostCity-244-EngineTS\content"
Initial Build
"%UserProfile%\Projects\LostCity-244-EngineTS\ext\bun.exe" --cwd="%UserProfile%\Projects\LostCity-244-EngineTS\src" install
Set-up
"%UserProfile%\Projects\LostCity-244-EngineTS\ext\bun.exe" --cwd="%UserProfile%\Projects\LostCity-244-EngineTS\src" run "setup"
Settings
MKDIR "%UserProfile%\Projects\LostCity-244-EngineTS\conf" & "notepad.exe" "%UserProfile%\Projects\LostCity-244-EngineTS\conf\localhost.env"
NODE_XPRATE=1
NODE_PROFILE=localhost
NODE_STAFF=Test
NODE_DEBUGPROC_CHAR=:
NODE_CLIENT_ROUTEFINDER=false
# End
Scripts
Server Start
MKDIR "%UserProfile%\Projects\LostCity-244-EngineTS\scripts" & "notepad.exe" "%UserProfile%\Projects\LostCity-244-EngineTS\scripts\localhost-server-start.bat"
@echo off
TITLE 2004Scape Server
SET "NODE=%UserProfile%\Projects\LostCity-244-EngineTS\ext\node.exe"
"%UserProfile%\Projects\LostCity-244-EngineTS\ext\bun.exe" --env-file="%UserProfile%\Projects\LostCity-244-EngineTS\conf\localhost.env" --cwd="%UserProfile%\Projects\LostCity-244-EngineTS\src" run "quickstart"
:: End
"%UserProfile%\Projects\LostCity-244-EngineTS\scripts\localhost-server-start.bat"
Server Update
MKDIR "%UserProfile%\Projects\LostCity-244-EngineTS\scripts" & "notepad.exe" "%UserProfile%\Projects\LostCity-244-EngineTS\scripts\localhost-server-update.bat"
@echo off
TITLE 2004Scape Updater
"%ProgramFiles%\Git\bin\git.exe" -C "%UserProfile%\Projects\LostCity-244-EngineTS\src" reset --hard
"%ProgramFiles%\Git\bin\git.exe" -C "%UserProfile%\Projects\LostCity-244-EngineTS\src" pull origin "244" --rebase
"%ProgramFiles%\Git\bin\git.exe" -C "%UserProfile%\Projects\LostCity-244-EngineTS\content" reset --hard
"%ProgramFiles%\Git\bin\git.exe" -C "%UserProfile%\Projects\LostCity-244-EngineTS\content" pull origin "244" --rebase
SET "NODE=%UserProfile%\Projects\LostCity-244-EngineTS\ext\node.exe"
SET "PATH=%PATH%;%UserProfile%\Projects\LostCity-244-EngineTS\ext"
"%UserProfile%\Projects\LostCity-244-EngineTS\ext\bun.exe" --cwd="%UserProfile%\Projects\LostCity-244-EngineTS\src" run "clean"
"%UserProfile%\Projects\LostCity-244-EngineTS\ext\bun.exe" --cwd="%UserProfile%\Projects\LostCity-244-EngineTS\src" install
"%UserProfile%\Projects\LostCity-244-EngineTS\ext\bun.exe" --cwd="%UserProfile%\Projects\LostCity-244-EngineTS\src" run "setup"
:: End
"%UserProfile%\Projects\LostCity-244-EngineTS\scripts\localhost-server-update.bat"
Save Data Back-up
MKDIR "%UserProfile%\Projects\LostCity-244-EngineTS\scripts" & "notepad.exe" "%UserProfile%\Projects\LostCity-244-EngineTS\scripts\localhost-save-backup.bat"
@echo off
"tar.exe" -czf "%UserProfile%\Downloads\%RANDOM%-2004Scape-localhost-Saves.tar.gz" -C "%UserProfile%\Projects\LostCity-244-EngineTS\src\data\players" "localhost"
:: End
"%UserProfile%\Projects\LostCity-244-EngineTS\scripts\localhost-save-backup.bat"
Map
"%UserProfile%\Projects\LostCity-244-EngineTS\ext\June_2004_Map.jpg"
Icon
"%UserProfile%\Projects\LostCity-244-EngineTS\ext\favicon.ico"
Save Back to Downloads
"%UserProfile%\Downloads\favicon.ico"
DEL /Q "%UserProfile%\Downloads\favicon.ico"
SC55_zzdenis SoundFont
MOVE /Y "%UserProfile%\Downloads\SC55_zzdenis_v0.5.sf2" "%UserProfile%\Projects\LostCity-244-EngineTS\ext"
DEL /Q "%UserProfile%\Projects\LostCity-244-EngineTS\src\public\client\SCC1_Florestan.sf2" && MKLINK "%UserProfile%\Projects\LostCity-244-EngineTS\src\public\client\SCC1_Florestan.sf2" "%UserProfile%\Projects\LostCity-244-EngineTS\ext\SC55_zzdenis_v0.5.sf2"
DIR "%UserProfile%\Projects\LostCity-244-EngineTS\src\public\client\SCC1_Florestan.sf2"
Update Script
"notepad.exe" "%UserProfile%\Projects\LostCity-244-EngineTS\scripts\localhost-server-update.bat"
:: SC55_zzdenis_v0.5.sf2
DEL /Q "%UserProfile%\Projects\LostCity-244-EngineTS\src\public\client\SCC1_Florestan.sf2"
MKLINK "%UserProfile%\Projects\LostCity-244-EngineTS\src\public\client\SCC1_Florestan.sf2" "%UserProfile%\Projects\LostCity-244-EngineTS\ext\SC55_zzdenis_v0.5.sf2"
:: SF End
Login Autofill
"notepad.exe" "%UserProfile%\Projects\LostCity-244-EngineTS\scripts\localhost-autologin-sed.sh"
#!/bin/sh
sed -i -e 's/username="";password=""/username="Espionage724";password="1"/g' ~/'Projects/LostCity-244-EngineTS/src/public/client/client.js'
# End
"%ProgramFiles%\Git\bin\sh.exe" -- "%UserProfile%\Projects\LostCity-244-EngineTS\scripts\localhost-autologin-sed.sh"
Update Script
"notepad.exe" "%UserProfile%\Projects\LostCity-244-EngineTS\scripts\localhost-server-update.bat"
:: Login Autofill
"%ProgramFiles%\Git\bin\sh.exe" -- "%UserProfile%\Projects\LostCity-244-EngineTS\scripts\localhost-autologin-sed.sh"
:: Autofill End
Launcher Shortcuts
Desktop
Server Start
"%UserProfile%\Projects\LostCity-244-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="820,575" --app="http://localhost:80/rs2.cgi"
2004Scape
Icon
"%UserProfile%\Projects\LostCity-244-EngineTS\ext\favicon.ico"
MKDIR "%AppData%\Microsoft\Windows\Start Menu\Programs\2004Scape" & "explorer.exe" "%AppData%\Microsoft\Windows\Start Menu\Programs\2004Scape"
Server Start
"%UserProfile%\Projects\LostCity-244-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="820,575" --app="http://localhost:80/rs2.cgi"
2004Scape (localhost)
Icon
"%UserProfile%\Projects\LostCity-244-EngineTS\ext\favicon.ico"
Update
"%UserProfile%\Projects\LostCity-244-EngineTS\scripts\localhost-server-update.bat"
Updater
Save Backup
"%UserProfile%\Projects\LostCity-244-EngineTS\scripts\localhost-save-backup.bat"
Save Back-up
Save Folder
MKDIR "%UserProfile%\Projects\LostCity-244-EngineTS\src\data\players\localhost"
"%UserProfile%\Projects\LostCity-244-EngineTS\src\data\players\localhost"
Save Folder
World Map
"%UserProfile%\Projects\LostCity-244-EngineTS\ext\June_2004_Map.jpg"
World Map
Install Notes
"https://wiki.realmofespionage.xyz/games;windows;2004scape_localhost"
Install Notes
Quick Commands
Save Restore
MKDIR "%UserProfile%\Projects\LostCity-244-EngineTS\src\data\players\localhost" & "explorer.exe" "%UserProfile%\Projects\LostCity-244-EngineTS\src\data\players\localhost"
Firewall TODO
"netsh.exe" advfirewall firewall add rule name="2004Scape localhost Server (bun.exe)" dir="in" action="allow" profile="any" program="%UserProfile%\Projects\LostCity-244-EngineTS\ext\bun.exe" protocol="tcp" localport="80"