Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision |
games:old_school_runescape [2019/12/09 12:52] – uiScale=1 Sean Rhone | games:old_school_runescape [2022/05/08 08:10] – Sean Rhone |
---|
| |
* Old School RuneScape ((http://oldschool.runescape.com)) | * Old School RuneScape ((http://oldschool.runescape.com)) |
| |
| ===== Prerequisites ===== |
| |
| * [[distros:fedora_workstation_gnome|Fedora Workstation]] |
| |
===== Notes ===== | ===== 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)) and as of 2019/10/24, has significantly worse performance on a i5-4278U CPU | ==== Performance ==== |
| |
| * ''-Dsun.java2d.opengl=true'' enables Hardware-acceleration via OpenGL |
| * :!: This is known to be broken with Intel graphics on multiple computers ((does some weird tiling thing and is unplayable)) |
| * :!: As of 2020/09/24 is no known configuration where ''-Dsun.java2d.opengl=true'' offers a performance benefit |
| * :!: On macOS, using the official ''.dmg'' to install OSRS results in the worst possible performance due to a mix of forced GPU acceleration and Retina with Java 8; it is recommended to manually install OSRS and to use the latest OpenJDK package available instead to workaround this |
| * ''-Dsun.java2d.uiScale'' at 2 and higher improves performance, along with lowering overall texture quality |
| |
==== Copyright Footer ==== | ==== Copyright Footer ==== |
| |
====== Install ====== | ====== Install ====== |
| |
===== Dependencies ===== | |
| |
* ''wmctrl'' is used to toggle between windowed and fullscreen states | * ''wmctrl'' is used to toggle between windowed and fullscreen states |
| |
==== Fedora Workstation ==== | |
| |
* ''p7zip-plugins'' is needed to extract ''jagexappletviewer.jar'' from ''OldSchool.dmg'' later ((only ''7z'' can do this properly and **not** ''7za'', ''cabextract'', nor ''unar'')) ((this is expected to already be installed from the Fedora prerequisite)) | * ''p7zip-plugins'' is needed to extract ''jagexappletviewer.jar'' from ''OldSchool.dmg'' later ((only ''7z'' can do this properly and **not** ''7za'', ''cabextract'', nor ''unar'')) ((this is expected to already be installed from the Fedora prerequisite)) |
| * :!: As of 2022/05/08, Java 17 nor 18 worked on Fedora 36, but 11 is still fine |
| |
* Last tested: 2019/11/01 with Fedora Workstation 31 and OpenJDK 13 | sudo dnf install java-11-openjdk wmctrl && sync |
| |
sudo dnf install java-latest-openjdk wmctrl && sync | |
| |
==== Ubuntu ==== | |
| |
* Last tested: 2019/10/22 with Ubuntu 19.10 | |
* :!: TODO: Update the OpenJDK version and test with the new applet source | |
| |
sudo apt install openjdk-11-jre wmctrl && sync | |
| |
==== openSUSE Tumbleweed ==== | |
| |
* Last tested: N/A | |
* :!: TODO: Update the OpenJDK version and test with the new applet source | |
| |
sudo zypper install java-11-openjdk wmctrl && sync | |
| |
==== Set Default Java ==== | ==== Set Default Java ==== |
**** | **** |
| |
rm -Rf ~/'runescape/oldschool' '/tmp/oldschool' && mkdir -p ~/'runescape/oldschool' '/tmp/oldschool' && wget -O '/tmp/oldschool/OldSchool.dmg' 'http://www.runescape.com/downloads/OldSchool.dmg' && 7z e -o'/tmp/oldschool/OldSchool-dmg' -y '/tmp/oldschool/OldSchool.dmg' && cp '/tmp/oldschool/OldSchool-dmg/jagexappletviewer.jar' ~/'runescape/oldschool/jagexappletviewer.jar' && cp '/tmp/oldschool/OldSchool-dmg/OSRS.icns' ~/'runescape/oldschool/OSRS.icns' && rm -Rf '/tmp/oldschool' && sync | rm -Rf ~/'runescape/oldschool' '/tmp/oldschool' && mkdir -p ~/'runescape/oldschool' '/tmp/oldschool' && wget -O '/tmp/oldschool/OldSchool.dmg' 'https://www.runescape.com/downloads/OldSchool.dmg' && 7z e -o'/tmp/oldschool/OldSchool-dmg' -y '/tmp/oldschool/OldSchool.dmg' && cp '/tmp/oldschool/OldSchool-dmg/jagexappletviewer.jar' ~/'runescape/oldschool/jagexappletviewer.jar' && cp '/tmp/oldschool/OldSchool-dmg/OSRS.icns' ~/'runescape/oldschool/OSRS.icns' && rm -Rf '/tmp/oldschool' && sync |
| |
====== Desktop Launcher ====== | ====== Desktop Launcher ====== |
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! | 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 | Categories=Game;Java;AdventureGame;RolePlaying |
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' -Xms'768M' -Xmx'768M' -Djava.system.class.loader='app.systemclassloader' -Dswing.crossplatformlaf='com.sun.java.swing.plaf.gtk.GTKLookAndFeel' -Dsun.java2d.opengl='false' -Dsun.java2d.uiScale='1' 'jagexappletviewer' 'oldschool' | 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' -Djdk.tls.client.protocols='TLSv1.2' -Dhttps.protocols='TLSv1.2' -Xms'768M' -Xmx'768M' -Djava.system.class.loader='app.systemclassloader' -Dswing.crossplatformlaf='com.sun.java.swing.plaf.gtk.GTKLookAndFeel' -Dsun.java2d.opengl='false' -Dsun.java2d.uiScale='1' 'jagexappletviewer' 'oldschool' |
Type=Application | Type=Application |
StartupNotify=true | StartupNotify=true |
Icon=/home/CHANGEME/runescape/oldschool/OSRS.icns | Icon=/home/CHANGEME/runescape/oldschool/OSRS.icns |
StartupWMClass=jagexappletviewer | StartupWMClass=jagexappletviewer |
Actions=GL;Screen;Cache; | Actions=Screen;Cache;Notes; |
| |
[Desktop Action GL] | |
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' -Xms'768M' -Xmx'768M' -Djava.system.class.loader='app.systemclassloader' -Dswing.crossplatformlaf='com.sun.java.swing.plaf.gtk.GTKLookAndFeel' -Dsun.java2d.opengl='true' -Dsun.java2d.uiScale='1' 'jagexappletviewer' 'oldschool' | |
Name=Start with OpenGL acceleration | |
| |
[Desktop Action Screen] | [Desktop Action Screen] |
StartupNotify=false | StartupNotify=false |
Exec='/bin/bash' -c "rm -Rf '/home/CHANGEME/runescape/oldschool/jagexcache' '/home/CHANGEME/runescape/oldschool/jagexappletviewer.preferences' '/home/CHANGEME/runescape/oldschool/jagex_cl_oldschool_LIVE.dat' '/home/CHANGEME/runescape/oldschool/random.dat' '/home/CHANGEME/runescape/oldschool/'*'.log' '/home/CHANGEME/runescape/oldschool/.java' '/tmp/oldschool' && sync && notify-send 'The Old School RuneScape cache has been cleaned.'" | Exec='/bin/bash' -c "rm -Rf '/home/CHANGEME/runescape/oldschool/jagexcache' '/home/CHANGEME/runescape/oldschool/jagexappletviewer.preferences' '/home/CHANGEME/runescape/oldschool/jagex_cl_oldschool_LIVE.dat' '/home/CHANGEME/runescape/oldschool/random.dat' '/home/CHANGEME/runescape/oldschool/'*'.log' '/home/CHANGEME/runescape/oldschool/.java' '/tmp/oldschool' && sync && notify-send 'The Old School RuneScape cache has been cleaned.'" |
Name=Cache Cleanup</code> | Name=Cache Cleanup |
| |
| [Desktop Action Notes] |
| StartupNotify=false |
| Exec=gio open 'https://wiki.realmofespionage.xyz/games:old_school_runescape' |
| Name=Installation Notes</code> |
| |
sed -i 's/'CHANGEME'/'$USER'/g' ~/'.local/share/applications/Old School RuneScape.desktop' | sed -i 's/'CHANGEME'/'$USER'/g' ~/'.local/share/applications/Old School RuneScape.desktop' |