Both sides previous revisionPrevious revisionNext revision | Previous revision |
games:windows:2004scape_localhost_node [2025/06/09 18:21] – Sean Rhone | games:windows:2004scape_localhost_node [2025/06/21 16:41] (current) – Sean Rhone |
---|
| |
* Lost City ''225'' Server + Client | * Lost City ''225'' Server + Client |
* 2025/06/05: ''bun'' has an odd ''cdn'' TCP connection and higher RAM ([[https://github.com/LostCityRS/Engine-TS/issues/7|#7]]) | * [[https://lostcity.rs/t/singleplayer-main-branch-scripts-and-desktop-start-launchers-on-windows-linux-freebsd/54|Lost City Forums]] |
| |
===== 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]] |
| |
===== Prerequisites ===== | ===== Prerequisites ===== |
| |
* [[windows:10|Windows 10 (21H2)]] | * [[windows;10|Windows 10 (21H2)]] |
* [[programs;windows;git|Git]] | * [[programs;windows;git|Git]] |
* [[programs;windows;nodejs_npm|Node.js + npm]] | * [[programs;windows;nodejs_npm|Node.js + npm]] |
* [[windows;notes;edge_tweaks|Microsoft Edge]] | * [[windows;notes;edge_tweaks|Microsoft Edge]] |
| |
===== Resources ===== | |
| |
* [[https://lostcity.rs/t/singleplayer-main-branch-scripts-and-desktop-start-launchers-on-windows-linux-freebsd/54|Lost City Forums]] | |
| |
====== Dependencies ====== | ====== Dependencies ====== |
| |
===== Java ===== | ===== Java ===== |
| |
| ==== 21 ==== |
| |
* https://learn.microsoft.com/en-us/java/openjdk/download#openjdk-21 | * https://learn.microsoft.com/en-us/java/openjdk/download#openjdk-21 |
| |
"%ProgramFiles%\nodejs\node.exe" "%ProgramFiles%\nodejs\node_modules\npm\bin\npm-cli.js" --prefix "%UserProfile%\Projects\LostCity-225-EngineTS\src" run "setup" | "%ProgramFiles%\nodejs\node.exe" "%ProgramFiles%\nodejs\node_modules\npm\bin\npm-cli.js" --prefix "%UserProfile%\Projects\LostCity-225-EngineTS\src" run "setup" |
| |
| ====== Settings ====== |
| |
| * Last commit: [[https://github.com/LostCityRS/Engine-TS/commit/b582003ba82c5e57e5bf12bc1cf9fc233dac3018|Mar 27, 2025]] ''b582003'' |
| * [[https://github.com/LostCityRS/Engine-TS/commits/225/.env.example|New commits check]] |
| * [[https://github.com/LostCityRS/Engine-TS/blob/225/.env.example|Upstream Settings]] ([[https://raw.githubusercontent.com/LostCityRS/Engine-TS/refs/heads/225/.env.example|raw]]) |
| |
| MKDIR "%UserProfile%\Projects\LostCity-225-EngineTS\conf" |
| |
| "notepad.exe" "%UserProfile%\Projects\LostCity-225-EngineTS\conf\localhost.env" |
| |
| <code> |
| NODE_XPRATE=1 |
| NODE_PROFILE=localhost |
| NODE_STAFF=Test |
| NODE_DEBUGPROC_CHAR=: |
| NODE_CLIENT_ROUTEFINDER=false |
| |
| # End</code> |
| |
====== Scripts ====== | ====== Scripts ====== |
@echo off | @echo off |
| |
TITLE 2004Scape - Server | "%ProgramFiles%\nodejs\node.exe" --env-file="%UserProfile%\Projects\LostCity-225-EngineTS\conf\localhost.env" "%ProgramFiles%\nodejs\node_modules\npm\bin\npm-cli.js" --prefix "%UserProfile%\Projects\LostCity-225-EngineTS\src" run "quickstart" |
| |
"%ProgramFiles%\nodejs\node.exe" "%ProgramFiles%\nodejs\node_modules\npm\bin\npm-cli.js" --prefix "%UserProfile%\Projects\LostCity-225-EngineTS\src" run "quickstart" | |
| |
:: End</code> | :: End</code> |
<code> | <code> |
@echo off | @echo off |
| |
TITLE 2004Scape Updater | |
| |
"%ProgramFiles%\Git\bin\git.exe" -C "%UserProfile%\Projects\LostCity-225-EngineTS\content" reset --hard | "%ProgramFiles%\Git\bin\git.exe" -C "%UserProfile%\Projects\LostCity-225-EngineTS\content" reset --hard |
@echo off | @echo off |
| |
"tar.exe" -czf "%UserProfile%\Downloads\%RANDOM%-2004Scape-localhost-Saves.tar.gz" -C "%UserProfile%\Projects\LostCity-225-EngineTS\src\data\players" "main" | "tar.exe" -czf "%UserProfile%\Downloads\%RANDOM%-2004Scape-localhost-Saves.tar.gz" -C "%UserProfile%\Projects\LostCity-225-EngineTS\src\data\players" "localhost" |
| |
:: End</code> | :: End</code> |
* https://runescape.wiki/images/June_2004_Map.jpg?35d17 ([[https://runescape.wiki/w/World_map#/media/File:June_2004_Map.jpg|Source]]) | * 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'' | * ''781,684 June_2004_Map.jpg'' |
| |
| MKDIR "%UserProfile%\Projects\LostCity-225-EngineTS\ext" |
| |
"%UserProfile%\Projects\LostCity-225-EngineTS\ext\June_2004_Map.jpg" | "%UserProfile%\Projects\LostCity-225-EngineTS\ext\June_2004_Map.jpg" |
==== Install Notes ==== | ==== Install Notes ==== |
| |
"https://wiki.realmofespionage.xyz/games;windows;2004scape_localhost" | "https://wiki.realmofespionage.xyz/games;windows;2004scape_localhost_node" |
| |
Install Notes | Install Notes |
| |
====== Quick Commands ====== | |
| |
* 2025/06/09: TODO: Node commands instead of ''bun'' (all of below) | |
| |
===== Execute ===== | |
| |
==== Server ==== | |
| |
**** | |
| |
"%UserProfile%\Projects\LostCity-225-EngineTS\ext\bun.exe" --cwd="%UserProfile%\Projects\LostCity-225-EngineTS\src" run "quickstart" | |
| |
==== Client ==== | |
| |
* http://localhost:80/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,600" --app="http://localhost:80/rs2.cgi" | |
| |
===== Update ===== | |
| |
* https://github.com/LostCityRS/Engine-TS/commits/225/ | |
* https://github.com/LostCityRS/Content/commits/225/ | |
| |
"%ProgramFiles%\Git\bin\git.exe" -C "%UserProfile%\Projects\LostCity-225-EngineTS\src" reset --hard && "%ProgramFiles%\Git\bin\git.exe" -C "%UserProfile%\Projects\LostCity-225-EngineTS\src" pull origin "225" --rebase && "%ProgramFiles%\Git\bin\git.exe" -C "%UserProfile%\Projects\LostCity-225-EngineTS\content" reset --hard && "%ProgramFiles%\Git\bin\git.exe" -C "%UserProfile%\Projects\LostCity-225-EngineTS\content" pull origin "225" --rebase && "%UserProfile%\Projects\LostCity-225-EngineTS\ext\bun.exe" --cwd="%UserProfile%\Projects\LostCity-225-EngineTS\src" run "clean" && "%UserProfile%\Projects\LostCity-225-EngineTS\ext\bun.exe" --cwd="%UserProfile%\Projects\LostCity-225-EngineTS\src" install && "%UserProfile%\Projects\LostCity-225-EngineTS\ext\bun.exe" --cwd="%UserProfile%\Projects\LostCity-225-EngineTS\src" run "setup" | |
| |
===== Save Data Back-up ===== | |
| |
"tar.exe" -cvzf "%UserProfile%\Downloads\%RANDOM%-2004Scape-localhost-Saves.tar.gz" -C "%UserProfile%\Projects\LostCity-225-EngineTS\src\data\players" "main" | |
| |
"explorer.exe" "%UserProfile%\Projects\LostCity-225-EngineTS\src\data\players" | |
| |
===== bun ===== | |
| |
* Lists available ''bun'' commands | |
| |
"%UserProfile%\Projects\LostCity-225-EngineTS\ext\bun.exe" --cwd="%UserProfile%\Projects\LostCity-225-EngineTS\src" run | |
| |
===== Bookmarks ===== | |
| |
* https://github.com/LostCityRS/Engine-TS/commits/225/ | |
* https://github.com/LostCityRS/Content/commits/225/ | |
| |
===== File Manager ===== | |
| |
==== Save Data ==== | |
| |
MKDIR "%UserProfile%\Projects\LostCity-225-EngineTS\src\data\players\main" | |
| |
"explorer.exe" "%UserProfile%\Projects\LostCity-225-EngineTS\src\data\players" | |
| |
====== TODOs ====== | |
| |
===== Settings Test ===== | |
| |
* Last commit: [[https://github.com/LostCityRS/Engine-TS/commit/b582003ba82c5e57e5bf12bc1cf9fc233dac3018|Mar 27, 2025]] ''b582003'' | |
* [[https://github.com/LostCityRS/Engine-TS/commits/225/.env.example|New commits check]] | |
* [[https://github.com/LostCityRS/Engine-TS/blob/225/.env.example|Upstream Settings]] ([[https://raw.githubusercontent.com/LostCityRS/Engine-TS/refs/heads/225/.env.example|raw]]) | |
| |
MKDIR "%UserProfile%\Projects\LostCity-225-EngineTS\conf" | |
| |
"notepad.exe" "%UserProfile%\Projects\LostCity-225-EngineTS\conf\localhost.env" | |
| |
<code> | |
NODE_STAFF=Test | |
NODE_DEBUGPROC_CHAR=: | |
NODE_CLIENT_ROUTEFINDER=false | |
| |
# End</code> | |
| |
"%UserProfile%\Projects\LostCity-225-EngineTS\ext\bun.exe" --cwd="%UserProfile%\Projects\LostCity-225-EngineTS\src" --env-file="%UserProfile%\Projects\LostCity-225-EngineTS\conf\localhost.env" run "quickstart" | |
| |
"%ProgramFiles%\nodejs\node.exe" --env-file="%UserProfile%\Projects\LostCity-225-EngineTS\conf\localhost.env" "%ProgramFiles%\nodejs\node_modules\npm\bin\npm-cli.js" --prefix "%UserProfile%\Projects\LostCity-225-EngineTS\src" run "quickstart" | |
| |
===== Save NAS ===== | |
| |
* Batch to pull non-old ''tar.gz'' from NAS to client/PC ''Downloads'' | |
* Add flat-file sync to NAS in Save batch (no auto tar.gz); above pull straight to ''main'' from NAS | |
| |
===== Node ===== | |
| |
* ''node-v22.16.0-x64.msi'' | |
| |
"%ProgramFiles%\Git\bin\git.exe" clone --rev "0fb09fb0506fd884d82b8fec556a822e69d25e14" --depth "1" --recurse-submodules "https://github.com/LostCityRS/Engine-TS.git" "%UserProfile%\Projects\LostCity-225-EngineTS\src" | |
| |