Git-2.46.0-64-bit.exe
jdk-22_windows-x64_bin.msi
node-v22.6.0-x64.msi
80
TCP43594
TCP43595
TCPlocalhost
netsh advfirewall firewall add rule name="2004Scape Server" dir="in" action="allow" protocol="tcp" localport="80,43594,43595" remoteip="localsubnet"
git clone --branch "main" --depth "1" --recurse-submodules "https://github.com/2004Scape/Server.git" "%UserProfile%\Projects\2004scape-server\src"
explorer "%UserProfile%\Projects\2004scape-server\src"
MKDIR "%UserProfile%\Projects\2004scape-server\scripts\"
notepad "%UserProfile%\Projects\2004scape-server\scripts\localhost-server-start.bat"
@echo off CD "%UserProfile%\Projects\2004scape-server\src\" npm start :: End
notepad "%UserProfile%\Projects\2004scape-server\scripts\localhost-server-update.bat"
@echo off start "" "https://github.com/2004Scape/Server/commits/main/" git -C "%UserProfile%\Projects\2004scape-server\src" reset --hard git -C "%UserProfile%\Projects\2004scape-server\src" pull origin "main" --rebase echo If there are no updates, Ctrl + C to terminate, or Press any key to continue. pause CD "%UserProfile%\Projects\2004scape-server\src\" npm run "clean" && pause :: End
notepad "%UserProfile%\Projects\2004scape-server\scripts\localhost-server-update.bat"
@echo off git -C "%UserProfile%\Projects\2004scape-server\src" reset --hard git -C "%UserProfile%\Projects\2004scape-server\src" pull origin "main" --rebase CD "%UserProfile%\Projects\2004scape-server\src\" npm run "clean" && pause :: End
notepad "%UserProfile%\Projects\2004scape-server\scripts\localhost-save-backup.bat"
@echo off tar -cvzf "%UserProfile%\Downloads\%RANDOM%-2004Scape-Server-localhost-Saves.tar.gz" -C "%UserProfile%\Projects\2004scape-server\src\data" "players" echo 2004Scape Save Data Backed-up Successfully to Downloads explorer "%UserProfile%\Downloads\" pause :: End
"%UserProfile%\Projects\2004scape-server\scripts\localhost-server-start.bat"
2004Scape localhost Start
http://localhost:80
2004Scape localhost
"%UserProfile%\Projects\2004scape-server\src\public\favicon.ico"
MKDIR "%AppData%\Microsoft\Windows\Start Menu\Programs\2004Scape\"
explorer "%AppData%\Microsoft\Windows\Start Menu\Programs\2004Scape\"
"%UserProfile%\Projects\2004scape-server\scripts\localhost-server-start.bat"
localhost Server Start
http://localhost:80
localhost Client
"%UserProfile%\Projects\2004scape-server\src\public\favicon.ico"
"%UserProfile%\Projects\2004scape-server\scripts\localhost-server-update.bat"
localhost Server Updater
"%UserProfile%\Projects\2004scape-server\scripts\localhost-save-backup.bat"
localhost Save Data Back-up
https://wiki.realmofespionage.xyz/games;windows;2004scape_localhost
localhost Install Notes
CD "%UserProfile%\Projects\2004scape-server\src\" && npm start
"%UserProfile%\Projects\2004scape-server\scripts\localhost-server-start.bat"
npm run clean
requires starting the server once afterwards with an internet connection to download packages to start the server for playing offlinegit -C "%UserProfile%\Projects\2004scape-server\src" reset --hard && git -C "%UserProfile%\Projects\2004scape-server\src" pull origin "main" --rebase && CD "%UserProfile%\Projects\2004scape-server\src\" && npm run "clean"
"%UserProfile%\Projects\2004scape-server\scripts\localhost-server-update.bat"
tar
command replaces Downloads\2004Scape-Server-localhost-Saves.tar.gz
each time without back-up or date codesexplorer "%UserProfile%\Projects\2004scape-server\src\data\players\"
tar -cvzf "%UserProfile%\Downloads\2004Scape-Server-localhost-Saves.tar.gz" -C "%UserProfile%\Projects\2004scape-server\src\data" "players"
"%UserProfile%\Projects\2004scape-server\scripts\localhost-save-backup.bat"
Downloads\2004Scape-Server-localhost-Saves.tar.gz
5)%RANDOM%-
characters to work as-is for the following tar
commandDEL
command deletes existing files in the data\players
folderDEL /Q "%UserProfile%\Projects\2004scape-server\src\data\players\*"
tar -xvzf "%UserProfile%\Downloads\2004Scape-Server-localhost-Saves.tar.gz" -C "%UserProfile%\Projects\2004scape-server\src\data" "players"
npm
commandsCD "%UserProfile%\Projects\2004scape-server\src\" && npm run
explorer "%UserProfile%\Projects\2004scape-server\src\"
explorer "%UserProfile%\Projects\2004scape-server\src\data\players\"
225
from May 18th, 2004tar
commands for Save Data requires Windows 10 1803+; presumably fine on W11; can apparently run on XP too\Downloads\2004Scape-Server-localhost-Saves.tar.gz\2004Scape-Server-localhost-Saves.tar\players\espionage724.sav