Both sides previous revisionPrevious revisionNext revision | Previous revision |
games:bsd:rt4_client_runescape_530 [2025/05/23 16:35] – [Client Start] Sean Rhone | games:bsd:rt4_client_runescape_530 [2025/08/25 04:39] (current) – [2009Scape (localhost)] Sean Rhone |
---|
| |
* [[bsd:freebsd_14.3_xfce|FreeBSD 14.3 (Xfce)]] | * [[bsd:freebsd_14.3_xfce|FreeBSD 14.3 (Xfce)]] |
| |
===== Resources ===== | |
| |
* [[https://cdn.2009scape.org/wiki/quest_guides/quest_guides|Quest Guides]] | |
* [[https://cdn.2009scape.org/wiki/quest_guides/quest_experience_by_skill|Quest Experience by Skill]] | |
| |
===== Notes ===== | ===== Notes ===== |
su - | su - |
| |
pkg install git-lite jogamp-jogl openjdk8 | pkg install git jogamp-jogl openjdk8 |
| |
====== Download Source ====== | ====== Download Source ====== |
===== Settings ===== | ===== Settings ===== |
| |
sed -i -e 's/USE_TWEENING = true/USE_TWEENING = false/g' ~/'Projects/RT4-Client/src/client/src/main/java/rt4/GlobalConfig.java' | sed -i -e 's/USE_TWEENING = true/USE_TWEENING = false/g' ~/'Projects/RT4-Client/src/client/src/main/java/rt4/GlobalConfig.java' && sed -i -e 's/BILINEAR_MINIMAP = true/BILINEAR_MINIMAP = false/g' ~/'Projects/RT4-Client/src/client/src/main/java/rt4/GlobalConfig.java' && sed -i -e 's/USE_SHIFT_CLICK = true/USE_SHIFT_CLICK = false/g' ~/'Projects/RT4-Client/src/client/src/main/java/rt4/GlobalConfig.java' && sed -i -e 's/MOUSEWHEEL_ZOOM = true/MOUSEWHEEL_ZOOM = false/g' ~/'Projects/RT4-Client/src/client/src/main/java/rt4/GlobalConfig.java' |
| |
sed -i -e 's/BILINEAR_MINIMAP = true/BILINEAR_MINIMAP = false/g' ~/'Projects/RT4-Client/src/client/src/main/java/rt4/GlobalConfig.java' | |
| |
sed -i -e 's/USE_SHIFT_CLICK = true/USE_SHIFT_CLICK = false/g' ~/'Projects/RT4-Client/src/client/src/main/java/rt4/GlobalConfig.java' | |
| |
sed -i -e 's/MOUSEWHEEL_ZOOM = true/MOUSEWHEEL_ZOOM = 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 'public static boolean' | cat ~/'Projects/RT4-Client/src/client/src/main/java/rt4/GlobalConfig.java' | grep 'public static boolean' |
| |
mousepad ~/'Projects/RT4-Client/src/client/src/main/java/rt4/GlobalConfig.java' | |
| |
===== Build ===== | ===== Build ===== |
===== localhost ===== | ===== localhost ===== |
| |
* [[servers:bsd:games:2009scape_localhost|2009Scape localhost Server]] | * Last commit: [[https://gitlab.com/2009scape/rt4-client/-/commit/4377d4958e1ccc9b97c6c99b9e2a9df8dfbae5e5|September 25, 2022]] ''4377d495'' |
| * [[https://gitlab.com/2009scape/rt4-client/-/commits/master/client/config.json?ref_type=heads|New commits check]] |
| * [[https://gitlab.com/2009scape/rt4-client/-/blob/master/client/config.json?ref_type=heads|Upstream client/config.json]] ([[https://gitlab.com/2009scape/rt4-client/-/raw/master/client/config.json?ref_type=heads|raw]]) |
| |
mkdir -p ~/'Projects/RT4-Client/conf' && ee ~/'Projects/RT4-Client/conf/localhost.json' | mkdir -p ~/'Projects/RT4-Client/conf' && ee ~/'Projects/RT4-Client/conf/localhost.json' |
| |
export JAVA_HOME='/usr/local/openjdk8' | export JAVA_HOME='/usr/local/openjdk8' |
export _JAVA_OPTIONS="-Djogamp.gluegen.UseTempJarCache='false' -Djava.io.tmpdir='$HOME/Projects/RT4-Client/cache/' -DclientHomeOverride='$HOME/Projects/RT4-Client/cache/' -Djogl.disable.opengles='true'" | export _JAVA_OPTIONS="-Djava.net.preferIPv6Addresses=false -Djogamp.gluegen.UseTempJarCache='false' -Djava.io.tmpdir='$HOME/Projects/RT4-Client/cache/' -DclientHomeOverride='$HOME/Projects/RT4-Client/cache/' -Djogl.disable.opengles='true' -XX:+UseSerialGC -Xms1G -Xmx4G" |
export vblank_mode='3' | export vblank_mode='3' |
| |
java -DclientFps='140' -jar ~/'Projects/RT4-Client/src/client/build/libs/client-'*'.jar' --config ~/'Projects/RT4-Client/conf/localhost.json' | java -DclientFps='120' -jar ~/'Projects/RT4-Client/src/client/build/libs/client-'*'.jar' --config ~/'Projects/RT4-Client/conf/localhost.json' |
| |
# End</code> | # End</code> |
| |
| ~/'Projects/RT4-Client/scripts/client-start.sh' |
| |
===== Client Update ===== | ===== Client Update ===== |
| |
* https://gitlab.com/2009scape/rt4-client/-/commits/master?ref_type=heads | * https://gitlab.com/2009scape/rt4-client/-/commits/master?ref_type=heads |
* [[#scape_localhost|Desktop Action Client-Update]] | |
| |
mkdir -p ~/'Projects/RT4-Client/scripts' && ee ~/'Projects/RT4-Client/scripts/client-update.sh' && chmod +x ~/'Projects/RT4-Client/scripts/client-update.sh' | mkdir -p ~/'Projects/RT4-Client/scripts' && ee ~/'Projects/RT4-Client/scripts/client-update.sh' && chmod +x ~/'Projects/RT4-Client/scripts/client-update.sh' |
| |
===== 2009Scape (localhost) ===== | ===== 2009Scape (localhost) ===== |
| |
* TODO: More stuff from [[games:bsd:2004scape_localhost#scape|2004Scape]] and separate client launch script | |
* And Fedora cache flags | |
| |
mkdir -p ~/'.local/share/applications' && ee ~/'.local/share/applications/2009Scape-localhost.desktop' && sed -i -e 's/'CHANGEME'/'$USER'/g' ~/'.local/share/applications/2009Scape-localhost.desktop' && update-desktop-database --quiet ~/'.local/share/applications' | mkdir -p ~/'.local/share/applications' && ee ~/'.local/share/applications/2009Scape-localhost.desktop' && sed -i -e 's/'CHANGEME'/'$USER'/g' ~/'.local/share/applications/2009Scape-localhost.desktop' && update-desktop-database --quiet ~/'.local/share/applications' |
Name=2009Scape | Name=2009Scape |
Categories=Game; | Categories=Game; |
Exec='/bin/sh' -c "cd ~/'Projects/RT4-Client/src/client' && mesa_glthread='false' vblank_mode='3' JAVA_HOME='/usr/local/openjdk8' java -XX:+UseSerialGC -Xms1G -Xmx4G -Djogamp.gluegen.UseTempJarCache='false' -jar ~/'Projects/RT4-Client/src/client/build/libs/client-'*'.jar' --config ~/'Projects/RT4-Client/conf/localhost.json'" | Exec='/bin/sh' -c "~/'Projects/RT4-Client/scripts/client-start.sh'" |
Type=Application | Type=Application |
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;Server-Notes;Client-Notes; | Actions=Server;Saves;Server-Update;Client-Update;Notes; |
| |
[Desktop Action Server] | [Desktop Action Server] |
Exec='/bin/sh' -c "xfce4-terminal -T '2009Scape - Server' -I ~/'Projects/RT4-Client/src/client/src/main/resources/saradomin.png' -e ~/'Projects/2009Scape-Server/scripts/localhost-server-start.sh'" | Exec='/bin/sh' -c "xfce4-terminal -T '2009Scape - Server' -I ~/'Projects/RT4-Client/src/client/src/main/resources/saradomin.png' -e ~/'Projects/2009Scape-Server/scripts/localhost-server-start.sh'" |
Name=Server Start | Name=Server - Start |
| |
[Desktop Action Saves] | [Desktop Action Saves] |
[Desktop Action Server-Update] | [Desktop Action Server-Update] |
Exec='/bin/sh' -c "xfce4-terminal -T '2009Scape Updater' -I ~/'Projects/RT4-Client/src/client/src/main/resources/saradomin.png' -e ~/'Projects/2009Scape-Server/scripts/localhost-server-update.sh'" | Exec='/bin/sh' -c "xfce4-terminal -T '2009Scape Updater' -I ~/'Projects/RT4-Client/src/client/src/main/resources/saradomin.png' -e ~/'Projects/2009Scape-Server/scripts/localhost-server-update.sh'" |
Name=Server - Update | Name=Server Update |
| |
[Desktop Action Client-Update] | [Desktop Action Client-Update] |
Exec='/bin/sh' -c "xfce4-terminal -T 'RT4 Client Updater' -I ~/'Projects/RT4-Client/src/client/src/main/resources/saradomin.png' -e ~/'Projects/RT4-Client/scripts/client-update.sh'" | Exec='/bin/sh' -c "xfce4-terminal -T 'RT4 Client Updater' -I ~/'Projects/RT4-Client/src/client/src/main/resources/saradomin.png' -e ~/'Projects/RT4-Client/scripts/client-update.sh'" |
Name=Client - Update | Name=Client Update |
| |
[Desktop Action Server-Notes] | [Desktop Action Notes] |
StartupNotify=false | StartupNotify=false |
Exec='/bin/sh' -c "gio open 'https://wiki.realmofespionage.xyz/servers:bsd:games:2009scape_localhost'" | Exec='/bin/sh' -c "gio open 'https://wiki.realmofespionage.xyz/servers:bsd:games:2009scape_localhost' 'https://wiki.realmofespionage.xyz/games:bsd:rt4_client_runescape_530'" |
Name=Server - Install Notes | Name=Install Notes</code> |
| |
[Desktop Action Client-Notes] | |
StartupNotify=false | |
Exec='/bin/sh' -c "gio open 'https://wiki.realmofespionage.xyz/games:bsd:rt4_client_runescape_530'" | |
Name=Client - Install Notes | |
| |
# End</code> | |
| |
====== Quick Commands ====== | |
| |
===== Execute ===== | |
| |
**** | |
| |
cd ~/'Projects/RT4-Client/src/client' && mesa_glthread='false' vblank_mode='3' JAVA_HOME='/usr/local/openjdk8' java -XX:+UseSerialGC -Xms1G -Xmx4G -Djogamp.gluegen.UseTempJarCache='false' -jar ~/'Projects/RT4-Client/src/client/build/libs/client-'*'.jar' --config ~/'Projects/RT4-Client/conf/localhost.json' | |
| |
==== Testing ==== | |
| |
**** | |
| |
GALLIUM_HUD='cpu0+cpu1+cpu2+cpu3;cpu4+cpu5+cpu6+cpu7;API-thread-offloaded-slots+API-thread-direct-slots+API-thread-num-syncs;fps' MESA_NO_ERROR='1' mesa_glthread='true' vblank_mode='0' | |
| |
===== Update ===== | |
| |
* 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' && JAVA_HOME='/usr/local/openjdk8' ~/'Projects/RT4-Client/src/gradlew' 'clean' --no-daemon && JAVA_HOME='/usr/local/openjdk8' ~/'Projects/RT4-Client/src/gradlew' 'jar' --no-daemon && cd ~ && sync | |
| |
~/'Projects/RT4-Client/scripts/client-update.sh' | |
| |
xfce4-terminal -T 'RT4 Client — Updater' -I ~/'Projects/RT4-Client/src/client/src/main/resources/saradomin.png' -e ~/'Projects/RT4-Client/scripts/client-update.sh' | |
| |
===== gradlew ===== | |
| |
* ''tasks'' lists available ''gradlew'' commands | |
* ''tasks --all'' shows more options | |
| |
cd ~/'Projects/RT4-Client/src' && JAVA_HOME='/usr/local/openjdk8' ~/'Projects/RT4-Client/src/gradlew' 'tasks' --no-daemon | |
| |
~/'Projects/RT4-Client/src/gradlew' --stop | |
| |
===== File Manager ===== | |
| |
==== Root ==== | |
| |
**** | |
| |
gio open ~/'Projects/RT4-Client/src' | |
| |