User Tools

Site Tools


games:old_school_runescape

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
games:old_school_runescape [2019/11/01 13:14]
Sean Rhone
games:old_school_runescape [2020/09/24 16:42] (current)
Sean Rhone
Line 3: Line 3:
   * Old School RuneScape ((http://oldschool.runescape.com))   * Old School RuneScape ((http://oldschool.runescape.com))
  
-===== Notes =====+===== Prerequisites =====
  
-  * ''-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 +  * [[distros:fedora_workstation_gnome|Fedora Workstation]]
-  * ''jagexappletviewer.jar'' from ''OldSchool.msi'' is used 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]])) +
-  * :!: The copyright footer is **not** hidden with OpenJDK 12, 13, and presumably any JRE newer than 11, regardless of where the ''jagexappletviewer.jar'' comes from ((last tested 2019/10/22))+
  
-====== Install ======+===== Notes =====
  
-===== Dependencies =====+==== Performance ====
  
-  * ''wmctrl'' is used to toggle between windowed and fullscreen states+  * ''-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
  
-==== Fedora Workstation ====+==== Copyright Footer ====
  
-  * ''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))+  * ''jagexappletviewer.jar'' from ''OldSchool.msi'' was used 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]])) 
 +  * :!: The copyright footer is **not** hidden with OpenJDK 12, 13, and presumably any JRE newer than 11 if ''jagexappletviewer.jar'' comes from ''OldSchool.msi'' ((last tested 2019/10/22)) 
 +  * :!: The copyright footer is **only** hidden with ''jagexappletviewer.jar'' from ''OldSchool.dmg'' if ''-Djava.system.class.loader=app.systemclassloader'' is set on both macOS and Linux hosts ((this flag doesn't work with the ''jagexappletviewer.jar'' from ''OldSchool.msi''))
  
-  * Last tested: 2019/10/24 with Fedora Workstation 31+====== Install ======
  
-  sudo dnf install java-11-openjdk wmctrl && sync+  * ''wmctrl'' is used to toggle between windowed and fullscreen states 
 +  * ''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 2020/03/26, ''java-latest-openjdk'' at version ''14.0.0.36-2.rolling.fc32'' did not work, so going back to 11 LTS
  
-==== Ubuntu ==== +  sudo dnf install java-11-openjdk wmctrl && sync
- +
-  * Last tested: 2019/10/22 with Ubuntu 19.10 +
- +
-  sudo apt install openjdk-11-jre wmctrl && sync +
- +
-==== openSUSE Tumbleweed ==== +
- +
-  * Last tested: N/A +
- +
-  sudo zypper install java-11-openjdk wmctrl && sync+
  
 ==== Set Default Java ==== ==== Set Default Java ====
Line 42: Line 38:
  
 ===== Old School RuneScape ===== ===== Old School RuneScape =====
- 
-==== macOS DMG ==== 
  
 **** ****
  
-  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
- +
-==== Windows MSI ==== +
- +
-  * Old method +
- +
-  rm -Rf ~/'runescape/oldschool' '/tmp/oldschool' && mkdir -p ~/'runescape/oldschool' '/tmp/oldschool' && wget -O '/tmp/oldschool/OldSchool.msi' 'http://www.runescape.com/downloads/oldschool.msi' && 7z e -o'/tmp/oldschool/OldSchool-msi' -y '/tmp/oldschool/OldSchool.msi' && 7z e -o'/tmp/oldschool/rslauncher-cab' -y '/tmp/oldschool/OldSchool-msi/rslauncher.cab' && cp '/tmp/oldschool/rslauncher-cab/JagexAppletViewerJarFile'* ~/'runescape/oldschool/jagexappletviewer.jar' && wget -O ~/'runescape/oldschool/jagexappletviewer.png' 'https://lh3.googleusercontent.com/WLvp10q8TwtyVgMsYL7gW0c7NVG5vnFcRNS7oQtTnSyWbM9kgo_MS8QZa3bsylNgZDba' && rm -Rf '/tmp/oldschool' && sync+
  
 ====== Desktop Launcher ====== ====== Desktop Launcher ======
Line 60: Line 48:
  
   * :!: Change ''opengl'' and ''uiScale'' flags as-needed   * :!: Change ''opengl'' and ''uiScale'' flags as-needed
-  * :!: ''opengl'' **needs** to be enabled if using a screen depth of 30/10-bit color 
  
   mkdir -p ~/'.local/share/applications' && nano ~/'.local/share/applications/Old School RuneScape.desktop'   mkdir -p ~/'.local/share/applications' && nano ~/'.local/share/applications/Old School RuneScape.desktop'
Line 69: Line 56:
 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='2' '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
 Path=/home/CHANGEME/runescape/oldschool Path=/home/CHANGEME/runescape/oldschool
-Icon=/home/CHANGEME/runescape/oldschool/jagexappletviewer.png+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='2' 'jagexappletviewer' 'oldschool' +
-Name=Start with OpenGL acceleration+
  
 [Desktop Action Screen] [Desktop Action Screen]
Line 89: Line 72:
 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'
Line 100: Line 88:
  
   rm -Rf ~/'runescape/oldschool/jagexcache' ~/'runescape/oldschool/jagexappletviewer.preferences' ~/'runescape/oldschool/jagex_cl_oldschool_LIVE.dat' ~/'runescape/oldschool/random.dat' '/tmp/oldschool' && sync   rm -Rf ~/'runescape/oldschool/jagexcache' ~/'runescape/oldschool/jagexappletviewer.preferences' ~/'runescape/oldschool/jagex_cl_oldschool_LIVE.dat' ~/'runescape/oldschool/random.dat' '/tmp/oldschool' && sync
- 
-===== Desktop Launcher Icon ===== 
- 
-==== Icons ==== 
- 
-  * Taken from Google Play Store page 
- 
-  * https://lh3.googleusercontent.com/WLvp10q8TwtyVgMsYL7gW0c7NVG5vnFcRNS7oQtTnSyWbM9kgo_MS8QZa3bsylNgZDba 
-  * https://i.imgur.com/0yCN5kE.png 
- 
-==== Command ==== 
- 
-**** 
- 
-  wget -O ~/'runescape/oldschool/jagexappletviewer.png' 'https://lh3.googleusercontent.com/WLvp10q8TwtyVgMsYL7gW0c7NVG5vnFcRNS7oQtTnSyWbM9kgo_MS8QZa3bsylNgZDba' 
  
 ===== Execute ===== ===== Execute =====
Line 135: Line 108:
  
   gio open ~/'runescape/oldschool'   gio open ~/'runescape/oldschool'
 +
 +===== Testing =====
 +
 +==== jagexappletviewer.jar ====
 +
 +  * :!: ''jagexappletviewer.jar'' has varying filesizes depending on where it's sourced from, along with different functionality depending on the host operating system ((see the [[#copyright_footer|copyright footer notes]] above))
 +
 +=== Windows ===
 +
 +  * Extracts ''jagexappletviewer.jar'' from ''OldSchool.msi'' and requires ''7z''
 +  * Places it at ''~/Downloads/windows-jagexappletviewer.jar''
 +
 +  rm -Rf '/tmp/oldschool' && mkdir -p '/tmp/oldschool' && wget -O '/tmp/oldschool/OldSchool.msi' 'http://www.runescape.com/downloads/oldschool.msi' && 7z e -o'/tmp/oldschool/OldSchool-msi' -y '/tmp/oldschool/OldSchool.msi' && 7z e -o'/tmp/oldschool/rslauncher-cab' -y '/tmp/oldschool/OldSchool-msi/rslauncher.cab' && cp '/tmp/oldschool/rslauncher-cab/JagexAppletViewerJarFile'* ~/'Downloads/windows-jagexappletviewer.jar' && rm -Rf '/tmp/oldschool' && sync
 +
 +=== macOS ===
 +
 +  * Extracts ''jagexappletviewer.jar'' from ''OldSchool.dmg'' and requires ''7z''
 +  * Places it at ''~/Downloads/macos-jagexappletviewer.jar''
 +
 +  rm -Rf '/tmp/oldschool' && mkdir -p '/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' ~/'Downloads/macos-jagexappletviewer.jar' && rm -Rf '/tmp/oldschool' && sync
 +
 +=== Generic ===
 +
 +  * Downloads ''jagexappletviewer.jar'' directly with ''wget'' ((no idea what this version actually is or what platform it's for))
 +  * Places it at ''~/Downloads/generic-jagexappletviewer.jar''
 +
 +  wget -O ~/'Downloads/generic-jagexappletviewer.jar' 'http://oldschool.runescape.com/downloads/jagexappletviewer.jar' && sync
  
 ===== Android ===== ===== Android =====
Line 143: Line 143:
  
   am force-stop 'com.jagex.oldscape.android'   am force-stop 'com.jagex.oldscape.android'
 +
 +===== Windows =====
 +
 +==== Create Directory ====
 +
 +  * Alternatively, use Explorer to make the ''runescape'' folder in the ''User'' folder and ''runescape\oldschool''
 +
 +  if not exist %UserProfile%"\runescape\oldschool" mkdir %UserProfile%"\runescape\oldschool"
 +
 +  start %UserProfile%"\runescape"
 +
 +==== Java ====
 +
 +  * Download the Windows ''.zip'' of the latest Java package from https://jdk.java.net/
 +  * Extract the root folder from the archive and drop it in the ''runescape'' folder
 +  * Folder structure should be ''%UserProfile%\runescape\jdk-14''
 +  * ''javaw.exe'' should exist at ''%UserProfile%\runescape\jdk-14\bin\javaw.exe''
 +
 +==== jagexappletviewer.jar ====
 +
 +  * Extract it from the macOS ''Oldschool.dmg'' installer
 +  * Should reside at ''%UserProfile%\runescape\oldschool\jagexappletviewer.jar''
 +
 +==== Batch File ====
 +
 +  * Should reside at ''%UserProfile%\runescape\osrs.cmd''
 +  * The usual command-line arguments above can be tossed in or altered as-needed
 +
 +<code>
 +cd "jdk-"*"\bin"
 +
 +start javaw.exe -Djava.system.class.loader="app.systemclassloader" -Duser.home="..\..\oldschool" -Djava.class.path="..\..\oldschool\jagexappletviewer.jar" -Dcom.jagex.config="http://oldschool.runescape.com/jav_config.ws" -Dhttps.protocols="TLSv1.2" -Xms"768M" -Xmx"768M" -Dsun.java2d.uiScale="1" "jagexappletviewer" "oldschool"</code>
  
 ===== macOS ===== ===== macOS =====
games/old_school_runescape.1572628470.txt.gz · Last modified: 2019/11/01 13:14 by Sean Rhone