User Tools

Site Tools


games:bsd: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:bsd:2004scape_localhost [2026/05/28 16:53] – Bun! Sean Rhonegames:bsd:2004scape_localhost [2026/07/02 18:12] (current) – Sean Rhone
Line 2: Line 2:
  
   * Lost City Server + Client   * Lost City Server + Client
 +  * :?: ''244'' ((see below; compatible with ''225'' saves; TODO: figure out branch name at time of commit))
   * [[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/June 2025 (before [[https://2004.lostcity.rs/news/216|244]]/no Special Attacks/Elemental Workshop); no update script)) +  * 2025/08/20: ''bun'' wasn't compatible with FreeBSD ([[https://github.com/oven-sh/bun/issues/1524|#1524]]) ((commits locked at last ''npm'' support around May/June 2025 (before [[https://2004.lostcity.rs/news/216|244]]/no Special Attacks/Elemental Workshop); no update script)) ((2026/06/17: WIP [[games:bsd:2004scape_localhost?rev=1780001582#dependencies|Bun notes]]; had too-large body error in browser with stock ''SCC1_Florestan.sf2'' and no audio))
-  * :?: 2026/04/26: ''bun'' might have FreeBSD support ([[https://forums.freebsd.org/threads/folks-lets-get-claude-code-native-installer-working-for-freebsd.101901/page-3#post-757378|post]]) +
- +
-  * :!: 2026/05/28: WIP+
  
 ===== Media ===== ===== Media =====
  
   * [[https://media.realmofespionage.xyz/index/category/2|Progress Pics]]   * [[https://media.realmofespionage.xyz/index/category/2|Progress Pics]]
 +  * [[https://www.youtube.com/watch?v=1ew1fePXCzU|Presentation Video]]
  
 ===== Prerequisites ===== ===== Prerequisites =====
  
-  * [[bsd:freebsd_15.0_xfce|FreeBSD 15.0 (Xfce)]]+  * [[bsd:freebsd_16.0_xfce|FreeBSD 16.0 (Xfce)]]
  
 ====== Dependencies ====== ====== Dependencies ======
  
   * https://github.com/LostCityRS/Engine-TS/tree/0fb09fb0506fd884d82b8fec556a822e69d25e14?tab=readme-ov-file#dependencies   * https://github.com/LostCityRS/Engine-TS/tree/0fb09fb0506fd884d82b8fec556a822e69d25e14?tab=readme-ov-file#dependencies
 +  * :?: 2026/06/17: ''npm-node24'' and higher have an error with ''hdr_histogram''
  
   su -   su -
  
-  pkg install git npm-node22 python315 +  pkg install git openjdk26-headless npm-node22 python315
- +
-===== bun ===== +
- +
-  * [[https://github.com/oven-sh/bun/releases|oven-sh/bun]] +
-  * Last tested version: ''1.3.14'' +
- +
-  rm -Rf '/tmp/bun-freebsd-x64'* && mkdir -p ~/'Projects/LostCity-225-EngineTS/ext' && wget -O '/tmp/bun-freebsd-x64.zip' 'https://github.com/oven-sh/bun/releases/latest/download/bun-freebsd-x64.zip' && unzip '/tmp/bun-freebsd-x64.zip' -d '/tmp' && mv -f '/tmp/bun-freebsd-x64/bun' ~/'Projects/LostCity-225-EngineTS/ext' && ~/'Projects/LostCity-225-EngineTS/ext/bun' --version && rm -Rf '/tmp/bun-freebsd-x64'*+
  
 ====== Download Source ====== ====== Download Source ======
Line 36: Line 29:
 ===== Engine-TS ===== ===== Engine-TS =====
  
-  * https://github.com/LostCityRS/Engine-TS/commits/225/+  * https://github.com/LostCityRS/Engine-TS/commit/0fb09fb0506fd884d82b8fec556a822e69d25e14
  
-  cd ~ && mkdir -p ~/'Projects' && rm -Rf ~/'Projects/LostCity-225-EngineTS/src' && git clone --branch '225' --depth '1' --recurse-submodules 'https://github.com/LostCityRS/Engine-TS.git' ~/'Projects/LostCity-225-EngineTS/src'+  cd ~ && mkdir -p ~/'Projects' && rm -Rf ~/'Projects/LostCity-225-EngineTS/src' && git clone --rev '0fb09fb0506fd884d82b8fec556a822e69d25e14' --depth '1' --recurse-submodules 'https://github.com/LostCityRS/Engine-TS.git' ~/'Projects/LostCity-225-EngineTS/src'
  
 ===== Content ===== ===== Content =====
  
-  * https://github.com/LostCityRS/Content/commits/225/+  * https://github.com/LostCityRS/Content/commit/69a88f534e9f43dcfe651d62467f9760ad021428
  
-  cd ~ && mkdir -p ~/'Projects' && rm -Rf ~/'Projects/LostCity-225-EngineTS/content' && git clone --branch '225' --depth '1' --recurse-submodules 'https://github.com/LostCityRS/Content.git' ~/'Projects/LostCity-225-EngineTS/content'+  cd ~ && mkdir -p ~/'Projects' && rm -Rf ~/'Projects/LostCity-225-EngineTS/content' && git clone --rev '69a88f534e9f43dcfe651d62467f9760ad021428' --depth '1' --recurse-submodules 'https://github.com/LostCityRS/Content.git' ~/'Projects/LostCity-225-EngineTS/content'
  
 ====== Initial Build ====== ====== Initial Build ======
  
-**** +  NODE_GYP_FORCE_PYTHON='/usr/local/bin/python3.15' node '/usr/local/lib/node_modules/npm/bin/npm-cli.js' --prefix ~/'Projects/LostCity-225-EngineTS/src' install --verbose
- +
-  NODE_GYP_FORCE_PYTHON='/usr/local/bin/python3.15' ~/'Projects/LostCity-225-EngineTS/ext/bun' --cwd=$HOME/'Projects/LostCity-225-EngineTS/src' install+
  
 ====== Set-up ====== ====== Set-up ======
Line 56: Line 47:
   * Set up as a development world   * Set up as a development world
  
-  PATH=$PATH:~/'Projects/LostCity-225-EngineTS/ext' ~/'Projects/LostCity-225-EngineTS/ext/bun' --cwd=$HOME/'Projects/LostCity-225-EngineTS/src' run 'setup'+  node '/usr/local/lib/node_modules/npm/bin/npm-cli.js' --prefix ~/'Projects/LostCity-225-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/143ff378c5843b200927b976ae31b9d774de26ed|Mar 6, 2025]] ''143ff37''
-  * [[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 -p ~/'Projects/LostCity-225-EngineTS/conf' && ee ~/'Projects/LostCity-225-EngineTS/conf/localhost.env'   mkdir -p ~/'Projects/LostCity-225-EngineTS/conf' && ee ~/'Projects/LostCity-225-EngineTS/conf/localhost.env'
Line 88: Line 77:
 cd '/tmp' cd '/tmp'
  
-export PATH=$PATH:~/'Projects/LostCity-225-EngineTS/ext'+export JAVA_HOME='/usr/local/openjdk26-headless' 
 +export _JAVA_OPTIONS="--sun-misc-unsafe-memory-access='allow'"
  
-~/'Projects/LostCity-225-EngineTS/ext/bun' --env-file=$HOME/'Projects/LostCity-225-EngineTS/conf/localhost.env' --cwd=$HOME/'Projects/LostCity-225-EngineTS/src' run 'quickstart'+node --env-file=$HOME/'Projects/LostCity-225-EngineTS/conf/localhost.env' '/usr/local/lib/node_modules/npm/bin/npm-cli.js' --prefix ~/'Projects/LostCity-225-EngineTS/src' run 'quickstart' 
 + 
 +unset 'JAVA_HOME' '_JAVA_OPTIONS' 
 +cd '/tmp'
  
 # End</code> # End</code>
Line 145: Line 138:
  
   sed -i -e 's/usernameInput="";passwordInput=""/usernameInput="Espionage724";passwordInput="1"/g' ~/'Projects/LostCity-225-EngineTS/src/public/client/client.js'   sed -i -e 's/usernameInput="";passwordInput=""/usernameInput="Espionage724";passwordInput="1"/g' ~/'Projects/LostCity-225-EngineTS/src/public/client/client.js'
 +
 +===== Pixel Scaling =====
 +
 +  * Defaults ''Pixel Scaling'' instead of ''Auto Scaling''
 +
 +  sed -i -e "s#'pixelated' : 'auto'#'pixelated' : 'pixelated'#g" ~/'Projects/LostCity-225-EngineTS/src/view/client.ejs'
  
 ====== Desktop Launcher ====== ====== Desktop Launcher ======
Line 167: Line 166:
  
 [Desktop Action Server] [Desktop Action Server]
-Exec='/bin/sh' -c "xfce4-terminal --minimize -T '2004Scape [Server]' -I ~/'Projects/LostCity-225-EngineTS/ext/favicon.ico' -e ~/'Projects/LostCity-225-EngineTS/scripts/localhost-server-start.sh'"+Exec='/bin/sh' -c "xfce4-terminal --minimize -T '2004Scape [Server]' -I ~/'Projects/LostCity-225-EngineTS/ext/favicon.ico' --working-directory='/tmp' -e ~/'Projects/LostCity-225-EngineTS/scripts/localhost-server-start.sh'"
 Name=Server - Start Name=Server - Start
  
Line 195: Line 194:
  
   * :?: 2026/03/04: ''webkit2-gtk_40'', ''webkit2-gtk_41'', ''webkit2-gtk_60'', and ''surf'' all froze during loading resources/before log-in   * :?: 2026/03/04: ''webkit2-gtk_40'', ''webkit2-gtk_41'', ''webkit2-gtk_60'', and ''surf'' all froze during loading resources/before log-in
 +  * 2026/06/28: WebProcess crashed instantly ''webkitgtk-6.0'' and ''webkit2gtk-4.1''
  
 <code> <code>
Line 202: Line 202:
 foliate: 3.3.0_1 foliate: 3.3.0_1
  webkit2-gtk_60  webkit2-gtk_60
 +
 +ls '/usr/local/libexec/webkit'*'/MiniBrowser'
  
 WEBKIT_DISABLE_COMPOSITING_MODE='1' '/usr/local/libexec/webkitgtk-6.0/MiniBrowser' --dark-mode --autoplay-policy 'allow' --private --features='-PreferPageRenderingUpdatesNear60FPS' 'http://localhost:8888/rs2.cgi' WEBKIT_DISABLE_COMPOSITING_MODE='1' '/usr/local/libexec/webkitgtk-6.0/MiniBrowser' --dark-mode --autoplay-policy 'allow' --private --features='-PreferPageRenderingUpdatesNear60FPS' 'http://localhost:8888/rs2.cgi'
/srv/www/wiki/data/attic/games/bsd/2004scape_localhost.1780001582.txt.gz · Last modified: by Sean Rhone