Git-2.49.0-64-bit.exe
microsoft-jdk-21.0.6-windows-x64.msi
Microsoft Build of OpenJDK
node-v22.14.0-x64.msi
"%ProgramFiles%\Git\bin\git.exe" clone --branch "main" --depth "1" --recurse-submodules "https://github.com/2004Scape/Server.git" "%UserProfile%\Projects\2004Scape-Server\src"
CD "%UserProfile%\Projects\2004Scape-Server\src" && "%ProgramFiles%\nodejs\node.exe" "%ProgramFiles%\nodejs\node_modules\npm\bin\npm-cli.js" install --verbose
"%ProgramFiles%\nodejs\node.exe" "%ProgramFiles%\nodejs\node_modules\npm\bin\npm-cli.js" --prefix "%UserProfile%\Projects\2004Scape-Server\src" run "setup"
MKDIR "%UserProfile%\Projects\2004Scape-Server\scripts"
"notepad.exe" "%UserProfile%\Projects\2004Scape-Server\scripts\localhost-server-start.bat"
@echo off "%ProgramFiles%\nodejs\node.exe" "%ProgramFiles%\nodejs\node_modules\npm\bin\npm-cli.js" --prefix "%UserProfile%\Projects\2004Scape-Server\src" run "quickstart" :: End
"%UserProfile%\Projects\2004Scape-Server\scripts\localhost-server-start.bat"
"notepad.exe" "%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 "%ProgramFiles%\nodejs\node.exe" "%ProgramFiles%\nodejs\node_modules\npm\bin\npm-cli.js" --prefix "%UserProfile%\Projects\2004Scape-Server\src" run "clean" CD "%UserProfile%\Projects\2004Scape-Server\src" "%ProgramFiles%\nodejs\node.exe" "%ProgramFiles%\nodejs\node_modules\npm\bin\npm-cli.js" install "%ProgramFiles%\nodejs\node.exe" "%ProgramFiles%\nodejs\node_modules\npm\bin\npm-cli.js" --prefix "%UserProfile%\Projects\2004Scape-Server\src" run "setup" :: End
"%UserProfile%\Projects\2004Scape-Server\scripts\localhost-server-update.bat"
"notepad.exe" "%UserProfile%\Projects\2004Scape-Server\scripts\localhost-save-backup.bat"
@echo off "tar.exe" -czf "%UserProfile%\Downloads\%RANDOM%-2004Scape-Server-localhost-Saves.tar.gz" -C "%UserProfile%\Projects\2004Scape-Server\src\data\players" "main" :: End
"%UserProfile%\Projects\2004Scape-Server\scripts\localhost-save-backup.bat"
"netsh.exe" advfirewall firewall add rule name="2004Scape localhost Server (node.exe)" dir="in" action="block" profile="any" program="%ProgramFiles%\nodejs\node.exe" protocol="tcp" localport="80"
"netsh.exe" advfirewall firewall add rule name="2004Scape localhost Server (node.exe)" dir="in" action="allow" profile="any" program="%ProgramFiles%\nodejs\node.exe" protocol="tcp" localport="80" remoteip="localsubnet"
"netsh.exe" advfirewall firewall delete rule name="2004Scape localhost Server (node.exe)"
MKDIR "%UserProfile%\Projects\2004Scape-Server\ext"
"%UserProfile%\Projects\2004Scape-Server\ext\June_2004_Map.jpg"
"%UserProfile%\Projects\2004Scape-Server\ext\favicon.ico"
Downloads
folder after above downloads"%UserProfile%\Downloads\favicon.ico"
DEL /Q "%UserProfile%\Downloads\favicon.ico"
"%UserProfile%\Projects\2004Scape-Server\scripts\localhost-server-start.bat"
2004Scape Server
"http://localhost:80/rs2.cgi"
2004Scape
"%UserProfile%\Projects\2004Scape-Server\ext\favicon.ico"
MKDIR "%AppData%\Microsoft\Windows\Start Menu\Programs\2004Scape"
"explorer.exe" "%AppData%\Microsoft\Windows\Start Menu\Programs\2004Scape"
"%UserProfile%\Projects\2004Scape-Server\scripts\localhost-server-start.bat"
Server Start
"http://localhost:80/rs2.cgi"
2004Scape (localhost)
"%UserProfile%\Projects\2004Scape-Server\ext\favicon.ico"
"%UserProfile%\Projects\2004Scape-Server\scripts\localhost-server-update.bat"
Updater
"%UserProfile%\Projects\2004Scape-Server\scripts\localhost-save-backup.bat"
Save Back-up
MKDIR "%UserProfile%\Projects\2004Scape-Server\src\data\players"
"%UserProfile%\Projects\2004Scape-Server\src\data\players"
Save Folder
"https://github.com/2004Scape/Server/commits/main/"
Updates Check
"%UserProfile%\Projects\2004Scape-Server\ext\June_2004_Map.jpg"
World Map
"https://wiki.realmofespionage.xyz/games;windows;2004scape_localhost"
Install Notes
"%ProgramFiles%\nodejs\node.exe" "%ProgramFiles%\nodejs\node_modules\npm\bin\npm-cli.js" --prefix "%UserProfile%\Projects\2004Scape-Server\src" run "quickstart" --verbose
"%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 && "%ProgramFiles%\nodejs\node.exe" "%ProgramFiles%\nodejs\node_modules\npm\bin\npm-cli.js" --prefix "%UserProfile%\Projects\2004Scape-Server\src" run "clean" --verbose && "%ProgramFiles%\nodejs\node.exe" "%ProgramFiles%\nodejs\node_modules\npm\bin\npm-cli.js" --prefix "%UserProfile%\Projects\2004Scape-Server\src" "ci" --verbose && "%ProgramFiles%\nodejs\node.exe" "%ProgramFiles%\nodejs\node_modules\npm\bin\npm-cli.js" --prefix "%UserProfile%\Projects\2004Scape-Server\src" run "setup" --verbose
tar
command replaces Downloads\2004Scape-Server-localhost-Saves.tar.gz
each time without back-up or date codes"explorer.exe" "%UserProfile%\Projects\2004Scape-Server\src\data\players"
"tar.exe" -cvzf "%UserProfile%\Downloads\2004Scape-Server-localhost-Saves.tar.gz" -C "%UserProfile%\Projects\2004Scape-Server\src\data\players" "main"
npm
commands"%ProgramFiles%\nodejs\node.exe" "%ProgramFiles%\nodejs\node_modules\npm\bin\npm-cli.js" --prefix "%UserProfile%\Projects\2004Scape-Server\src" run
CD "%UserProfile%\Projects\2004Scape-Server\src" && npm run
.sav
may require logging in once to Tutorial Island, logging out, then re-restoring the .sav
MKDIR "%UserProfile%\Projects\2004Scape-Server\src\data\players\main"
"explorer.exe" "%UserProfile%\Projects\2004Scape-Server\src\data\players"
"explorer.exe" "%UserProfile%\Projects\2004Scape-Server\src\public\client"
SCC1_Florestan.sf2
TimGM6mb.sf2
"explorer.exe" "%UserProfile%\Projects\2004Scape-Server\src\public\client"
DEL /Q "%UserProfile%\Projects\2004Scape-Server\src\public\client\SCC1_Florestan.sf2" && MKLINK "%UserProfile%\Projects\2004Scape-Server\src\public\client\SCC1_Florestan.sf2" "%UserProfile%\Projects\2004Scape-Server\src\public\client\TimGM6mb.sf2"
"%ProgramFiles(x86)%\Microsoft\Edge\Application\msedge_proxy.exe" --app="http://localhost:80/rs2.cgi"
"%ProgramFiles(x86)%\Microsoft\Edge\Application\msedge.exe" --proxy-server="localhost:80" --kiosk --edge-kiosk-type="public-browsing" --new-window "http://localhost/rs2.cgi"