Table of Contents

Information

Media

Other Notes

Prerequisites

Resources

Web

Dependencies

Git

Java

Node.js

Firewall

LAN

netsh advfirewall firewall add rule name="2004Scape Server" dir="in" action="allow" protocol="tcp" localport="80,43594,43595" remoteip="localsubnet"

Download Source

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"

Settings

notepad "%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

Scripts

MKDIR "%UserProfile%\Projects\2004Scape-Server\scripts"

Server Start

notepad "%UserProfile%\Projects\2004Scape-Server\scripts\localhost-server-start.bat"
@echo off

CD "%UserProfile%\Projects\2004Scape-Server\src"
npm start

:: End

Server Update

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

Save Data Back-up

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

Launcher Shortcuts

Desktop

Server Start

"%UserProfile%\Projects\2004Scape-Server\scripts\localhost-server-start.bat"
2004Scape Server

Client

http://localhost:80
2004Scape

Icon

"%UserProfile%\Projects\2004Scape-Server\src\public\favicon.ico"

Start Menu

MKDIR "%AppData%\Microsoft\Windows\Start Menu\Programs\2004Scape"

Shortcuts

explorer "%AppData%\Microsoft\Windows\Start Menu\Programs\2004Scape"

Server Start

"%UserProfile%\Projects\2004Scape-Server\scripts\localhost-server-start.bat"
Server Start

Client

http://localhost:80
2004Scape (Client)
Icon

"%UserProfile%\Projects\2004Scape-Server\src\public\favicon.ico"

Update

"%UserProfile%\Projects\2004Scape-Server\scripts\localhost-server-update.bat"
Server Updater

Save Backup

"%UserProfile%\Projects\2004Scape-Server\scripts\localhost-save-backup.bat"
Save Data Back-up

Updates Check

https://github.com/2004Scape/Server/commits/main/
Server - Updates Check

Install Notes

https://wiki.realmofespionage.xyz/games:windows:2004scape_localhost
Server - Install Notes

Steam

"%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

Quick Commands

Execute

Server

CD "%UserProfile%\Projects\2004Scape-Server\src" && npm start --verbose
"%UserProfile%\Projects\2004Scape-Server\scripts\localhost-server-start.bat"

Client

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

Update

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"
"%UserProfile%\Projects\2004Scape-Server\scripts\localhost-server-update.bat"

Save Data Back-up

explorer "%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

CD "%UserProfile%\Projects\2004Scape-Server\src" && npm run

File Manager

Root

explorer "%UserProfile%\Projects\2004Scape-Server\src"

Save Data

explorer "%UserProfile%\Projects\2004Scape-Server\src\data\players"
3)
RSPS/RuneScape Private Server based on cache 225 from May 18th, 2004
4)
later use of tar commands for Save Data requires Windows 10 1803+; presumably fine on W11; can apparently run on XP too
5)
17 also works and is easier to share with 2009Scape
6)
2024/11/09: Works on Xbox One Edge with physical keyboard for log-in; controller works in-game flawlessly