| Both sides previous revisionPrevious revisionNext revision | Previous revision |
| games:bsd:2004scape_localhost [2025/08/20 09:51] – [Information] Sean Rhone | games:bsd:2004scape_localhost [2025/10/30 14:05] (current) – Sean Rhone |
|---|
| * [[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]] |
| |
| * :!: 2025/08/20: ''bun'' isn't compatible with FreeBSD ([[https://github.com/oven-sh/bun/issues/1524|#1524]]) ((commits locked at last ''npm'' support around May 19th, 2025; no update script)) | * 2025/08/20: ''bun'' isn't compatible with FreeBSD ([[https://github.com/oven-sh/bun/issues/1524|#1524]]) ((commits locked at last ''npm'' support around May/June 2025; no update script)) ((this is before Special Attacks and probably a noteworthy version milestone before ''245'')) |
| |
| ===== Media ===== | ===== Media ===== |
| ===== Prerequisites ===== | ===== Prerequisites ===== |
| |
| * [[bsd:freebsd_14.3_xfce|FreeBSD 14.3 (Xfce)]] | * [[bsd:freebsd_15.0_xfce|FreeBSD 15.0 (Xfce)]] |
| | |
| ===== Resources ===== | |
| | |
| * [[https://lostcity.rs/t/singleplayer-main-branch-scripts-and-desktop-start-launchers-on-windows-linux-freebsd/54|Lost City Forums]] | |
| |
| ====== Dependencies ====== | ====== Dependencies ====== |
| su - | su - |
| |
| pkg install git openjdk24 npm-node24 webkit2-gtk_60 | pkg install git openjdk24 npm-node24 |
| |
| ====== Download Source ====== | ====== Download Source ====== |
| tar -czf ~/'Downloads/'$(date +%Y-%m-%d-%s)'-2004Scape-localhost-Saves.tar.gz' -C ~/'Projects/LostCity-244-EngineTS/src/data/players' 'localhost' | tar -czf ~/'Downloads/'$(date +%Y-%m-%d-%s)'-2004Scape-localhost-Saves.tar.gz' -C ~/'Projects/LostCity-244-EngineTS/src/data/players' 'localhost' |
| |
| notify-send -i ~/'Projects/LostCity-244-EngineTS/ext/favicon.ico' '2004Scape Save Data Backed-up Successfully to Downloads' | notify-send -i ~/'Projects/LostCity-244-EngineTS/ext/favicon.ico' -t '3000' '2004Scape Save Data Backed-up Successfully to Downloads' |
| |
| # End</code> | # End</code> |
| |
| ln -s -f ~/'Projects/LostCity-244-EngineTS/ext/SC55_zzdenis_v0.5.sf2' ~/'Projects/LostCity-244-EngineTS/src/public/client/SCC1_Florestan.sf2' | ln -s -f ~/'Projects/LostCity-244-EngineTS/ext/SC55_zzdenis_v0.5.sf2' ~/'Projects/LostCity-244-EngineTS/src/public/client/SCC1_Florestan.sf2' |
| |
| ==== Verify ==== | |
| |
| **** | |
| |
| ls -la ~/'Projects/LostCity-244-EngineTS/src/public/client/SCC1_Florestan.sf2' | |
| |
| ===== Login Autofill ===== | ===== Login Autofill ===== |
| |
| sed -i -e 's/usernameInput="";passwordInput=""/usernameInput="Espionage724";passwordInput="1"/g' ~/'Projects/LostCity-244-EngineTS/src/public/client/client.js' | sed -i -e 's/usernameInput="";passwordInput=""/usernameInput="Espionage724";passwordInput="1"/g' ~/'Projects/LostCity-244-EngineTS/src/public/client/client.js' |
| |
| ===== LAN Firewall ===== | |
| |
| ==== ipfw ==== | |
| |
| * ''workstation'' deny all | |
| |
| su - | |
| |
| ipfw add '09000' 'allow' 'tcp' from '192.168.1.0/24' 'any' to '192.168.1.0/24' '8888' 'in' | |
| |
| === Delete Rule === | |
| |
| su - | |
| |
| ipfw delete '09000' | |
| |
| ====== Desktop Launcher ====== | ====== Desktop Launcher ====== |
| |
| * TODO | |
| |
| ===== 2004Scape ===== | ===== 2004Scape ===== |
| Type=Application | Type=Application |
| StartupNotify=false | StartupNotify=false |
| Icon=/home/CHANGEME/Projects/LostCity-244-EngineTS/src/public/favicon.ico | Icon=/home/CHANGEME/Projects/LostCity-244-EngineTS/ext/favicon.ico |
| Actions=Server;Map;Saves-Backup;Update;Saves-Folder;Updates-Check;Notes; | Actions=Map;Server;Saves;Notes; |
| | |
| [Desktop Action Server] | |
| Exec='/bin/sh' -c "xfce4-terminal -T '2004Scape - Server' -I ~/'Projects/LostCity-244-EngineTS/src/public/favicon.ico' -e ~/'Projects/LostCity-244-EngineTS/scripts/localhost-server-start.sh'" | |
| Name=Start Server | |
| |
| [Desktop Action Map] | [Desktop Action Map] |
| StartupNotify=false | |
| Exec='/bin/sh' -c "gio open ~/'Projects/LostCity-244-EngineTS/ext/June_2004_Map.jpg'" | Exec='/bin/sh' -c "gio open ~/'Projects/LostCity-244-EngineTS/ext/June_2004_Map.jpg'" |
| Name=World Map | Name=World Map |
| |
| [Desktop Action Saves-Backup] | [Desktop Action Server] |
| StartupNotify=false | Exec='/bin/sh' -c "xfce4-terminal --minimize -T '2004Scape [Server]' -I ~/'Projects/LostCity-244-EngineTS/ext/favicon.ico' -e ~/'Projects/LostCity-244-EngineTS/scripts/localhost-server-start.sh'" |
| | Name=Launch Local Server |
| | |
| | [Desktop Action Saves] |
| Exec='/bin/sh' -c "~/'Projects/LostCity-244-EngineTS/scripts/localhost-save-backup.sh'" | Exec='/bin/sh' -c "~/'Projects/LostCity-244-EngineTS/scripts/localhost-save-backup.sh'" |
| Name=Save Data Back-up | Name=Save Data Back-up |
| |
| [Desktop Action Update] | |
| Exec='/bin/sh' -c "xfce4-terminal -T '2004Scape Updater' -I ~/'Projects/LostCity-244-EngineTS/src/public/favicon.ico' -e ~/'Projects/LostCity-244-EngineTS/scripts/localhost-server-update.sh'" | |
| Name=Server Update | |
| |
| [Desktop Action Saves-Folder] | |
| StartupNotify=false | |
| Exec='/bin/sh' -c "gio open ~/'Projects/LostCity-244-EngineTS/src/data/players'" | |
| Name=Open Saves Folder | |
| |
| [Desktop Action Updates-Check] | |
| StartupNotify=false | |
| Exec='/bin/sh' -c "gio open 'https://github.com/LostCityRS/Engine-TS/commits/244/' 'https://github.com/LostCityRS/Content/commits/244/'" | |
| Name=Commits Check | |
| |
| [Desktop Action Notes] | [Desktop Action Notes] |
| StartupNotify=false | |
| Exec='/bin/sh' -c "gio open 'https://wiki.realmofespionage.xyz/games:bsd:2004scape_localhost'" | Exec='/bin/sh' -c "gio open 'https://wiki.realmofespionage.xyz/games:bsd:2004scape_localhost'" |
| Name=Install Notes | Name=Install Notes |
| |
| # End</code> | # End</code> |
| | |
| | xfce4-panel -r |
| |
| ====== Quick Commands ====== | ====== Quick Commands ====== |
| |
| ===== MiniBrowser ===== | ===== Save Restore ===== |
| |
| **** | **** |
| |
| '/usr/local/libexec/webkitgtk-6.0/MiniBrowser' --dark-mode --autoplay-policy 'allow' --private --features='-PreferPageRenderingUpdatesNear60FPS' 'http://localhost:8888/rs2.cgi' | mkdir -p ~/'Projects/LostCity-244-EngineTS/src/data/players/localhost' && gio open ~/'Projects/LostCity-244-EngineTS/src/data/players/localhost' |
| |
| ===== Save Restore ===== | |
| |
| **** | ====== TODO ====== |
| |
| mkdir -p ~/'Projects/LostCity-244-EngineTS/src/data/players/localhost' && gio open ~/'Projects/LostCity-244-EngineTS/src/data/players/localhost' | ===== Standalone Browser ===== |
| | |
| | <code> |
| | filezilla: 3.68.1_2 |
| | webkit2-gtk_41 |
| | |
| | foliate: 3.3.0_1 |
| | webkit2-gtk_60 |
| | |
| | '/usr/local/libexec/webkitgtk-6.0/MiniBrowser' --dark-mode --autoplay-policy 'allow' --private --features='-PreferPageRenderingUpdatesNear60FPS' 'http://localhost:8888/rs2.cgi' |
| | |
| | '/usr/local/libexec/webkit2gtk-4.1/MiniBrowser' --dark-mode --autoplay-policy 'allow' --private --features='-PreferPageRenderingUpdatesNear60FPS' 'http://localhost:8888/rs2.cgi' |
| | |
| | '/usr/local/libexec/webkit2gtk-4.0/MiniBrowser' --dark-mode --autoplay-policy 'allow' --private --features='-PreferPageRenderingUpdatesNear60FPS' 'http://localhost:8888/rs2.cgi' |
| | |
| | --dark-mode --autoplay-policy 'allow' --private --features='-PreferPageRenderingUpdatesNear60FPS' 'http://localhost:8888/rs2.cgi' |
| | </code> |
| |