Git-2.47.1-64-bit.exe
microsoft-jdk-21.0.5-windows-x64.msi
5)Microsoft Build of OpenJDK
node-v23.4.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"
NODE_PORT=44594
seems like an easy fix to simultaneously-host 2009Scapenotepad "%UserProfile%\Projects\2004Scape-Server\src\.env"
WEB_PORT=80 NODE_PORT=44594 NODE_PRODUCTION=false NODE_ALLOW_CHEATS=false NODE_DEBUG=false NODE_STAFF=Test
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 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 pause :: End
"%UserProfile%\Projects\2004Scape-Server\scripts\localhost-server-start.bat"
2004Scape Server
http://localhost:80
2004Scape
"%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"
Server Start
http://localhost:80
2004Scape (Client)
"%UserProfile%\Projects\2004Scape-Server\src\public\favicon.ico"
"%UserProfile%\Projects\2004Scape-Server\scripts\localhost-server-update.bat"
Server Updater
"%UserProfile%\Projects\2004Scape-Server\scripts\localhost-save-backup.bat"
Save Data Back-up
https://github.com/2004Scape/Server/commits/main/
Server - Updates Check
https://wiki.realmofespionage.xyz/games:windows:2004scape_localhost
Server - Install Notes
"%ProgramFiles(x86)%\Microsoft\Edge\Application\msedge.exe"
2004Scape (localhost)
"%UserProfile%\Projects\2004Scape-Server\src\public\favicon.ico"
%SystemRoot%\Temp
--single-process --proxy-server="localhost:80" --window-size="896,688" --kiosk --new-window "http://localhost:80" --edge-kiosk-type="public-browsing" --no-first-run
CD "%UserProfile%\Projects\2004Scape-Server\src" && npm start --verbose
"%UserProfile%\Projects\2004Scape-Server\scripts\localhost-server-start.bat"
msedge --single-process --proxy-server="localhost:80" --window-size="896,688" --kiosk --new-window "http://localhost:80" --edge-kiosk-type="public-browsing" --no-first-run
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"
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