User Tools

Site Tools


games:windows:2004scape_localhost

Information

  • 2004Scape Server 1)
  • These notes provide a local single-player server for 2004Scape 2)

Media

Prerequisites

Resources

Web

Dependencies

Git

  • No components required
  • Git from the command line and also from 3rd-party software

Java

  • Entire feature install of Microsoft Build of OpenJDK

Node.js

  • Node.js runtime, npm package manager, Add to PATH (corepack manager and Online documentation not required)
  • Tools for Native Modules not required (leave “Automatically install the tools” unchecked)

Download Source

"%ProgramFiles%\Git\bin\git.exe" clone --branch "main" --depth "1" --recurse-submodules "https://github.com/2004Scape/Server.git" "%UserProfile%\Projects\2004Scape-Server\src"

Dependencies

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

Set-up

  • Set up as a single world
  • ID: 1
  • XP rate: 1
  • Members content: Yes
  • Auto-register accounts: Yes
CD "%UserProfile%\Projects\2004Scape-Server\src" && npm run "setup"

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 run "quickstart"

:: End

Server Update

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

"%ProgramFiles%\Git\bin\git.exe" -C "%UserProfile%\Projects\2004Scape-Server\src" reset --hard
"%ProgramFiles%\Git\bin\git.exe" -C "%UserProfile%\Projects\2004Scape-Server\src" pull origin "main" --rebase

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

:: End

Save Data Back-up

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

tar -czf "%UserProfile%\Downloads\%RANDOM%-2004Scape-Server-localhost-Saves.tar.gz" -C "%UserProfile%\Projects\2004Scape-Server\src\data" "players"

:: End

Firewall

Block

netsh advfirewall firewall add rule name="RuneScape localhost Server" dir="in" action="block" protocol="TCP" localport="43594,43595"
netsh advfirewall firewall add rule name="2004Scape localhost Server (web)" dir="in" action="block" protocol="TCP" localport="80"

LAN

  • 80 TCP
  • 43594 TCP
  • 43595 TCP
  • Allows loading the game applet and connecting to the server from other devices on LAN 3)
netsh advfirewall firewall add rule name="2004Scape localhost Server" dir="in" action="allow" protocol="tcp" localport="80,43594,43595" remoteip="localsubnet"

Extras

MKDIR "%UserProfile%\Projects\2004Scape-Server\ext"
explorer "%UserProfile%\Projects\2004Scape-Server\ext"

Map

"%UserProfile%\Projects\2004Scape-Server\ext\worldmap2.jpg"

Icon

Launcher Shortcuts

Desktop

  • Right-click Desktop → New → Shortcut

Server Start

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

Client

"http://localhost:80"
2004Scape

Icon

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

Start Menu

  • Right-click → New → Shortcut
MKDIR "%AppData%\Microsoft\Windows\Start Menu\Programs\2004Scape"
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 (localhost)

Icon

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

Update

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

Save Backup

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

World Map

"https://2004.lostcity.rs/worldmap"
World Map

Install Notes

"https://wiki.realmofespionage.xyz/games;windows;2004scape_localhost"
Install Notes

Quick Commands

Execute

Server

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

Client

Microsoft Edge

"%ProgramFiles(x86)%\Microsoft\Edge\Application\msedge.exe" --proxy-server="localhost:80" --kiosk --edge-kiosk-type="public-browsing" --new-window "http://localhost:80"

Set-up

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

Update

"%ProgramFiles%\Git\bin\git.exe" -C "%UserProfile%\Projects\2004Scape-Server\src" reset --hard && "%ProgramFiles%\Git\bin\git.exe" -C "%UserProfile%\Projects\2004Scape-Server\src" pull origin "main" --rebase && CD "%UserProfile%\Projects\2004Scape-Server\src" && npm run "clean" && npm "ci"
CD "%UserProfile%\Projects\2004Scape-Server\src" && npm run "setup"

Save Data Back-up

  • :!: The tar command replaces Downloads\2004Scape-Server-localhost-Saves.tar.gz each time without back-up or date codes
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"

npm

  • Lists available npm commands
CD "%UserProfile%\Projects\2004Scape-Server\src" && npm run

File Manager

Root

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

Save Data

MKDIR "%UserProfile%\Projects\2004Scape-Server\src\data\players"
explorer "%UserProfile%\Projects\2004Scape-Server\src\data\players"
2)
RSPS/RuneScape Private Server based on cache 225 from May 18th, 2004
3)
2024/11/09: Works on Xbox One Edge with physical keyboard for log-in; controller works in-game flawlessly
4)
:?: apparently image was from RS wiki
C:/www/wiki/data/pages/games/windows/2004scape_localhost.txt · Last modified: by Sean Rhone