| Both sides previous revisionPrevious revisionNext revision | Previous revision |
| games:windows:2004scape_localhost [2025/11/12 00:44] – [Login Autofill] Sean Rhone | games:windows:2004scape_localhost [2025/12/14 00:42] (current) – [Extras] Sean Rhone |
|---|
| * Lost City ''225'' Server + Client | * Lost City ''225'' Server + Client |
| * [[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]] |
| |
| * :!: WIP | |
| |
| ===== Media ===== | ===== Media ===== |
| ===== Java ===== | ===== Java ===== |
| |
| * https://learn.microsoft.com/en-us/java/openjdk/download#openjdk-25 | * https://aka.ms/download-jdk/microsoft-jdk-25-windows-x64.msi |
| * Last tested: ''microsoft-jdk-25.0.1-windows-x64.msi'' | * Last tested: ''microsoft-jdk-25.0.1-windows-x64.msi'' |
| |
| ===== Bun ===== | ===== Bun ===== |
| |
| * [[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]])) | * [[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#baseline-builds|more info]])) |
| * [[https://github.com/oven-sh/bun/releases|oven-sh/bun]] | * [[https://github.com/oven-sh/bun/releases|oven-sh/bun]] |
| |
| |
| ====== Scripts ====== | ====== Scripts ====== |
| | |
| | MKDIR "%UserProfile%\Projects\LostCity-225-EngineTS\scripts" |
| | |
| | "explorer.exe" "%UserProfile%\Projects\LostCity-225-EngineTS\scripts" |
| |
| ===== Server Start ===== | ===== Server Start ===== |
| |
| MKDIR "%UserProfile%\Projects\LostCity-225-EngineTS\scripts" & "notepad.exe" "%UserProfile%\Projects\LostCity-225-EngineTS\scripts\localhost-server-start.bat" | "notepad.exe" "%UserProfile%\Projects\LostCity-225-EngineTS\scripts\localhost-server-start.bat" |
| |
| <code> | <code> |
| SET "_JAVA_OPTIONS=--sun-misc-unsafe-memory-access=allow" | SET "_JAVA_OPTIONS=--sun-misc-unsafe-memory-access=allow" |
| |
| "%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" | "%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" || exit "1" |
| |
| :: End</code> | :: End</code> |
| |
| "%UserProfile%\Projects\LostCity-225-EngineTS\scripts\localhost-server-start.bat" | "%UserProfile%\Projects\LostCity-225-EngineTS\scripts\localhost-server-start.bat" |
| | |
| | ==== Desktop Launcher ==== |
| | |
| | "notepad.exe" "%UserProfile%\Projects\LostCity-225-EngineTS\scripts\localhost-server-start-desktop.bat" |
| | |
| | <code> |
| | @echo off |
| | |
| | START "" /MIN "%UserProfile%\Projects\LostCity-225-EngineTS\scripts\localhost-server-start.bat" |
| | |
| | :: End</code> |
| | |
| | "%UserProfile%\Projects\LostCity-225-EngineTS\scripts\localhost-server-start-desktop.bat" |
| |
| ===== Server Update ===== | ===== Server Update ===== |
| |
| MKDIR "%UserProfile%\Projects\LostCity-225-EngineTS\scripts" & "notepad.exe" "%UserProfile%\Projects\LostCity-225-EngineTS\scripts\localhost-server-update.bat" | "notepad.exe" "%UserProfile%\Projects\LostCity-225-EngineTS\scripts\localhost-server-update.bat" |
| |
| <code> | <code> |
| TITLE 2004Scape Updater | TITLE 2004Scape Updater |
| |
| "%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" reset --hard "origin/225" |
| "%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\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" reset --hard "origin/225" |
| "%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 |
| |
| ===== Save Data Back-up ===== | ===== Save Data Back-up ===== |
| |
| MKDIR "%UserProfile%\Projects\LostCity-225-EngineTS\scripts" & "notepad.exe" "%UserProfile%\Projects\LostCity-225-EngineTS\scripts\localhost-save-backup.bat" | "notepad.exe" "%UserProfile%\Projects\LostCity-225-EngineTS\scripts\localhost-save-backup.bat" |
| |
| <code> | <code> |
| |
| ====== Extras ====== | ====== Extras ====== |
| | |
| | * TODO: ''curl.exe'' |
| |
| ===== Map ===== | ===== Map ===== |
| |
| "%UserProfile%\Projects\LostCity-225-EngineTS\ext\favicon.ico" | "%UserProfile%\Projects\LostCity-225-EngineTS\ext\favicon.ico" |
| | |
| | COPY /Y "%UserProfile%\Projects\LostCity-225-EngineTS\ext\favicon.ico" "%UserProfile%\Projects\LostCity-225-EngineTS\src\public\favicon.ico" |
| |
| ===== Save Back to Downloads ===== | ===== Save Back to Downloads ===== |
| ==== Server Start ==== | ==== Server Start ==== |
| |
| "%UserProfile%\Projects\LostCity-225-EngineTS\scripts\localhost-server-start.bat" | "%UserProfile%\Projects\LostCity-225-EngineTS\scripts\localhost-server-start-desktop.bat" |
| |
| 2004Scape Server | 2004Scape Server |
| ==== Server Start ==== | ==== Server Start ==== |
| |
| "%UserProfile%\Projects\LostCity-225-EngineTS\scripts\localhost-server-start.bat" | "%UserProfile%\Projects\LostCity-225-EngineTS\scripts\localhost-server-start-desktop.bat" |
| |
| Server Start | Server Start |