User Tools

Site Tools


games:runescape_java

Information

  • RuneScape 1)

Prerequisites

Notes

  • -Dsun.java2d.opengl=true enables Hardware-acceleration via OpenGL, but as of 2018/10/10, this is broken with Intel Graphics on multiple computers 2)
  • I use jagexappletviewer.jar from OldSchool.msi because it allows the copyright footer bar to be removed upon logging in 3) 4)

Install

Dependencies

  • p7zip-plugins is needed to extract jagexappletviewer.jar from OldSchool.msi later 5) 6)
sudo dnf install java-openjdk && sync

Set Default Java

sudo update-alternatives --config 'java'

RuneScape

rm -Rf ~/'runescape/main' '/tmp/runescape/main' && mkdir -p ~/'runescape/main' '/tmp/runescape/main' && wget -O '/tmp/runescape/main/RuneScape.msi' 'http://www.runescape.com/downloads/runescape.msi' && 7z e -o'/tmp/runescape/main/RuneScape-msi' -y '/tmp/runescape/main/RuneScape.msi' && 7z e -o'/tmp/runescape/main/rslauncher-cab' -y '/tmp/runescape/main/RuneScape-msi/rslauncher.cab' && cp '/tmp/runescape/main/rslauncher-cab/JagexAppletViewerJarFile'* ~/'runescape/main/jagexappletviewer.jar' && wget -O ~/'runescape/main/jagexappletviewer.png' 'https://lh3.googleusercontent.com/W3PNREQ09KbCj4yHUtkO7CxQ7NrfDzlYqAnOPb1ukqNvG2-wG-7kck_oGPewJ3zb7ICY' && rm -Rf '/tmp/runescape' && sync

WARNING

  • :!: Anything below this point is not adapted for the main RuneScape game, and will need slight modifications to work

Desktop Launcher

RuneScape

  • :!: The blank space between Categories and Type needs to have an Exec entry from here
mkdir -p ~/'.local/share/applications' && nano ~/'.local/share/applications/Old School RuneScape.desktop'
[Desktop Entry]
Name=Old School RuneScape
Comment=Relive the challenging levelling system and risk-it-all PvP of the biggest retro styled MMO. Play with millions of other players in this piece of online gaming heritage where the community controls the development so the game is truly what you want it to be!
Categories=Game;Java;AdventureGame;RolePlaying

Type=Application
StartupNotify=true
Path=/home/CHANGEME/runescape/oldschool
Icon=/home/CHANGEME/runescape/oldschool/jagexappletviewer.png
Actions=Update;Cache;

[Desktop Action Update]
StartupNotify=false
Exec='/bin/bash' -c "notify-send 'Updating the Old School RuneScape client, please wait...' && rm -Rf '/tmp/oldschool' && mkdir -p '/home/CHANGEME/runescape/oldschool' '/tmp/oldschool' && wget -q -O '/tmp/oldschool/OldSchool.msi' 'http://www.runescape.com/downloads/oldschool.msi' && 7z e -o'/tmp/oldschool/OldSchool-msi' -y '/tmp/rune/OldSchool.msi' && 7z e -o'/tmp/runescape/main/rslauncher-cab' -y '/tmp/runescape/main/RuneScape-msi/rslauncher.cab' && cp '/tmp/runescape/main/rslauncher-cab/JagexAppletViewerJarFile'* '/home/CHANGEME/runescape/main/jagexappletviewer.jar' && rm -Rf '/tmp/runescape/main' && sync && notify-send 'The RuneScape client has been updated!'"
Name=Update Client

[Desktop Action Cache]
StartupNotify=false
Exec='/bin/bash' -c "rm -Rf '/home/CHANGEME/runescape/main/jagexcache' '/home/CHANGEME/runescape/main/jagexappletviewer.preferences' '/home/CHANGEME/runescape/main/jagex_cl_oldschool_LIVE.dat' '/home/CHANGEME/runescape/main/random.dat' '/tmp/runescape/main' && sync && notify-send 'The RuneScape cache has been cleaned.'"
Name=Cache Cleanup
sed -i 's/'CHANGEME'/'$USER'/g' ~/'.local/share/applications/Old School RuneScape.desktop'

Exec

Generic

  • Mostly default Java VM settings
Exec='/usr/bin/java' -Duser.home='/home/CHANGEME/runescape/oldschool' -Djava.class.path='/home/CHANGEME/runescape/oldschool/jagexappletviewer.jar' -Dcom.jagex.config='http://oldschool.runescape.com/jav_config.ws' -Dhttps.protocols='TLSv1.2' 'jagexappletviewer' 'oldschool'

Spinesnap

  • No OpenGL acceleration
  • 2 GC threads
  • 1x UI scaling
  • 512MB heap
  • 2M thread stack size
Exec='/usr/bin/java' -Duser.home='/home/CHANGEME/runescape/oldschool' -Djava.class.path='/home/CHANGEME/runescape/oldschool/jagexappletviewer.jar' -Dcom.jagex.config='http://oldschool.runescape.com/jav_config.ws' -Dhttps.protocols='TLSv1.2' -Xms512M -Xmx512M -Xss2M -XX:+UseParallelGC -XX:ParallelGCThreads='2' -Dsun.java2d.opengl='false' -Dsun.java2d.uiScale='1' 'jagexappletviewer' 'oldschool'

Quick Commands

Clear Cache

rm -Rf ~/'runescape/main/jagexcache' ~/'runescape/main/jagexappletviewer.preferences' ~/'runescape/main/jagex_cl_oldschool_LIVE.dat' ~/'runescape/main/random.dat' '/tmp/runescape/main' && sync

Update Applet

mkdir -p ~/'runescape/main' '/tmp/runescape/main' && wget -O '/tmp/runescape/main/RuneScape.msi' 'http://www.runescape.com/downloads/runescape.msi' && 7z e -o'/tmp/runescape/main/RuneScape-msi' -y '/tmp/runescape/main/RuneScape.msi' && 7z e -o'/tmp/runescape/main/rslauncher-cab' -y '/tmp/runescape/main/RuneScape-msi/rslauncher.cab' && cp '/tmp/runescape/main/rslauncher-cab/JagexAppletViewerJarFile'* ~/'runescape/main/jagexappletviewer.jar' && wget -O ~/'runescape/main/jagexappletviewer.png' 'https://lh3.googleusercontent.com/W3PNREQ09KbCj4yHUtkO7CxQ7NrfDzlYqAnOPb1ukqNvG2-wG-7kck_oGPewJ3zb7ICY' && rm -Rf '/tmp/runescape' && sync

Desktop Launcher Icon

Icons

Command

wget -O ~/'runescape/main/jagexappletviewer.png' 'https://lh3.googleusercontent.com/W3PNREQ09KbCj4yHUtkO7CxQ7NrfDzlYqAnOPb1ukqNvG2-wG-7kck_oGPewJ3zb7ICY'

Execute

RuneScape

  • See Java Flags for flags that can be added to this
cd ~/'runescape/main' && java -Duser.home='.' -Djava.class.path='jagexappletviewer.jar' -Dcom.jagex.config='http://www.runescape.com/jav_config.ws' -Dhttps.protocols='TLSv1.2' -Xms'512M' -Xmx'512M' -Xss'2M' 'jagexappletviewer' 'runescape'

File Manager

Root

gio open ~/'runescape/main'
2)
does some weird tiling thing and is unplayable
4)
the previously used direct-link jagexappletviewer.jar can be found here
5)
only 7z can do this properly and not 7za, cabextract, nor unar
6)
this is expected to already be installed from the Fedora prerequisite
games/runescape_java.txt · Last modified: 2019/02/24 03:02 by Sean Rhone