Both sides previous revisionPrevious revisionNext revision | Previous revision |
games:windows:2004scape_localhost_node [2025/06/16 16:48] – [Save Data Back-up] 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;11_ltsc|Windows 11 (24H2)]] | * [[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 |
| |
<code> | <code> |
| NODE_XPRATE=1 |
NODE_PROFILE=localhost | NODE_PROFILE=localhost |
NODE_STAFF=Test | NODE_STAFF=Test |
<code> | <code> |
@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" --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" |
<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 |
* 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 |
| |
====== Quick Commands ====== | |
| |
===== 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/ | |
* TODO: Switch to Node and remove ''EngineTS'' | |
| |
"%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" "localhost" | |
| |
"explorer.exe" "%UserProfile%\Projects\LostCity-225-EngineTS\src\data\players" | |
| |
===== bun ===== | |
| |
* Lists available ''bun'' commands | |
* TODO: Switch to Node | |
| |
"%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" | |
| |