| Both sides previous revisionPrevious revisionNext revision | Previous revision |
| games:bsd:rt4_client_runescape_530 [2025/11/03 10:57] – Remove HiDPI (slow on Intel DDX) Sean Rhone | games:bsd:rt4_client_runescape_530 [2025/12/05 21:52] (current) – [Dependencies] Sean Rhone |
|---|
| |
| * https://gitlab.com/2009scape/rt4-client#instructions | * https://gitlab.com/2009scape/rt4-client#instructions |
| | * :?: ''jogl'' was removed and eventually re-added for ''15.0'' (([[games;bsd;rt4_client_runescape_530?rev=1757587392|older rev]] has notes for HD)) |
| |
| su - | su - |
| |
| pkg install git openjdk17 openjdk25 wmctrl-fork | pkg install git openjdk17 openjdk25 alsa-plugins wmctrl-fork |
| |
| ====== Download Source ====== | ====== Download Source ====== |
| |
| export JAVA_HOME='/usr/local/openjdk25' | export JAVA_HOME='/usr/local/openjdk25' |
| export _JAVA_OPTIONS="-Dsun.java2d.uiScale='1' --enable-native-access='ALL-UNNAMED' -Djava.net.preferIPv6Addresses='false' -Djava.io.tmpdir='$HOME/Projects/RT4-Client/cache/' -DclientHomeOverride='$HOME/Projects/RT4-Client/cache/' -Djogamp.gluegen.UseTempJarCache='false' -Djogl.disable.opengles='true'" | export _JAVA_OPTIONS="-Dsun.java2d.uiScale='1' --enable-native-access='ALL-UNNAMED' -Djava.net.preferIPv6Addresses='false' -Djava.io.tmpdir='$HOME/Projects/RT4-Client/cache/' -DclientHomeOverride='$HOME/Projects/RT4-Client/cache/' -Djogamp.gluegen.UseTempJarCache='false' -Djogl.disable.opengles='true' -Dsun.java2d.opengl='true'" |
| |
| java -DclientFps='60' -jar ~/'Projects/RT4-Client/src/client/build/libs/client-'*'.jar' --config ~/'Projects/RT4-Client/conf/localhost.json' | java -DclientFps='60' -jar ~/'Projects/RT4-Client/src/client/build/libs/client-'*'.jar' --config ~/'Projects/RT4-Client/conf/localhost.json' |
| |
| ~/'Projects/RT4-Client/scripts/client-start.sh' | ~/'Projects/RT4-Client/scripts/client-start.sh' |
| | |
| | ===== HiDPI ===== |
| | |
| | mkdir -p ~/'Projects/RT4-Client/scripts' ~/'Projects/RT4-Client/cache' && ee ~/'Projects/RT4-Client/scripts/client-hidpi-start.sh' && chmod +x ~/'Projects/RT4-Client/scripts/client-hidpi-start.sh' |
| | |
| | <code> |
| | #!/bin/sh |
| | |
| | cd ~/'Projects/RT4-Client/src/client' |
| | |
| | export JAVA_HOME='/usr/local/openjdk25' |
| | export _JAVA_OPTIONS="-Dsun.java2d.uiScale='2' --enable-native-access='ALL-UNNAMED' -Djava.net.preferIPv6Addresses='false' -Djava.io.tmpdir='$HOME/Projects/RT4-Client/cache/' -DclientHomeOverride='$HOME/Projects/RT4-Client/cache/' -Djogamp.gluegen.UseTempJarCache='false' -Djogl.disable.opengles='true' -Dsun.java2d.opengl='true'" |
| | |
| | java -DclientFps='60' -jar ~/'Projects/RT4-Client/src/client/build/libs/client-'*'.jar' --config ~/'Projects/RT4-Client/conf/localhost.json' |
| | |
| | # End</code> |
| | |
| | ~/'Projects/RT4-Client/scripts/client-hidpi-start.sh' |
| |
| ===== Client Update ===== | ===== Client Update ===== |
| StartupNotify=false | StartupNotify=false |
| Icon=/home/CHANGEME/Projects/RT4-Client/src/client/src/main/resources/saradomin.png | Icon=/home/CHANGEME/Projects/RT4-Client/src/client/src/main/resources/saradomin.png |
| Actions=Server;Saves;Server-Update;Client-Update;Notes; | Actions=HiDPI;Server;Saves;Server-Update;Client-Update;Notes; |
| | |
| | [Desktop Action HiDPI] |
| | Exec='/bin/sh' -c "~/'Projects/RT4-Client/scripts/client-hidpi-start.sh'" |
| | Name=Launch in High-DPI |
| |
| [Desktop Action Server] | [Desktop Action Server] |
| wmctrl -r 'rt4-client.rt4-client' -x -e '0,1130,250,780,510' | wmctrl -r 'rt4-client.rt4-client' -x -e '0,1130,250,780,510' |
| |
| * Fullscreen | * HiDPI fullscreen |
| |
| wmctrl -r 'rt4-client.rt4-client' -x -b 'toggle,fullscreen' | wmctrl -r 'rt4-client.rt4-client' -x -b 'toggle,fullscreen' |
| |