Both sides previous revisionPrevious revisionNext revision | Previous revision |
games:bsd:rt4_client_runescape_530 [2025/05/23 18:01] – [Quick Commands] Sean Rhone | games:bsd:rt4_client_runescape_530 [2025/08/25 04:39] (current) – [2009Scape (localhost)] Sean Rhone |
---|
===== Prerequisites ===== | ===== Prerequisites ===== |
| |
* [[bsd:freebsd_14.2_xfce|FreeBSD 14.2 (Xfce)]] | * [[bsd:freebsd_14.3_xfce|FreeBSD 14.3 (Xfce)]] |
| |
===== 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' |
===== 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='148' -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> |
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-Backup;Server-Update;Client-Update;Saves-Folder;Updates-Check;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=Start Server | Name=Server - Start |
| |
[Desktop Action Saves-Backup] | [Desktop Action Saves] |
Exec='/bin/sh' -c "~/'Projects/2009Scape-Server/scripts/localhost-save-backup.sh'" | Exec='/bin/sh' -c "~/'Projects/2009Scape-Server/scripts/localhost-save-backup.sh'" |
Name=Save Data Back-up | Name=Save Data Back-up |
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 Saves-Folder] | |
StartupNotify=false | |
Exec='/bin/sh' -c "gio open ~/'Projects/2009Scape-Server/src/Server/data/players'" | |
Name=Open Saves Folder | |
| |
[Desktop Action Updates-Check] | |
StartupNotify=false | |
Exec='/bin/sh' -c "gio open 'https://gitlab.com/2009scape/2009scape/-/commits/master?ref_type=heads' 'https://gitlab.com/2009scape/rt4-client/-/commits/master?ref_type=heads'" | |
Name=Commits Check | |
| |
[Desktop Action Notes] | [Desktop Action Notes] |
StartupNotify=false | StartupNotify=false |
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'" | 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=Install Notes | Name=Install Notes</code> |
| |
# End</code> | |
| |
====== Quick Commands ====== | |
| |
* :!: 2025/05/23: All TODO | |
| |
===== 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' | |
| |
===== 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 | |
| |
===== File Manager ===== | |
| |
==== Root ==== | |
| |
**** | |
| |
gio open ~/'Projects/RT4-Client/src' | |
| |