User Tools

Site Tools


games:runescape_java

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
games:runescape_java [2019/02/01 18:56]
Sean Rhone
games:runescape_java [2019/02/24 03:02] (current)
Sean Rhone
Line 1: Line 1:
 +====== Information ======
  
 +  * RuneScape ((http://www.runescape.com))
 +
 +===== Prerequisites =====
 +
 +  * [[distros:fedora_workstation_gnome| Fedora Workstation]]
 +
 +===== 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 ((does some weird tiling thing and is unplayable))
 +  * I use ''jagexappletviewer.jar'' from ''OldSchool.msi'' because it allows the copyright footer bar to be removed upon logging in (([[https://github.com/rsu-client/rsu-client/commit/b2553e5aeca9a0e6b271b5b17eee9a57c8d6ef11|rsu-client commit]] and [[https://github.com/rsu-client/rsu-client/issues/127|initial bug report]])) ((the previously used direct-link ''jagexappletviewer.jar'' can be found [[http://oldschool.runescape.com/downloads/jagexappletviewer.jar|here]]))
 +
 +====== Install ======
 +
 +===== Dependencies =====
 +
 +  * ''p7zip-plugins'' is needed to extract ''jagexappletviewer.jar'' from ''OldSchool.msi'' later ((only ''7z'' can do this properly and not ''7za'', ''cabextract'', nor ''unar'')) ((this is expected to already be installed from the Fedora prerequisite))
 +
 +  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 [[#exec|from here]]
 +
 +  mkdir -p ~/'.local/share/applications' && nano ~/'.local/share/applications/Old School RuneScape.desktop'
 +
 +<code>
 +[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</code>
 +
 +  sed -i 's/'CHANGEME'/'$USER'/g' ~/'.local/share/applications/Old School RuneScape.desktop'
 +
 +==== Exec ====
 +
 +=== Generic ===
 +
 +  * Mostly default Java VM settings
 +
 +<code>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'</code>
 +
 +=== Spinesnap ===
 +
 +  * No OpenGL acceleration
 +  * 2 GC threads
 +  * 1x UI scaling
 +  * 512MB heap
 +  * 2M thread stack size
 +
 +<code>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'</code>
 +
 +====== 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 ====
 +
 +  * Taken from Google Play Store page
 +
 +  * https://lh3.googleusercontent.com/W3PNREQ09KbCj4yHUtkO7CxQ7NrfDzlYqAnOPb1ukqNvG2-wG-7kck_oGPewJ3zb7ICY
 +  * https://i.imgur.com/68783P2.png
 +
 +==== Command ====
 +
 +****
 +
 +  wget -O ~/'runescape/main/jagexappletviewer.png' 'https://lh3.googleusercontent.com/W3PNREQ09KbCj4yHUtkO7CxQ7NrfDzlYqAnOPb1ukqNvG2-wG-7kck_oGPewJ3zb7ICY'
 +
 +===== Execute =====
 +
 +==== RuneScape ====
 +
 +  * See [[notes:java_flags|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'
games/runescape_java.txt ยท Last modified: 2019/02/24 03:02 by Sean Rhone