User Tools

Site Tools


games:linux:2004scape_localhost

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
games:linux:2004scape_localhost [2025/08/20 14:47] – Old 225 -> 244 Sean Rhonegames:linux:2004scape_localhost [2025/10/21 04:58] (current) – xfce4-terminal -> kgx (GNOME) Sean Rhone
Line 1: Line 1:
 ====== Information ====== ====== Information ======
  
-  * Lost City ''244'' Server + Client+  * Lost City ''245'' 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]]
  
Line 10: Line 10:
 ===== Prerequisites ===== ===== Prerequisites =====
  
-  * [[linux;distros;opensuse_tumbleweed_gnome|openSUSE Tumbleweed (GNOME)]]+  * [[linux:distros:opensuse_tumbleweed_xfce|openSUSE Tumbleweed (Xfce)]]
  
 ====== Dependencies ====== ====== Dependencies ======
  
-  * https://github.com/LostCityRS/Engine-TS/tree/244?tab=readme-ov-file#dependencies+  * https://github.com/LostCityRS/Engine-TS/tree/245.2?tab=readme-ov-file#dependencies
  
-  sudo zypper install git-core java-24-openjdk-headless webkit2gtk4-minibrowser+  sudo zypper install git-core java-21-openjdk-headless
  
 ===== Java Priority ===== ===== Java Priority =====
  
-  * ''jre-24-openjdk''+  * ''jre-21-openjdk''
  
   sudo update-alternatives --config 'java'   sudo update-alternatives --config 'java'
Line 28: Line 28:
   * [[https://github.com/oven-sh/bun/releases|oven-sh/bun]]   * [[https://github.com/oven-sh/bun/releases|oven-sh/bun]]
  
-  rm -Rf '/tmp/bun-linux-x64'* && mkdir -p ~/'Projects/LostCity-244-EngineTS/ext' && wget -O '/tmp/bun-linux-x64.zip' 'https://github.com/oven-sh/bun/releases/latest/download/bun-linux-x64.zip' && unzip '/tmp/bun-linux-x64.zip' -d '/tmp' && mv -f '/tmp/bun-linux-x64/bun' ~/'Projects/LostCity-244-EngineTS/ext' && ~/'Projects/LostCity-244-EngineTS/ext/bun' --version && rm -Rf '/tmp/bun-linux-x64'*+  rm -Rf '/tmp/bun-linux-x64'* && mkdir -p ~/'Projects/LostCity-245-EngineTS/ext' && wget -O '/tmp/bun-linux-x64.zip' 'https://github.com/oven-sh/bun/releases/latest/download/bun-linux-x64.zip' && unzip '/tmp/bun-linux-x64.zip' -d '/tmp' && mv -f '/tmp/bun-linux-x64/bun' ~/'Projects/LostCity-245-EngineTS/ext' && ~/'Projects/LostCity-245-EngineTS/ext/bun' --version && rm -Rf '/tmp/bun-linux-x64'*
  
 ====== Download Source ====== ====== Download Source ======
Line 34: Line 34:
 ===== Engine-TS ===== ===== Engine-TS =====
  
-  * https://github.com/LostCityRS/Engine-TS/commits/244/+  * https://github.com/LostCityRS/Engine-TS/commits/245.2/
  
-  cd ~ && mkdir -p ~/'Projects' && rm -Rf ~/'Projects/LostCity-244-EngineTS/src' && git clone --branch '244' --depth '1' --recurse-submodules 'https://github.com/LostCityRS/Engine-TS.git' ~/'Projects/LostCity-244-EngineTS/src'+  cd ~ && mkdir -p ~/'Projects' && rm -Rf ~/'Projects/LostCity-245-EngineTS/src' && git clone --branch '245.2' --depth '1' --recurse-submodules 'https://github.com/LostCityRS/Engine-TS.git' ~/'Projects/LostCity-245-EngineTS/src'
  
 ===== Content ===== ===== Content =====
  
-  * https://github.com/LostCityRS/Content/commits/244/+  * https://github.com/LostCityRS/Content/commits/245.2/
  
-  cd ~ && mkdir -p ~/'Projects' && rm -Rf ~/'Projects/LostCity-244-EngineTS/content' && git clone --branch '244' --depth '1' --recurse-submodules 'https://github.com/LostCityRS/Content.git' ~/'Projects/LostCity-244-EngineTS/content'+  cd ~ && mkdir -p ~/'Projects' && rm -Rf ~/'Projects/LostCity-245-EngineTS/content' && git clone --branch '245.2' --depth '1' --recurse-submodules 'https://github.com/LostCityRS/Content.git' ~/'Projects/LostCity-245-EngineTS/content'
  
 ====== Initial Build ====== ====== Initial Build ======
Line 48: Line 48:
 **** ****
  
-  ~/'Projects/LostCity-244-EngineTS/ext/bun' --cwd=$HOME/'Projects/LostCity-244-EngineTS/src' install+  ~/'Projects/LostCity-245-EngineTS/ext/bun' --cwd=$HOME/'Projects/LostCity-245-EngineTS/src' install
  
 ====== Set-up ====== ====== Set-up ======
Line 54: Line 54:
   * Set up as a development world   * Set up as a development world
  
-  ~/'Projects/LostCity-244-EngineTS/ext/bun' --cwd=$HOME/'Projects/LostCity-244-EngineTS/src' run 'setup'+  ~/'Projects/LostCity-245-EngineTS/ext/bun' --cwd=$HOME/'Projects/LostCity-245-EngineTS/src' run 'setup'
  
 ====== Settings ====== ====== Settings ======
  
   * Last commit: [[https://github.com/LostCityRS/Engine-TS/commit/de5fa4db73add4e7277f0a9045d6eeb3a0800f59|Jun 25, 2025]] ''de5fa4d''   * Last commit: [[https://github.com/LostCityRS/Engine-TS/commit/de5fa4db73add4e7277f0a9045d6eeb3a0800f59|Jun 25, 2025]] ''de5fa4d''
-  * [[https://github.com/LostCityRS/Engine-TS/commits/244/.env.example|New commits check]] +  * [[https://github.com/LostCityRS/Engine-TS/commits/245.2/.env.example|New commits check]] 
-  * [[https://github.com/LostCityRS/Engine-TS/blob/244/.env.example|Upstream Settings]] ([[https://raw.githubusercontent.com/LostCityRS/Engine-TS/refs/heads/244/.env.example|raw]])+  * [[https://github.com/LostCityRS/Engine-TS/blob/245.2/.env.example|Upstream Settings]] ([[https://raw.githubusercontent.com/LostCityRS/Engine-TS/refs/heads/245.2/.env.example|raw]])
  
-  mkdir -p ~/'Projects/LostCity-244-EngineTS/conf' && nano ~/'Projects/LostCity-244-EngineTS/conf/localhost.env'+  mkdir -p ~/'Projects/LostCity-245-EngineTS/conf' && nano ~/'Projects/LostCity-245-EngineTS/conf/localhost.env'
  
 <code> <code>
Line 77: Line 77:
 ===== Server Start ===== ===== Server Start =====
  
-  mkdir -p ~/'Projects/LostCity-244-EngineTS/scripts' && nano ~/'Projects/LostCity-244-EngineTS/scripts/localhost-server-start.sh' && chmod +x ~/'Projects/LostCity-244-EngineTS/scripts/localhost-server-start.sh'+  mkdir -p ~/'Projects/LostCity-245-EngineTS/scripts' && nano ~/'Projects/LostCity-245-EngineTS/scripts/localhost-server-start.sh' && chmod +x ~/'Projects/LostCity-245-EngineTS/scripts/localhost-server-start.sh'
  
 <code> <code>
 #!/bin/bash #!/bin/bash
  
-export _JAVA_OPTIONS='--sun-misc-unsafe-memory-access=allow' +~/'Projects/LostCity-245-EngineTS/ext/bun' --env-file=$HOME/'Projects/LostCity-245-EngineTS/conf/localhost.env' --cwd=$HOME/'Projects/LostCity-245-EngineTS/src' run 'quickstart'
- +
-~/'Projects/LostCity-244-EngineTS/ext/bun' --env-file=$HOME/'Projects/LostCity-244-EngineTS/conf/localhost.env' --cwd=$HOME/'Projects/LostCity-244-EngineTS/src' run 'quickstart'+
  
 # End</code> # End</code>
  
-  ~/'Projects/LostCity-244-EngineTS/scripts/localhost-server-start.sh'+  ~/'Projects/LostCity-245-EngineTS/scripts/localhost-server-start.sh'
  
 ===== Server Update ===== ===== Server Update =====
  
-  mkdir -p ~/'Projects/LostCity-244-EngineTS/scripts' && nano ~/'Projects/LostCity-244-EngineTS/scripts/localhost-server-update.sh' && chmod +x ~/'Projects/LostCity-244-EngineTS/scripts/localhost-server-update.sh'+  mkdir -p ~/'Projects/LostCity-245-EngineTS/scripts' && nano ~/'Projects/LostCity-245-EngineTS/scripts/localhost-server-update.sh' && chmod +x ~/'Projects/LostCity-245-EngineTS/scripts/localhost-server-update.sh'
  
 <code> <code>
 #!/bin/bash #!/bin/bash
  
-git -C ~/'Projects/LostCity-244-EngineTS/src' reset --hard +git -C ~/'Projects/LostCity-245-EngineTS/src' reset --hard 
-git -C ~/'Projects/LostCity-244-EngineTS/src' pull origin '244' --rebase+git -C ~/'Projects/LostCity-245-EngineTS/src' pull origin '245.2' --rebase
  
-git -C ~/'Projects/LostCity-244-EngineTS/content' reset --hard +git -C ~/'Projects/LostCity-245-EngineTS/content' reset --hard 
-git -C ~/'Projects/LostCity-244-EngineTS/content' pull origin '244' --rebase+git -C ~/'Projects/LostCity-245-EngineTS/content' pull origin '245.2' --rebase
  
-~/'Projects/LostCity-244-EngineTS/ext/bun' --cwd=$HOME/'Projects/LostCity-244-EngineTS/src' run 'clean' +~/'Projects/LostCity-245-EngineTS/ext/bun' --cwd=$HOME/'Projects/LostCity-245-EngineTS/src' run 'clean' 
-~/'Projects/LostCity-244-EngineTS/ext/bun' --cwd=$HOME/'Projects/LostCity-244-EngineTS/src' 'install' +~/'Projects/LostCity-245-EngineTS/ext/bun' --cwd=$HOME/'Projects/LostCity-245-EngineTS/src' 'install' 
-~/'Projects/LostCity-244-EngineTS/ext/bun' --cwd=$HOME/'Projects/LostCity-244-EngineTS/src' run 'setup'+~/'Projects/LostCity-245-EngineTS/ext/bun' --cwd=$HOME/'Projects/LostCity-245-EngineTS/src' run 'setup'
  
-zenity --title '2004Scape Updater' --text 'localhost server update complete' --icon ~/'Projects/LostCity-244-EngineTS/ext/favicon.ico' --timeout '1' --info+zenity --title '2004Scape Updater' --text 'localhost server update complete' --icon ~/'Projects/LostCity-245-EngineTS/ext/favicon.ico' --timeout '1' --info
  
 # End</code> # End</code>
  
-  ~/'Projects/LostCity-244-EngineTS/scripts/localhost-server-update.sh'+  ~/'Projects/LostCity-245-EngineTS/scripts/localhost-server-update.sh'
  
 ===== Save Data Back-up ===== ===== Save Data Back-up =====
  
-  * TODO: Remove ''Server'' from ''2004Scape-Server-localhost-Saves.tar.gz'' +  mkdir -p ~/'Projects/LostCity-245-EngineTS/scripts' && nano ~/'Projects/LostCity-245-EngineTS/scripts/localhost-save-backup.sh' && chmod +x ~/'Projects/LostCity-245-EngineTS/scripts/localhost-save-backup.sh'
- +
-  mkdir -p ~/'Projects/LostCity-244-EngineTS/scripts' && nano ~/'Projects/LostCity-244-EngineTS/scripts/localhost-save-backup.sh' && chmod +x ~/'Projects/LostCity-244-EngineTS/scripts/localhost-save-backup.sh'+
  
 <code> <code>
 #!/bin/bash #!/bin/bash
  
-tar -czf ~/'Downloads/'$(date +%Y-%m-%d-%s)'-2004Scape-Server-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-245-EngineTS/src/data/players' 'localhost'
  
-zenity --title '2004Scape Save Backup' --text 'Save Data Backed-up to Downloads' --icon ~/'Projects/LostCity-244-EngineTS/ext/favicon.ico' --timeout '1' --info+zenity --title '2004Scape Save Backup' --text 'Save Data Backed-up to Downloads' --icon ~/'Projects/LostCity-245-EngineTS/ext/favicon.ico' --timeout '1' --info
  
 # End</code> # End</code>
  
-  ~/'Projects/LostCity-244-EngineTS/scripts/localhost-save-backup.sh'+  ~/'Projects/LostCity-245-EngineTS/scripts/localhost-save-backup.sh'
  
 ====== Extras ====== ====== Extras ======
Line 136: Line 132:
   * https://raw.githubusercontent.com/2004Scape/Server/7b0f1ec303dc1f76c7b29a2fff83b5797dafa01b/public/favicon.ico   * https://raw.githubusercontent.com/2004Scape/Server/7b0f1ec303dc1f76c7b29a2fff83b5797dafa01b/public/favicon.ico
  
-  rm -f '/tmp/2004Scape-favicon.ico' && mkdir -p ~/'Projects/LostCity-244-EngineTS/ext' && wget -O '/tmp/2004Scape-favicon.ico' 'https://raw.githubusercontent.com/2004Scape/Server/7b0f1ec303dc1f76c7b29a2fff83b5797dafa01b/public/favicon.ico' && sha384sum '/tmp/2004Scape-favicon.ico' | grep 'c70ef71357951b3c1895cf205746eb93959cf8031d1f83b6f43d8a9efbb272d79ed6b4a64fb1c39f6898ed56601bfc63' > '/dev/null' && mv -f '/tmp/2004Scape-favicon.ico' ~/'Projects/LostCity-244-EngineTS/ext/favicon.ico' && ls ~/'Projects/LostCity-244-EngineTS/ext/favicon.ico'+  rm -f '/tmp/2004Scape-favicon.ico' && mkdir -p ~/'Projects/LostCity-245-EngineTS/ext' && wget -O '/tmp/2004Scape-favicon.ico' 'https://raw.githubusercontent.com/2004Scape/Server/7b0f1ec303dc1f76c7b29a2fff83b5797dafa01b/public/favicon.ico' && sha384sum '/tmp/2004Scape-favicon.ico' | grep 'c70ef71357951b3c1895cf205746eb93959cf8031d1f83b6f43d8a9efbb272d79ed6b4a64fb1c39f6898ed56601bfc63' > '/dev/null' && mv -f '/tmp/2004Scape-favicon.ico' ~/'Projects/LostCity-245-EngineTS/ext/favicon.ico' && ls ~/'Projects/LostCity-245-EngineTS/ext/favicon.ico'
  
 ===== Map ===== ===== Map =====
Line 142: Line 138:
   * https://runescape.wiki/w/World_map#/media/File:June_2004_Map.jpg   * https://runescape.wiki/w/World_map#/media/File:June_2004_Map.jpg
  
-  rm -f '/tmp/June_2004_Map.jpg' && mkdir -p ~/'Projects/LostCity-244-EngineTS/ext' && wget -O '/tmp/June_2004_Map.jpg' 'https://runescape.wiki/images/June_2004_Map.jpg?35d17' --user-agent='script' && sha384sum '/tmp/June_2004_Map.jpg' | grep 'abfdfe4597975addbb9d79d2cce2e56f0054f2742f351bd9dc700f55e91157e6c2142749f113927b027ed42efb8ad833' > '/dev/null' && mv -f '/tmp/June_2004_Map.jpg' ~/'Projects/LostCity-244-EngineTS/ext/June_2004_Map.jpg' && ls ~/'Projects/LostCity-244-EngineTS/ext/June_2004_Map.jpg'+  rm -f '/tmp/June_2004_Map.jpg' && mkdir -p ~/'Projects/LostCity-245-EngineTS/ext' && wget -O '/tmp/June_2004_Map.jpg' 'https://runescape.wiki/images/June_2004_Map.jpg?35d17' --user-agent='script' && sha384sum '/tmp/June_2004_Map.jpg' | grep 'abfdfe4597975addbb9d79d2cce2e56f0054f2742f351bd9dc700f55e91157e6c2142749f113927b027ed42efb8ad833' > '/dev/null' && mv -f '/tmp/June_2004_Map.jpg' ~/'Projects/LostCity-245-EngineTS/ext/June_2004_Map.jpg' && ls ~/'Projects/LostCity-245-EngineTS/ext/June_2004_Map.jpg'
  
 ===== SC55_zzdenis SoundFont ===== ===== SC55_zzdenis SoundFont =====
Line 151: Line 147:
   * Symlink above ''zenity'' line   * Symlink above ''zenity'' line
  
-  mkdir -p ~/'Projects/LostCity-244-EngineTS/ext' && sha384sum ~/'Downloads/SC55_zzdenis_v0.5.sf2' | grep 'f386f638777072fc220e39afbd7efcd227ca2bfcf13403bf47fbb2e2b8f4d151239710cc36c8530a75c3b4c3f55066b7' > '/dev/null' && mv -f ~/'Downloads/SC55_zzdenis_v0.5.sf2' ~/'Projects/LostCity-244-EngineTS/ext'+  mkdir -p ~/'Projects/LostCity-245-EngineTS/ext' && sha384sum ~/'Downloads/SC55_zzdenis_v0.5.sf2' | grep 'f386f638777072fc220e39afbd7efcd227ca2bfcf13403bf47fbb2e2b8f4d151239710cc36c8530a75c3b4c3f55066b7' > '/dev/null' && mv -f ~/'Downloads/SC55_zzdenis_v0.5.sf2' ~/'Projects/LostCity-245-EngineTS/ext'
  
-  nano ~/'Projects/LostCity-244-EngineTS/scripts/localhost-server-update.sh'+  nano ~/'Projects/LostCity-245-EngineTS/scripts/localhost-server-update.sh'
  
-  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-245-EngineTS/ext/SC55_zzdenis_v0.5.sf2' ~/'Projects/LostCity-245-EngineTS/src/public/client/SCC1_Florestan.sf2'
- +
-==== Verify ==== +
- +
-**** +
- +
-  ls -la ~/'Projects/LostCity-244-EngineTS/src/public/client/SCC1_Florestan.sf2'+
  
 ===== Login Autofill ===== ===== Login Autofill =====
Line 168: Line 158:
   * ''sed'' above ''zenity'' line   * ''sed'' above ''zenity'' line
  
-  nano ~/'Projects/LostCity-244-EngineTS/scripts/localhost-server-update.sh'+  nano ~/'Projects/LostCity-245-EngineTS/scripts/localhost-server-update.sh'
  
-  sed -i -e 's/username="";password=""/username="Espionage724";password="1"/g' ~/'Projects/LostCity-244-EngineTS/src/public/client/client.js'+  sed -i -e 's/username="";password=""/username="Espionage724";password="1"/g' ~/'Projects/LostCity-245-EngineTS/src/public/client/client.js'
  
 ====== Desktop Launcher ====== ====== Desktop Launcher ======
Line 182: Line 172:
 Name=2004Scape Name=2004Scape
 Categories=Game; Categories=Game;
-Exec='/bin/bash' -c "'/usr/libexec/libwebkitgtk-6_0-0/MiniBrowser' --dark-mode --autoplay-policy 'allow' --private --features='-PreferPageRenderingUpdatesNear60FPS' 'http://localhost:8888/rs2.cgi'"+Exec='/bin/bash' -c "gio open 'http://localhost:8888/rs2.cgi'"
 Type=Application Type=Application
 StartupNotify=false StartupNotify=false
-StartupWMClass=org.webkitgtk.MiniBrowser +Icon=/home/CHANGEME/Projects/LostCity-245-EngineTS/ext/favicon.ico
-SingleMainWindow=false +
-Icon=/home/CHANGEME/Projects/LostCity-244-EngineTS/ext/favicon.ico+
 Actions=Map;Server;Update;Saves;Notes; Actions=Map;Server;Update;Saves;Notes;
  
 [Desktop Action Map] [Desktop Action Map]
-StartupNotify=false +Exec='/bin/bash' -c "gio open ~/'Projects/LostCity-245-EngineTS/ext/June_2004_Map.jpg'"
-Exec='/bin/bash' -c "gio open ~/'Projects/LostCity-244-EngineTS/ext/June_2004_Map.jpg'"+
 Name=World Map Name=World Map
  
 [Desktop Action Server] [Desktop Action Server]
-Exec='/bin/bash' -c "kgx -T '2004Scape Server' -e ~/'Projects/LostCity-244-EngineTS/scripts/localhost-server-start.sh'"+Exec='/bin/bash' -c "kgx -T '2004Scape Server' -e ~/'Projects/LostCity-245-EngineTS/scripts/localhost-server-start.sh'"
 Name=Server - Start Name=Server - Start
  
 [Desktop Action Update] [Desktop Action Update]
-Exec='/bin/bash' -c "kgx -T '2004Scape Updater' -e ~/'Projects/LostCity-244-EngineTS/scripts/localhost-server-update.sh'" +Exec='/bin/bash' -c "kgx -T '2004Scape Updater' -e ~/'Projects/LostCity-245-EngineTS/scripts/localhost-server-update.sh'" 
-Name=Server Update+Name=Server Update
  
 [Desktop Action Saves] [Desktop Action Saves]
-StartupNotify=false +Exec='/bin/bash' -c "~/'Projects/LostCity-245-EngineTS/scripts/localhost-save-backup.sh'"
-Exec='/bin/bash' -c "~/'Projects/LostCity-244-EngineTS/scripts/localhost-save-backup.sh'"+
 Name=Save Data Back-up Name=Save Data Back-up
  
 [Desktop Action Notes] [Desktop Action Notes]
-StartupNotify=false +Exec='/bin/bash' -c "gio open 'https://wiki.realmofespionage.xyz/games:linux:2004scape_localhost'"
-Exec='/bin/bash' -c "gio open 'https://wiki.realmofespionage.xyz/games;linux;2004scape_localhost_244'"+
 Name=Install Notes Name=Install Notes
  
Line 216: Line 201:
  
 ====== Quick Commands ====== ====== Quick Commands ======
- 
-===== MiniBrowser ===== 
- 
-**** 
- 
-  '/usr/libexec/libwebkitgtk-6_0-0/MiniBrowser' --dark-mode --autoplay-policy 'allow' --private --features='-PreferPageRenderingUpdatesNear60FPS' 'http://localhost:8888/rs2.cgi' 
  
 ===== Save Restore ===== ===== Save Restore =====
  
-****+  ''src/data/players/localhost/espionage724.sav''
  
-  mkdir -p ~/'Projects/LostCity-244-EngineTS/src/data/players/localhost' && gio open ~/'Projects/LostCity-244-EngineTS/src/data/players/localhost'+  mkdir -p ~/'Projects/LostCity-245-EngineTS/src/data/players/localhost' && gio open ~/'Projects/LostCity-245-EngineTS/src/data/players/localhost'
  
/usr/local/www/wiki/data/attic/games/linux/2004scape_localhost.1755715631.txt.gz · Last modified: by Sean Rhone

Except where otherwise noted, content on this wiki is licensed under the following license: CC0 1.0 Universal
CC0 1.0 Universal Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki