Both sides previous revisionPrevious revisionNext revision | Previous revision |
games:windows:2004scape_localhost [2025/06/09 20:11] – Sean Rhone | games:windows:2004scape_localhost [2025/06/19 18:26] (current) – old revision restored (2025/06/14 22:04) Sean Rhone |
---|
===== Prerequisites ===== | ===== Prerequisites ===== |
| |
* [[windows:10|Windows 10 (21H2)]] | * [[windows;11_ltsc|Windows 11 (24H2)]] |
* [[programs;windows;git|Git]] | * [[programs;windows;git|Git]] |
* [[windows;notes;edge_tweaks|Microsoft Edge]] | * [[windows;notes;edge_tweaks|Microsoft Edge]] |
| |
* [[https://lostcity.rs/t/singleplayer-main-branch-scripts-and-desktop-start-launchers-on-windows-linux-freebsd/54|Lost City Forums]] | * [[https://lostcity.rs/t/singleplayer-main-branch-scripts-and-desktop-start-launchers-on-windows-linux-freebsd/54|Lost City Forums]] |
* [[games;windows;2004scape_localhost_node|Node.js notes]] | |
| |
====== Dependencies ====== | ====== Dependencies ====== |
| |
* [[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.zip|bun-windows-x64.zip]] |
| * [[https://github.com/oven-sh/bun/releases|oven-sh/bun]] |
| |
MKDIR "%UserProfile%\Projects\LostCity-225-EngineTS\ext" | MKDIR "%UserProfile%\Projects\LostCity-225-EngineTS\ext" |
| |
DIR "%UserProfile%\Projects\LostCity-225-EngineTS\ext\bun.exe" | DIR "%UserProfile%\Projects\LostCity-225-EngineTS\ext\bun.exe" |
| |
| ===== Node.js ===== |
| |
| * [[https://nodejs.org/download/release/latest/win-x64/node.exe|node.exe]] |
| * [[https://nodejs.org/download/release/latest/|nodejs.org]] latest |
| |
| "%UserProfile%\Projects\LostCity-225-EngineTS\ext\node.exe" |
| |
| DIR "%UserProfile%\Projects\LostCity-225-EngineTS\ext\node.exe" |
| |
====== Download Source ====== | ====== Download Source ====== |
| |
"%UserProfile%\Projects\LostCity-225-EngineTS\ext\bun.exe" --cwd="%UserProfile%\Projects\LostCity-225-EngineTS\src" run "setup" | "%UserProfile%\Projects\LostCity-225-EngineTS\ext\bun.exe" --cwd="%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_STAFF=Test |
| NODE_DEBUGPROC_CHAR=: |
| NODE_CLIENT_ROUTEFINDER=false |
| |
| # End</code> |
| |
====== Scripts ====== | ====== Scripts ====== |
TITLE 2004Scape - Server | TITLE 2004Scape - Server |
| |
"%UserProfile%\Projects\LostCity-225-EngineTS\ext\bun.exe" --cwd="%UserProfile%\Projects\LostCity-225-EngineTS\src" run "quickstart" | SET "NODE=%UserProfile%\Projects\LostCity-225-EngineTS\ext\node.exe" |
| |
| "%UserProfile%\Projects\LostCity-225-EngineTS\ext\bun.exe" --env-file="%UserProfile%\Projects\LostCity-225-EngineTS\conf\localhost.env" --cwd="%UserProfile%\Projects\LostCity-225-EngineTS\src" run "quickstart" |
| |
:: End</code> | :: End</code> |
"%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 |
"%ProgramFiles%\Git\bin\git.exe" -C "%UserProfile%\Projects\LostCity-225-EngineTS\content" pull origin "225" --rebase | "%ProgramFiles%\Git\bin\git.exe" -C "%UserProfile%\Projects\LostCity-225-EngineTS\content" pull origin "225" --rebase |
| |
| SET "NODE=%UserProfile%\Projects\LostCity-225-EngineTS\ext\node.exe" |
| SET "PATH=%PATH%;%UserProfile%\Projects\LostCity-225-EngineTS\ext" |
| |
"%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" run "clean" |
| |
# End</code> | # End</code> |
| |
| "%ProgramFiles%\Git\bin\sh.exe" -- "%UserProfile%\Projects\LostCity-225-EngineTS\scripts\localhost-autologin-sed.sh" |
| |
==== Update Script ==== | ==== Update Script ==== |
| |
"explorer.exe" "%UserProfile%\Projects\LostCity-225-EngineTS\src\data\players" | "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" | |
| |
===== 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 | |
| |