User Tools

Site Tools


games:linux:rt4_client_runescape_530

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:rt4_client_runescape_530 [2024/11/02 06:18] – [Dependencies] Sean Rhonegames:linux:rt4_client_runescape_530 [2025/01/12 22:56] (current) – [Information] Sean Rhone
Line 3: Line 3:
   * RT4 Client ((https://gitlab.com/2009scape/rt4-client))   * RT4 Client ((https://gitlab.com/2009scape/rt4-client))
   * ''master'' Branch ((https://gitlab.com/2009scape/rt4-client/-/tree/master?ref_type=heads))   * ''master'' Branch ((https://gitlab.com/2009scape/rt4-client/-/tree/master?ref_type=heads))
 +
 +  * These notes provide a game client for 2009Scape on Linux
 +
 +===== Media =====
 +
 +  * [[https://www.facebook.com/photo?fbid=1135258384635048&set=pcb.1135258514635035|Launcher Right-click Screenshot]]
  
 ===== Prerequisites ===== ===== Prerequisites =====
Line 11: Line 17:
  
   * :!: This is for private server use   * :!: This is for private server use
-  * See [[servers:linux:games:2009scape_localhost|2009Scape localhost Server]] to set-up a local server+  * See [[servers:linux:games:2009scape_localhost|2009Scape localhost Server]] to set-up a server
  
 ====== Dependencies ====== ====== Dependencies ======
  
   * https://gitlab.com/2009scape/rt4-client#instructions   * https://gitlab.com/2009scape/rt4-client#instructions
-  * Builds with Java 17 but uses system-wide for running Client ((2024/11/02: F41 is OpenJDK 21 and default-installs non-GUI ''headless'')) ((2024/11/02: 2009Scape's RT4-Client [[https://gitlab.com/2009scape/rt4-client/-/blob/master/gradle/wrapper/gradle-wrapper.properties?ref_type=heads#L3|forces Gradle 7.4.2]] which only supports up to Java 17; [[games:linux:rt4_client_runescape_530?rev=1730467025|Pazaz's older RT4-Client]] builds fine on Java 23)) 
  
-  sudo dnf install git-core java-17-openjdk-headless java-openjdk+  sudo dnf install git java-openjdk --setopt='adoptium-temurin-java-repository.enabled=0' --exclude='temurin*'
  
 ====== Download Source ====== ====== Download Source ======
  
-****+  https://gitlab.com/2009scape/rt4-client/-/commits/master?ref_type=heads
  
   cd ~ && mkdir -p ~/'Projects' && rm -Rf ~/'Projects/RT4-Client/src' && git clone --branch 'master' --depth '1' --recurse-submodules 'https://gitlab.com/2009scape/rt4-client.git' ~/'Projects/RT4-Client/src' && sync   cd ~ && mkdir -p ~/'Projects' && rm -Rf ~/'Projects/RT4-Client/src' && git clone --branch 'master' --depth '1' --recurse-submodules 'https://gitlab.com/2009scape/rt4-client.git' ~/'Projects/RT4-Client/src' && sync
  
 ====== Build ====== ====== Build ======
 +
 +===== Settings =====
 +
 +==== Disable Tweening ====
 +
 +  sed -i 's/USE_TWEENING = true/USE_TWEENING = false/g' ~/'Projects/RT4-Client/src/client/src/main/java/rt4/GlobalConfig.java'
 +
 +  cat ~/'Projects/RT4-Client/src/client/src/main/java/rt4/GlobalConfig.java' | grep 'USE_TWEENING'
 +
 +===== Build =====
  
 **** ****
  
-  cd ~/'Projects/RT4-Client/src' && JAVA_HOME='/usr/lib/jvm/jre-17-openjdk' ~/'Projects/RT4-Client/src/gradlew' 'clean' && JAVA_HOME='/usr/lib/jvm/jre-17-openjdk' ~/'Projects/RT4-Client/src/gradlew' 'jar' && ~/'Projects/RT4-Client/src/gradlew' --stop+  cd ~/'Projects/RT4-Client/src' && ~/'Projects/RT4-Client/src/gradlew' 'clean' --no-daemon && ~/'Projects/RT4-Client/src/gradlew' 'jar' --no-daemon
  
 ====== Settings ====== ====== Settings ======
Line 57: Line 72:
 ===== Client Update ===== ===== Client Update =====
  
-  * [[https://gitlab.com/2009scape/rt4-client/-/commits/master|Commits History]] +  * https://gitlab.com/2009scape/rt4-client/-/commits/master?ref_type=heads
-  * [[#scape_localhost|Desktop Action Client-Update]]+
  
   mkdir -p ~/'Projects/RT4-Client/scripts' && nano ~/'Projects/RT4-Client/scripts/client-update.sh' && chmod +x ~/'Projects/RT4-Client/scripts/client-update.sh'   mkdir -p ~/'Projects/RT4-Client/scripts' && nano ~/'Projects/RT4-Client/scripts/client-update.sh' && chmod +x ~/'Projects/RT4-Client/scripts/client-update.sh'
Line 67: Line 81:
 git -C ~/'Projects/RT4-Client/src' reset --hard git -C ~/'Projects/RT4-Client/src' reset --hard
 git -C ~/'Projects/RT4-Client/src' pull origin 'master' --rebase git -C ~/'Projects/RT4-Client/src' pull origin 'master' --rebase
 +
 +sed -i 's/USE_TWEENING = true/USE_TWEENING = false/g' ~/'Projects/RT4-Client/src/client/src/main/java/rt4/GlobalConfig.java'
  
 cd ~/'Projects/RT4-Client/src' cd ~/'Projects/RT4-Client/src'
-JAVA_HOME='/usr/lib/jvm/jre-17-openjdk' ~/'Projects/RT4-Client/src/gradlew' 'clean' +~/'Projects/RT4-Client/src/gradlew' 'clean' --no-daemon 
-JAVA_HOME='/usr/lib/jvm/jre-17-openjdk' ~/'Projects/RT4-Client/src/gradlew' 'jar' +~/'Projects/RT4-Client/src/gradlew' 'jar' --no-daemon
-~/'Projects/RT4-Client/src/gradlew' --stop+
  
-echo '+notify-send -i ~/'Projects/RT4-Client/src/client/src/main/resources/saradomin.png' '2009Scape RT4 Client update complete'
-read -'1-s -r -p 'Done! Press any key to exit.'+
  
 # End</code> # End</code>
Line 84: Line 98:
 ===== 2009Scape (localhost) ===== ===== 2009Scape (localhost) =====
  
-  * Mostly requires [[servers:linux:games:2009scape_localhost#scripts|2009Scape localhost Server scripts]] +  mkdir -p ~/'.local/share/applications/' ~/'Projects/RT4-Client/cache' && nano ~/'.local/share/applications/2009Scape-localhost.desktop' && sed -i 's/'CHANGEME'/'$USER'/g' ~/'.local/share/applications/2009Scape-localhost.desktop' && update-desktop-database --quiet ~/'.local/share/applications'
- +
-  mkdir -p ~/'.local/share/applications/' && nano ~/'.local/share/applications/2009Scape-localhost.desktop' && update-desktop-database --quiet ~/'.local/share/applications'+
  
 <code> <code>
Line 92: Line 104:
 Name=2009Scape Name=2009Scape
 Categories=Game; Categories=Game;
-Exec='/bin/bash' -c "cd ~/'Projects/RT4-Client/src/client' && JAVA_TOOL_OPTIONS='-XX:+UseSerialGC -Xms1G -Xmx4G --add-exports=java.desktop/sun.awt=ALL-UNNAMED' java -jar ~/'Projects/RT4-Client/src/client/build/libs/client-'*'.jar' --config ~/'Projects/RT4-Client/conf/localhost.json'"+Exec='/bin/bash' -c "cd ~/'Projects/RT4-Client/src/client' && mesa_glthread='false' vblank_mode='3' java -Dsun.java2d.uiScale='1' -XX:+UseSerialGC -Xms1G -Xmx4G --add-exports='java.desktop/sun.awt=ALL-UNNAMED' -DclientFps='120' -DclientHomeOverride=$HOME'/Projects/RT4-Client/cache/' -Djava.io.tmpdir=$HOME'/Projects/RT4-Client/cache/' -jar ~/'Projects/RT4-Client/src/client/build/libs/client-'*'.jar' --config ~/'Projects/RT4-Client/conf/localhost.json'"
 Type=Application Type=Application
 StartupNotify=false StartupNotify=false
-#Icon=TODO +Icon=/home/CHANGEME/Projects/RT4-Client/src/client/src/main/resources/saradomin.png 
-Actions=Client-Update;Server-Update;Server;Saves;Client-Notes;Server-Notes;+Actions=HiDPI;Server;Saves;Server-Update;Client-Update;Client-Notes;Server-Notes;
  
-[Desktop Action Client-Update+[Desktop Action HiDPI
-Exec='/bin/bash' -c "ptyxis --standalone --title='RT4 Client Updater — ' -- ~/'Projects/RT4-Client/scripts/client-update.sh'" +Exec='/bin/bash' -c "cd ~/'Projects/RT4-Client/src/client' && mesa_glthread='false' vblank_mode='3' java -Dsun.java2d.uiScale='2' -XX:+UseSerialGC -Xms1G -Xmx4G --add-exports='java.desktop/sun.awt=ALL-UNNAMED' -DclientFps='120' -DclientHomeOverride=$HOME'/Projects/RT4-Client/cache/-Djava.io.tmpdir=$HOME'/Projects/RT4-Client/cache/' -jar ~/'Projects/RT4-Client/src/client/build/libs/client-'*'.jar' --config ~/'Projects/RT4-Client/conf/localhost.json'" 
-Name=Update Client +Name=Client (HiDPI)
- +
-[Desktop Action Server-Update] +
-Exec='/bin/bash' -c "ptyxis --standalone --title='2009Scape localhost Updater — ' -- ~/'Projects/2009Scape-Server/scripts/localhost-server-update.sh'" +
-Name=Update Local Server+
  
 [Desktop Action Server] [Desktop Action Server]
-Exec='/bin/bash' -c "ptyxis --standalone --title='2009Scape localhost Server — ' -- ~/'Projects/2009Scape-Server/scripts/localhost-server-start.sh'"+Exec='/bin/bash' -c "ptyxis --standalone --title='2009Scape Server — ' -- ~/'Projects/2009Scape-Server/scripts/localhost-server-start.sh'"
 Name=Launch Local Server Name=Launch Local Server
  
Line 113: Line 121:
 Exec='/bin/bash' -c "~/'Projects/2009Scape-Server/scripts/localhost-save-backup.sh'" Exec='/bin/bash' -c "~/'Projects/2009Scape-Server/scripts/localhost-save-backup.sh'"
 Name=Save Data Back-up Name=Save Data Back-up
 +
 +[Desktop Action Server-Update]
 +Exec='/bin/bash' -c "ptyxis --standalone --title='2009Scape Server Updater — ' -- ~/'Projects/2009Scape-Server/scripts/localhost-server-update.sh'"
 +Name=Update Local Server
 +
 +[Desktop Action Client-Update]
 +Exec='/bin/bash' -c "ptyxis --standalone --title='2009Scape RT4 Client Updater — ' -- ~/'Projects/RT4-Client/scripts/client-update.sh'"
 +Name=Update Client
  
 [Desktop Action Client-Notes] [Desktop Action Client-Notes]
 StartupNotify=false StartupNotify=false
 Exec='/bin/bash' -c "gio open 'https://wiki.realmofespionage.xyz/games:linux:rt4_client_runescape_530'" Exec='/bin/bash' -c "gio open 'https://wiki.realmofespionage.xyz/games:linux:rt4_client_runescape_530'"
-Name=Client Installation Notes+Name=Client Notes
  
 [Desktop Action Server-Notes] [Desktop Action Server-Notes]
 StartupNotify=false StartupNotify=false
 Exec='/bin/bash' -c "gio open 'https://wiki.realmofespionage.xyz/servers:linux:games:2009scape_localhost'" Exec='/bin/bash' -c "gio open 'https://wiki.realmofespionage.xyz/servers:linux:games:2009scape_localhost'"
-Name=localhost Server Installation Notes+Name=Server Notes
  
 # End</code> # End</code>
Line 132: Line 148:
 **** ****
  
-  cd ~/'Projects/RT4-Client/src/client' && java -jar ~/'Projects/RT4-Client/src/client/build/libs/client-'*'.jar' --config ~/'Projects/RT4-Client/conf/localhost.json'+  mkdir -p ~/'Projects/RT4-Client/cache' && cd ~/'Projects/RT4-Client/src/client' && mesa_glthread='false' vblank_mode='3' java -Dsun.java2d.uiScale='1' -XX:+UseSerialGC -Xms1G -Xmx4G --add-exports='java.desktop/sun.awt=ALL-UNNAMED' -DclientFps='120' -DclientHomeOverride=$HOME'/Projects/RT4-Client/cache/' -Djava.io.tmpdir=$HOME'/Projects/RT4-Client/cache/' -jar ~/'Projects/RT4-Client/src/client/build/libs/client-'*'.jar' --config ~/'Projects/RT4-Client/conf/localhost.json' 
 + 
 +==== High DPI ==== 
 + 
 +  * ''-Dsun.java2d.uiScale=2'' 
 + 
 +  mkdir -p ~/'Projects/RT4-Client/cache' && cd ~/'Projects/RT4-Client/src/client' && mesa_glthread='false' vblank_mode='3' java -Dsun.java2d.uiScale='2' -XX:+UseSerialGC -Xms1G -Xmx4G --add-exports='java.desktop/sun.awt=ALL-UNNAMED' -DclientFps='120' -DclientHomeOverride=$HOME'/Projects/RT4-Client/cache/' -Djava.io.tmpdir=$HOME'/Projects/RT4-Client/cache/' -jar ~/'Projects/RT4-Client/src/client/build/libs/client-'*'.jar' --config ~/'Projects/RT4-Client/conf/localhost.json'
  
 ==== Testing ==== ==== Testing ====
  
-  GDK_BACKEND='x11' GDK_SCALE='2'+<code>GDK_BACKEND='x11' GDK_SCALE='2'</code>
  
-  GALLIUM_HUD='cpu0+cpu1+cpu2+cpu3;API-thread-offloaded-slots+API-thread-direct-slots+API-thread-num-syncs;fps' mesa_glthread='true'+<code>GALLIUM_HUD='cpu0+cpu1+cpu2+cpu3;API-thread-offloaded-slots+API-thread-direct-slots+API-thread-num-syncs;fps'</code>
  
-  cd ~/'Projects/RT4-Client/src/client' && JAVA_TOOL_OPTIONS='-XX:+UseSerialGC -Xms1G -Xmx4G --add-exports=java.desktop/sun.awt=ALL-UNNAMED' java -jar ~/'Projects/RT4-Client/src/client/build/libs/client-'*'.jar' --config ~/'Projects/RT4-Client/conf/localhost.json'+<code>mesa_glthread='true'</code> 
 + 
 +<code>vblank_mode='0'</code> 
 + 
 +<code>-DclientFps='999'</code> 
 + 
 +=== FPS === 
 + 
 +  * Uncapped/''999'' FPS limit 
 +  * ''vblank_mode=0'' 
 +  * ''GDK_BACKEND=x11'' 
 + 
 +  mkdir -p ~/'Projects/RT4-Client/cache' && cd ~/'Projects/RT4-Client/src/client' && GDK_BACKEND='x11' GALLIUM_HUD='cpu0+cpu1+cpu2+cpu3;API-thread-offloaded-slots+API-thread-direct-slots+API-thread-num-syncs;fps' mesa_glthread='false' vblank_mode='0' java -Dsun.java2d.uiScale='1' -XX:+UseSerialGC -Xms1G -Xmx4G --add-exports='java.desktop/sun.awt=ALL-UNNAMED' -DclientFps='999' -DclientHomeOverride=$HOME'/Projects/RT4-Client/cache/' -Djava.io.tmpdir=$HOME'/Projects/RT4-Client/cache/' -jar ~/'Projects/RT4-Client/src/client/build/libs/client-'*'.jar' --config ~/'Projects/RT4-Client/conf/localhost.json'
  
 ===== Update ===== ===== Update =====
  
-  * [[https://gitlab.com/2009scape/rt4-client/-/commits/master|Commits History]]+  * https://gitlab.com/2009scape/rt4-client/-/commits/master?ref_type=heads
  
-  git -C ~/'Projects/RT4-Client/src' reset --hard && git -C ~/'Projects/RT4-Client/src' pull origin 'master' --rebase && cd ~/'Projects/RT4-Client/src' && ~/'Projects/RT4-Client/src/gradlew' 'clean' && ~/'Projects/RT4-Client/src/gradlew' 'jar' && ~/'Projects/RT4-Client/src/gradlew' --stop && cd ~ && sync+  git -C ~/'Projects/RT4-Client/src' reset --hard && git -C ~/'Projects/RT4-Client/src' pull origin 'master' --rebase && cd ~/'Projects/RT4-Client/src' && sed -i 's/USE_TWEENING = true/USE_TWEENING = false/g' ~/'Projects/RT4-Client/src/client/src/main/java/rt4/GlobalConfig.java&& cd ~/'Projects/RT4-Client/src' && ~/'Projects/RT4-Client/src/gradlew' 'clean--no-daemon && ~/'Projects/RT4-Client/src/gradlew' 'jar' --no-daemon && cd ~ && sync
  
   ~/'Projects/RT4-Client/scripts/client-update.sh'   ~/'Projects/RT4-Client/scripts/client-update.sh'
  
-  ptyxis --standalone --title='RT4 Client Updater — ' -- ~/'Projects/RT4-Client/scripts/client-update.sh'+  ptyxis --standalone --title='2009Scape RT4 Client Updater — ' -- ~/'Projects/RT4-Client/scripts/client-update.sh'
  
 ===== gradlew ===== ===== gradlew =====
  
   * Lists available ''gradlew'' commands   * Lists available ''gradlew'' commands
 +  * List more tasks with ''tasks --all''
  
-  cd ~/'Projects/RT4-Client/src' && JAVA_HOME='/usr/lib/jvm/jre-17-openjdk' ~/'Projects/RT4-Client/src/gradlew' 'tasks' && ~/'Projects/RT4-Client/src/gradlew' --stop +  cd ~/'Projects/RT4-Client/src' && JAVA_HOME='/usr/lib/jvm/jre-openjdk' ~/'Projects/RT4-Client/src/gradlew' 'tasks' --no-daemon
- +
-  cd ~/'Projects/RT4-Client/src' && JAVA_HOME='/usr/lib/jvm/jre-17-openjdk' ~/'Projects/RT4-Client/src/gradlew' 'tasks' --all && ~/'Projects/RT4-Client/src/gradlew' --stop+
  
 ===== File Manager ===== ===== File Manager =====
C:/www/wiki/data/attic/games/linux/rt4_client_runescape_530.1730542708.txt.gz · Last modified: by Sean Rhone