User Tools

Site Tools


games:linux:rt4_client_runescape_530

This is an old revision of the document!


Information

  • RT4 client 1)
  • master Branch 2)

Prerequisites

Dependencies

sudo dnf install git-core java-latest-openjdk

Latest Java

  • java-latest-openjdk
sudo update-alternatives --config 'java'
ls -la '/etc/alternatives/java'
java --version

Download Source

cd ~ && mkdir -p ~/'Projects' && rm -Rf ~/'Projects/RT4-Client/src' && git clone --branch 'master' --depth '1' --recurse-submodules 'https://github.com/Pazaz/RT4-Client.git' ~/'Projects/RT4-Client/src' && sync

Build

cd ~/'Projects/RT4-Client/src' && ~/'Projects/RT4-Client/src/gradlew' 'clean' && ~/'Projects/RT4-Client/src/gradlew' 'jar' && ~/'Projects/RT4-Client/src/gradlew' --stop

Settings

nano ~/'Projects/RT4-Client/src/client/config.json'
    "ip_management": "localhost",
    "ip_address": "localhost",

Scripts

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'
#!/bin/bash

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

gio open 'https://wiki.realmofespionage.xyz/games:linux:rt4_client_runescape_530#settings'
nano ~/'Projects/RT4-Client/src/client/config.json'

echo ''
read -n '1' -s -r -p 'Done! Press any key to exit.'

# End

Desktop Launcher

2009Scape (localhost)

  • :!: WIP
mkdir -p ~/'.local/share/applications/' && 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'
[Desktop Entry]
Name=2009Scape (localhost)
Categories=Game;
Exec='/bin/bash' -c "cd ~/'Projects/RT4-Client/src/client' && GDK_BACKEND='x11' java -jar ~/'Projects/RT4-Client/src/client/build/libs/client-'*'.jar'"
Type=Application
StartupNotify=false
#Icon=/home/CHANGEME/Projects/2004Scape-Server/src/public/favicon.ico
Actions=Client-Update;Server-Update;Server;Saves;Client-Notes;Server-Notes;

[Desktop Action Client-Update]
Exec='/bin/bash' -c "ptyxis --standalone --title='RT4 Client Updater — ' -- ~/'Projects/RT4-Client/scripts/client-update.sh'"
Name=Update Client

[Desktop Action Server-Update]
Exec='/bin/bash' -c "ptyxis --standalone --title='RT4 Client Updater — ' -- ~/'Projects/RT4-Client/scripts/client-update.sh'"
Name=Update Client

[Desktop Action Server]
Exec='/bin/bash' -c "ptyxis --standalone --title='RT4 Client Updater — ' -- ~/'Projects/RT4-Client/scripts/client-update.sh'"
Name=Update Client

[Desktop Action Saves]
Exec='/bin/bash' -c "ptyxis --standalone --title='RT4 Client Updater — ' -- ~/'Projects/RT4-Client/scripts/client-update.sh'"
Name=Update Client

[Desktop Action Client-Notes]
StartupNotify=false
Exec='/bin/bash' -c "gio open 'https://wiki.realmofespionage.xyz/games:linux:rt4_client_runescape_530'"
Name=Client Installation Notes

[Desktop Action Server-Notes]
StartupNotify=false
Exec='/bin/bash' -c "gio open 'https://wiki.realmofespionage.xyz/servers:linux:games:2009scape_localhost'"
Name=localhost Server Installation Notes

# End

Quick Commands

Execute

cd ~/'Projects/RT4-Client/src/client' && java -jar ~/'Projects/RT4-Client/src/client/build/libs/client-'*'.jar' 
GDK_BACKEND='x11' GDK_SCALE='2'

Update

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
~/'Projects/RT4-Client/scripts/client-update.sh'
ptyxis --standalone --title='RT4 Client Updater — ' -- ~/'Projects/RT4-Client/scripts/client-update.sh'

localhost

nano ~/'Projects/RT4-Client/src/client/config.json'
    "ip_management": "localhost",
    "ip_address": "localhost",

gradlew

  • Lists available gradlew commands
cd ~/'Projects/RT4-Client/src' && ~/'Projects/RT4-Client/src/gradlew' 'tasks' && ~/'Projects/RT4-Client/src/gradlew' --stop
cd ~/'Projects/RT4-Client/src' && ~/'Projects/RT4-Client/src/gradlew' 'tasks' --all && ~/'Projects/RT4-Client/src/gradlew' --stop

File Manager

Root

gio open ~/'Projects/RT4-Client/src'
/var/www/wiki/data/attic/games/linux/rt4_client_runescape_530.1730467025.txt.gz · Last modified: by Sean Rhone