| Both sides previous revisionPrevious revisionNext revision | Previous revision |
| games:windows:2004scape_localhost [2025/04/07 15:00] – [Block] Sean Rhone | games:windows:2004scape_localhost [2025/10/08 18:59] (current) – [Firewall TODO] Sean Rhone |
|---|
| ====== Information ====== | ====== Information ====== |
| |
| * 2004Scape Server ((https://github.com/2004Scape/Server)) | * Lost City ''244'' Server + Client |
| | * [[https://lostcity.rs/t/singleplayer-main-branch-scripts-and-desktop-start-launchers-on-windows-linux-freebsd/54|Lost City Forums]] |
| * These notes provide a local single-player server for 2004Scape ((RSPS/RuneScape Private Server based on cache ''225'' from May 18th, 2004)) | |
| * Last tested commit: [[https://github.com/2004Scape/Server/commit/910f1910c1f489503e3885cebcff62c75f45b1a1|910f191]] | |
| |
| ===== Media ===== | ===== Media ===== |
| |
| * [[https://www.youtube.com/watch?v=RFmbHS4w9mU|Desktop and Start Menu Shortcuts Presentation Video]] | |
| * [[https://media.realmofespionage.xyz/index/category/2|Progress Pics]] | * [[https://media.realmofespionage.xyz/index/category/2|Progress Pics]] |
| | * [[https://www.youtube.com/watch?v=o-HlDZREEAw|Full install video]] |
| |
| ===== Prerequisites ===== | ===== Prerequisites ===== |
| |
| * [[windows:10|Windows 10 (21H2)]] | |
| * [[windows;11_ltsc|Windows 11 (24H2)]] | * [[windows;11_ltsc|Windows 11 (24H2)]] |
| | * [[programs;windows;git|Git]] |
| | * [[windows;notes;edge_tweaks|Microsoft Edge]] |
| |
| ===== Resources ===== | ====== Dependencies ====== |
| |
| * [[https://lostcity.rs/t/singleplayer-main-branch-scripts-and-desktop-start-launchers-on-windows-linux-freebsd/54|Lost City Forums]] | * https://github.com/LostCityRS/Engine-TS/blob/244/README.md#dependencies |
| * [[https://2004.lostcity.rs/worldmap|World Map]] (interactive) | |
| |
| ====== Dependencies ====== | ===== Java ===== |
| |
| * https://github.com/2004Scape/Server?tab=readme-ov-file#dependencies | * https://learn.microsoft.com/en-us/java/openjdk/download#openjdk-21 |
| | * Last tested: ''microsoft-jdk-21.0.8-windows-x64.msi'' |
| |
| ===== Git ===== | * Entire feature install of ''Microsoft Build of OpenJDK'' |
| |
| * https://gitforwindows.org/ | ===== Bun ===== |
| * Last tested: ''Git-2.49.0-64-bit.exe'' | |
| |
| * No components required | * [[https://github.com/oven-sh/bun/releases/latest/download/bun-windows-x64.zip|bun-windows-x64.zip]] (([[https://github.com/oven-sh/bun/releases/latest/download/bun-windows-x64-baseline.zip|baseline]] for older CPU, [[https://bun.com/docs/installation#cpu-requirements-and-baseline-builds|more info]])) |
| * Git from the command line and also from 3rd-party software | * [[https://github.com/oven-sh/bun/releases|oven-sh/bun]] |
| |
| ===== Java ===== | MKDIR "%UserProfile%\Projects\LostCity-244-EngineTS\ext" & "explorer.exe" "%UserProfile%\Projects\LostCity-244-EngineTS\ext" |
| |
| * https://learn.microsoft.com/en-us/java/openjdk/download#openjdk-21 | DIR "%UserProfile%\Projects\LostCity-244-EngineTS\ext\bun.exe" |
| * Last tested: ''microsoft-jdk-21.0.6-windows-x64.msi'' | |
| | |
| * Entire feature install of ''Microsoft Build of OpenJDK'' | |
| |
| ===== Node.js ===== | ===== Node.js ===== |
| |
| * https://nodejs.org/en/download | * [[https://nodejs.org/download/release/latest/win-x64/node.exe|node.exe]] |
| * Last tested: ''node-v22.14.0-x64.msi'' | |
| |
| * [x] Node.js runtime | MKDIR "%UserProfile%\Projects\LostCity-244-EngineTS\ext" & "explorer.exe" "%UserProfile%\Projects\LostCity-244-EngineTS\ext" |
| * [x] npm package manager | |
| * Add to PATH -> [x] Node.js and npm | DIR "%UserProfile%\Projects\LostCity-244-EngineTS\ext\node.exe" |
| * corepack manager, Online documentation shortcuts, PATH npm modules not required | |
| * Tools for Native Modules not required (leave auto-install necessary tools unchecked) | |
| |
| ====== Download Source ====== | ====== Download Source ====== |
| |
| * https://github.com/2004Scape/Server/commits/main/ | ===== Engine-TS ===== |
| |
| "%ProgramFiles%\Git\bin\git.exe" clone --branch "main" --depth "1" --recurse-submodules "https://github.com/2004Scape/Server.git" "%UserProfile%\Projects\2004Scape-Server\src" | * https://github.com/LostCityRS/Engine-TS/commits/244/ |
| | |
| | "%ProgramFiles%\Git\bin\git.exe" clone --branch "244" --depth "1" --recurse-submodules "https://github.com/LostCityRS/Engine-TS.git" "%UserProfile%\Projects\LostCity-244-EngineTS\src" |
| | |
| | ===== Content ===== |
| | |
| | * https://github.com/LostCityRS/Content/commits/244/ |
| | |
| | "%ProgramFiles%\Git\bin\git.exe" clone --branch "244" --depth "1" --recurse-submodules "https://github.com/LostCityRS/Content.git" "%UserProfile%\Projects\LostCity-244-EngineTS\content" |
| |
| ====== Initial Build ====== | ====== Initial Build ====== |
| **** | **** |
| |
| CD "%UserProfile%\Projects\2004Scape-Server\src" && "%ProgramFiles%\nodejs\node.exe" "%ProgramFiles%\nodejs\node_modules\npm\bin\npm-cli.js" install --verbose | "%UserProfile%\Projects\LostCity-244-EngineTS\ext\bun.exe" --cwd="%UserProfile%\Projects\LostCity-244-EngineTS\src" install |
| |
| ====== Set-up ====== | ====== Set-up ====== |
| * Set up as a development world | * Set up as a development world |
| |
| "%ProgramFiles%\nodejs\node.exe" "%ProgramFiles%\nodejs\node_modules\npm\bin\npm-cli.js" --prefix "%UserProfile%\Projects\2004Scape-Server\src" run "setup" | "%UserProfile%\Projects\LostCity-244-EngineTS\ext\bun.exe" --cwd="%UserProfile%\Projects\LostCity-244-EngineTS\src" run "setup" |
| |
| ====== Scripts ====== | ====== Settings ====== |
| |
| **** | * Last commit: [[https://github.com/LostCityRS/Engine-TS/commit/de5fa4db73add4e7277f0a9045d6eeb3a0800f59|Jun 25, 2025]] ''de5fa4d'' |
| | * [[https://github.com/LostCityRS/Engine-TS/commits/244/.env.example|New commits check]] |
| | * [[https://github.com/LostCityRS/Engine-TS/blob/244/.env.example|Upstream Settings]] ([[https://raw.githubusercontent.com/LostCityRS/Engine-TS/refs/heads/244/.env.example|raw]]) |
| |
| MKDIR "%UserProfile%\Projects\2004Scape-Server\scripts" | MKDIR "%UserProfile%\Projects\LostCity-244-EngineTS\conf" & "notepad.exe" "%UserProfile%\Projects\LostCity-244-EngineTS\conf\localhost.env" |
| | |
| | <code> |
| | NODE_XPRATE=1 |
| | NODE_PROFILE=localhost |
| | NODE_STAFF=Test |
| | NODE_DEBUGPROC_CHAR=: |
| | NODE_CLIENT_ROUTEFINDER=false |
| | |
| | # End</code> |
| | |
| | ====== Scripts ====== |
| |
| ===== Server Start ===== | ===== Server Start ===== |
| |
| "notepad.exe" "%UserProfile%\Projects\2004Scape-Server\scripts\localhost-server-start.bat" | MKDIR "%UserProfile%\Projects\LostCity-244-EngineTS\scripts" & "notepad.exe" "%UserProfile%\Projects\LostCity-244-EngineTS\scripts\localhost-server-start.bat" |
| |
| <code> | <code> |
| @echo off | @echo off |
| |
| "%ProgramFiles%\nodejs\node.exe" "%ProgramFiles%\nodejs\node_modules\npm\bin\npm-cli.js" --prefix "%UserProfile%\Projects\2004Scape-Server\src" run "quickstart" | TITLE 2004Scape Server |
| | |
| | SET "NODE=%UserProfile%\Projects\LostCity-244-EngineTS\ext\node.exe" |
| | |
| | "%UserProfile%\Projects\LostCity-244-EngineTS\ext\bun.exe" --env-file="%UserProfile%\Projects\LostCity-244-EngineTS\conf\localhost.env" --cwd="%UserProfile%\Projects\LostCity-244-EngineTS\src" run "quickstart" |
| |
| :: End</code> | :: End</code> |
| |
| "%UserProfile%\Projects\2004Scape-Server\scripts\localhost-server-start.bat" | "%UserProfile%\Projects\LostCity-244-EngineTS\scripts\localhost-server-start.bat" |
| |
| ===== Server Update ===== | ===== Server Update ===== |
| |
| "notepad.exe" "%UserProfile%\Projects\2004Scape-Server\scripts\localhost-server-update.bat" | MKDIR "%UserProfile%\Projects\LostCity-244-EngineTS\scripts" & "notepad.exe" "%UserProfile%\Projects\LostCity-244-EngineTS\scripts\localhost-server-update.bat" |
| |
| <code> | <code> |
| @echo off | @echo off |
| |
| "%ProgramFiles%\Git\bin\git.exe" -C "%UserProfile%\Projects\2004Scape-Server\src" reset --hard | TITLE 2004Scape Updater |
| "%ProgramFiles%\Git\bin\git.exe" -C "%UserProfile%\Projects\2004Scape-Server\src" pull origin "main" --rebase | |
| | "%ProgramFiles%\Git\bin\git.exe" -C "%UserProfile%\Projects\LostCity-244-EngineTS\src" reset --hard |
| | "%ProgramFiles%\Git\bin\git.exe" -C "%UserProfile%\Projects\LostCity-244-EngineTS\src" pull origin "244" --rebase |
| | |
| | "%ProgramFiles%\Git\bin\git.exe" -C "%UserProfile%\Projects\LostCity-244-EngineTS\content" reset --hard |
| | "%ProgramFiles%\Git\bin\git.exe" -C "%UserProfile%\Projects\LostCity-244-EngineTS\content" pull origin "244" --rebase |
| | |
| | SET "NODE=%UserProfile%\Projects\LostCity-244-EngineTS\ext\node.exe" |
| | SET "PATH=%PATH%;%UserProfile%\Projects\LostCity-244-EngineTS\ext" |
| |
| "%ProgramFiles%\nodejs\node.exe" "%ProgramFiles%\nodejs\node_modules\npm\bin\npm-cli.js" --prefix "%UserProfile%\Projects\2004Scape-Server\src" run "clean" | "%UserProfile%\Projects\LostCity-244-EngineTS\ext\bun.exe" --cwd="%UserProfile%\Projects\LostCity-244-EngineTS\src" run "clean" |
| CD "%UserProfile%\Projects\2004Scape-Server\src" | "%UserProfile%\Projects\LostCity-244-EngineTS\ext\bun.exe" --cwd="%UserProfile%\Projects\LostCity-244-EngineTS\src" install |
| "%ProgramFiles%\nodejs\node.exe" "%ProgramFiles%\nodejs\node_modules\npm\bin\npm-cli.js" install --verbose | "%UserProfile%\Projects\LostCity-244-EngineTS\ext\bun.exe" --cwd="%UserProfile%\Projects\LostCity-244-EngineTS\src" run "setup" |
| "%ProgramFiles%\nodejs\node.exe" "%ProgramFiles%\nodejs\node_modules\npm\bin\npm-cli.js" --prefix "%UserProfile%\Projects\2004Scape-Server\src" run "setup" | |
| |
| :: End</code> | :: End</code> |
| |
| "%UserProfile%\Projects\2004Scape-Server\scripts\localhost-server-update.bat" | "%UserProfile%\Projects\LostCity-244-EngineTS\scripts\localhost-server-update.bat" |
| |
| ===== Save Data Back-up ===== | ===== Save Data Back-up ===== |
| |
| "notepad.exe" "%UserProfile%\Projects\2004Scape-Server\scripts\localhost-save-backup.bat" | MKDIR "%UserProfile%\Projects\LostCity-244-EngineTS\scripts" & "notepad.exe" "%UserProfile%\Projects\LostCity-244-EngineTS\scripts\localhost-save-backup.bat" |
| |
| <code> | <code> |
| @echo off | @echo off |
| |
| "tar.exe" -czf "%UserProfile%\Downloads\%RANDOM%-2004Scape-Server-localhost-Saves.tar.gz" -C "%UserProfile%\Projects\2004Scape-Server\src\data\players" "main" | "tar.exe" -czf "%UserProfile%\Downloads\%RANDOM%-2004Scape-localhost-Saves.tar.gz" -C "%UserProfile%\Projects\LostCity-244-EngineTS\src\data\players" "localhost" |
| |
| :: End</code> | :: End</code> |
| |
| "%UserProfile%\Projects\2004Scape-Server\scripts\localhost-save-backup.bat" | "%UserProfile%\Projects\LostCity-244-EngineTS\scripts\localhost-save-backup.bat" |
| |
| ====== Firewall ====== | ====== Extras ====== |
| |
| ===== Block ===== | ===== Map ===== |
| |
| "netsh.exe" advfirewall firewall add rule name="2004Scape localhost Server (node.exe)" dir="in" action="block" profile="any" program="%ProgramFiles%\nodejs\node.exe" | * https://runescape.wiki/images/June_2004_Map.jpg?35d17 ([[https://runescape.wiki/w/World_map#/media/File:June_2004_Map.jpg|Source]]) |
| | * ''781,684 June_2004_Map.jpg'' |
| |
| "netsh.exe" advfirewall firewall add rule name="2004Scape localhost Server (node.exe)" dir="out" action="block" profile="any" program="%ProgramFiles%\nodejs\node.exe" | "%UserProfile%\Projects\LostCity-244-EngineTS\ext\June_2004_Map.jpg" |
| |
| ===== LAN ===== | ===== Icon ===== |
| |
| * Allows loading the game applet/connecting on other devices on LAN ((2024/11/09: Works on Xbox One Edge with physical keyboard for log-in; controller works in-game flawlessly; :?: may work better 2025 with touch/phone improvements)) | * https://raw.githubusercontent.com/2004Scape/Server/7b0f1ec303dc1f76c7b29a2fff83b5797dafa01b/public/favicon.ico |
| * :!: Can't have above block rule enabled at the same time | * ''9,662 favicon.ico'' |
| |
| "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" | "%UserProfile%\Projects\LostCity-244-EngineTS\ext\favicon.ico" |
| |
| ===== Delete Rule ===== | ===== Save Back to Downloads ===== |
| |
| **** | * For Firefox to go back to default ''Downloads'' folder after above downloads |
| | * https://raw.githubusercontent.com/2004Scape/Server/7b0f1ec303dc1f76c7b29a2fff83b5797dafa01b/public/favicon.ico |
| |
| "netsh.exe" advfirewall firewall delete rule name="2004Scape localhost Server (node.exe)" | "%UserProfile%\Downloads\favicon.ico" |
| |
| ====== Extras ====== | DEL /Q "%UserProfile%\Downloads\favicon.ico" |
| |
| **** | ===== SC55_zzdenis SoundFont ===== |
| |
| MKDIR "%UserProfile%\Projects\2004Scape-Server\ext" | * https://www.doomworld.com/forum/topic/129928-new-sc55-soundfont-266mb-all-new-441k-samples/ |
| | * https://drive.google.com/file/d/1wdYpwoCka8r7ZuIzPn1CHy13_4aP9oSq/view?usp=sharing |
| | * ''298,185,428 SC55_zzdenis_v0.5.sf2'' |
| |
| ===== Map ===== | MOVE /Y "%UserProfile%\Downloads\SC55_zzdenis_v0.5.sf2" "%UserProfile%\Projects\LostCity-244-EngineTS\ext" |
| |
| * https://runescape.wiki/images/June_2004_Map.jpg?35d17 ([[https://runescape.wiki/w/World_map#/media/File:June_2004_Map.jpg|Source]]) | DEL /Q "%UserProfile%\Projects\LostCity-244-EngineTS\src\public\client\SCC1_Florestan.sf2" && MKLINK "%UserProfile%\Projects\LostCity-244-EngineTS\src\public\client\SCC1_Florestan.sf2" "%UserProfile%\Projects\LostCity-244-EngineTS\ext\SC55_zzdenis_v0.5.sf2" |
| |
| "%UserProfile%\Projects\2004Scape-Server\ext\June_2004_Map.jpg" | DIR "%UserProfile%\Projects\LostCity-244-EngineTS\src\public\client\SCC1_Florestan.sf2" |
| |
| ===== Icon ===== | ==== Update Script ==== |
| |
| * https://raw.githubusercontent.com/2004Scape/Server/7b0f1ec303dc1f76c7b29a2fff83b5797dafa01b/public/favicon.ico | "notepad.exe" "%UserProfile%\Projects\LostCity-244-EngineTS\scripts\localhost-server-update.bat" |
| |
| "%UserProfile%\Projects\2004Scape-Server\ext\favicon.ico" | <code> |
| | :: SC55_zzdenis_v0.5.sf2 |
| |
| ===== Save Back to Downloads ===== | DEL /Q "%UserProfile%\Projects\LostCity-244-EngineTS\src\public\client\SCC1_Florestan.sf2" |
| | MKLINK "%UserProfile%\Projects\LostCity-244-EngineTS\src\public\client\SCC1_Florestan.sf2" "%UserProfile%\Projects\LostCity-244-EngineTS\ext\SC55_zzdenis_v0.5.sf2" |
| |
| * For Firefox to go back to default ''Downloads'' folder after above downloads | :: SF End</code> |
| * https://raw.githubusercontent.com/2004Scape/Server/7b0f1ec303dc1f76c7b29a2fff83b5797dafa01b/public/favicon.ico | |
| |
| "%UserProfile%\Downloads\favicon.ico" | ===== Login Autofill ===== |
| |
| DEL /Q "%UserProfile%\Downloads\favicon.ico" | * [[https://github.com/2004Scape/Server/issues/1498|#1498]] |
| | |
| | "notepad.exe" "%UserProfile%\Projects\LostCity-244-EngineTS\scripts\localhost-autologin-sed.sh" |
| | |
| | <code> |
| | #!/bin/sh |
| | |
| | sed -i -e 's/username="";password=""/username="Espionage724";password="1"/g' ~/'Projects/LostCity-244-EngineTS/src/public/client/client.js' |
| | |
| | # End</code> |
| | |
| | "%ProgramFiles%\Git\bin\sh.exe" -- "%UserProfile%\Projects\LostCity-244-EngineTS\scripts\localhost-autologin-sed.sh" |
| | |
| | ==== Update Script ==== |
| | |
| | "notepad.exe" "%UserProfile%\Projects\LostCity-244-EngineTS\scripts\localhost-server-update.bat" |
| | |
| | <code> |
| | :: Login Autofill |
| | |
| | "%ProgramFiles%\Git\bin\sh.exe" -- "%UserProfile%\Projects\LostCity-244-EngineTS\scripts\localhost-autologin-sed.sh" |
| | |
| | :: Autofill End</code> |
| |
| ====== Launcher Shortcuts ====== | ====== Launcher Shortcuts ====== |
| |
| ===== Desktop ===== | ===== Desktop ===== |
| |
| * Right-click Desktop -> New -> Shortcut | |
| |
| ==== Server Start ==== | ==== Server Start ==== |
| |
| "%UserProfile%\Projects\2004Scape-Server\scripts\localhost-server-start.bat" | "%UserProfile%\Projects\LostCity-244-EngineTS\scripts\localhost-server-start.bat" |
| |
| 2004Scape Server | 2004Scape Server |
| ==== Client ==== | ==== Client ==== |
| |
| "http://localhost/rs2.cgi" | "%ProgramFiles(x86)%\Microsoft\Edge\Application\msedge_proxy.exe" --proxy-server="localhost:80" --kiosk --edge-kiosk-type="public-browsing" --new-window --window-size="820,575" --app="http://localhost:80/rs2.cgi" |
| |
| 2004Scape | 2004Scape |
| **** | **** |
| |
| "%UserProfile%\Projects\2004Scape-Server\ext\favicon.ico" | "%UserProfile%\Projects\LostCity-244-EngineTS\ext\favicon.ico" |
| |
| ===== Start Menu ===== | ===== Start Menu ===== |
| |
| * Right-click -> New -> Shortcut | **** |
| | |
| MKDIR "%AppData%\Microsoft\Windows\Start Menu\Programs\2004Scape" | |
| |
| "explorer.exe" "%AppData%\Microsoft\Windows\Start Menu\Programs\2004Scape" | MKDIR "%AppData%\Microsoft\Windows\Start Menu\Programs\2004Scape" & "explorer.exe" "%AppData%\Microsoft\Windows\Start Menu\Programs\2004Scape" |
| |
| ==== Server Start ==== | ==== Server Start ==== |
| |
| "%UserProfile%\Projects\2004Scape-Server\scripts\localhost-server-start.bat" | "%UserProfile%\Projects\LostCity-244-EngineTS\scripts\localhost-server-start.bat" |
| |
| Server Start | Server Start |
| ==== Client ==== | ==== Client ==== |
| |
| "http://localhost/rs2.cgi" | "%ProgramFiles(x86)%\Microsoft\Edge\Application\msedge_proxy.exe" --proxy-server="localhost:80" --kiosk --edge-kiosk-type="public-browsing" --new-window --window-size="820,575" --app="http://localhost:80/rs2.cgi" |
| |
| 2004Scape (localhost) | 2004Scape (localhost) |
| **** | **** |
| |
| "%UserProfile%\Projects\2004Scape-Server\ext\favicon.ico" | "%UserProfile%\Projects\LostCity-244-EngineTS\ext\favicon.ico" |
| |
| ==== Update ==== | ==== Update ==== |
| |
| "%UserProfile%\Projects\2004Scape-Server\scripts\localhost-server-update.bat" | "%UserProfile%\Projects\LostCity-244-EngineTS\scripts\localhost-server-update.bat" |
| |
| Updater | Updater |
| ==== Save Backup ==== | ==== Save Backup ==== |
| |
| "%UserProfile%\Projects\2004Scape-Server\scripts\localhost-save-backup.bat" | "%UserProfile%\Projects\LostCity-244-EngineTS\scripts\localhost-save-backup.bat" |
| |
| Save Back-up | Save Back-up |
| ==== Save Folder ==== | ==== Save Folder ==== |
| |
| MKDIR "%UserProfile%\Projects\2004Scape-Server\src\data\players" | MKDIR "%UserProfile%\Projects\LostCity-244-EngineTS\src\data\players\localhost" |
| |
| "%UserProfile%\Projects\2004Scape-Server\src\data\players" | "%UserProfile%\Projects\LostCity-244-EngineTS\src\data\players\localhost" |
| |
| Save Folder | Save Folder |
| |
| ==== Commits Check ==== | |
| |
| "https://github.com/2004Scape/Server/commits/main/" | |
| |
| Updates Check | |
| |
| ==== World Map ==== | ==== World Map ==== |
| |
| "%UserProfile%\Projects\2004Scape-Server\ext\June_2004_Map.jpg" | "%UserProfile%\Projects\LostCity-244-EngineTS\ext\June_2004_Map.jpg" |
| |
| World Map | World Map |
| ====== Quick Commands ====== | ====== Quick Commands ====== |
| |
| ===== Execute ===== | ===== Save Restore ===== |
| | |
| ==== Server ==== | |
| | |
| **** | |
| | |
| "%ProgramFiles%\nodejs\node.exe" "%ProgramFiles%\nodejs\node_modules\npm\bin\npm-cli.js" --prefix "%UserProfile%\Projects\2004Scape-Server\src" run "quickstart" --verbose | |
| | |
| ==== Client ==== | |
| | |
| * http://localhost/rs2.cgi | |
| * http://localhost:80 | |
| | |
| ===== Update ===== | |
| | |
| * https://github.com/2004Scape/Server/commits/main/ | |
| | |
| "%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 | |
| | |
| ===== Save Data Back-up ===== | |
| | |
| * :!: The ''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 ===== | |
| | |
| * Lists available ''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 | |
| | |
| ===== File Manager ===== | |
| | |
| ==== Save Data ==== | |
| | |
| * :?: Restoring a ''.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" | |
| | |
| ====== SoundFont Tests ====== | |
| |
| "explorer.exe" "%UserProfile%\Projects\2004Scape-Server\src\public\client" | * ''data\players\localhost\espionage724.sav'' |
| |
| SCC1_Florestan.sf2 | MKDIR "%UserProfile%\Projects\LostCity-244-EngineTS\src\data\players\localhost" & "explorer.exe" "%UserProfile%\Projects\LostCity-244-EngineTS\src\data\players\localhost" |
| |
| ===== SoundFonts ===== | ===== Firewall TODO ===== |
| |
| * https://www.doomworld.com/forum/topic/115527-roland-sc-55-soundfonts-compared-500-soundfont-pack-w-download/?tab=comments#comment-2153630 | * TODO: LAN subnet flag |
| * https://www.doomworld.com/forum/topic/136501-best-soundfonts/ | |
| |
| * ''SC-55 SoundFont v1.2a1.sf2'' preferred | "netsh.exe" advfirewall firewall add rule name="2004Scape localhost Server (bun.exe)" dir="in" action="allow" profile="any" program="%UserProfile%\Projects\LostCity-244-EngineTS\ext\bun.exe" protocol="tcp" localport="80" |
| |