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 revisionPrevious revision
Next revision
Previous revision
games:old_school_runescape [2020/03/26 05:37] Sean Rhonegames:old_school_runescape [2024/02/01 18:14] (current) Sean Rhone
Line 2: Line 2:
  
   * Old School RuneScape ((http://oldschool.runescape.com))   * Old School RuneScape ((http://oldschool.runescape.com))
 +  * :!: Java; see [[games:wine:old_school_runescape_jagex_launcher_c|New C++ Client]] notes for the modern GPU-accelerated client
  
 ===== Prerequisites ===== ===== Prerequisites =====
Line 9: Line 10:
 ===== Notes ===== ===== Notes =====
  
-==== Performance ==== +  * :!: 2023/06/19: There are no known configurations where ''-Dsun.java2d.opengl=true'' offers a performance benefit 
- +  * :!: 2020/03/24: On macOS, using the official ''.dmg'' to install OSRS resulted in the worst possible performance due to a mix of forced GPU acceleration and Retina with Java 8it was recommended to manually install OSRS and to use the latest OpenJDK package available instead to workaround this 
-  * ''-Dsun.java2d.opengl=true'' enables Hardware-acceleration via OpenGL +  * ''-Dsun.java2d.uiScale'' at 2 and higher increases all UI scale in-game, and improves performance with lowering texture resolution
-  * :!: This is known to be broken with Intel graphics on multiple computers ((does some weird tiling thing and is unplayable)) +
-  * :!: There 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, and 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 ====
  
   * ''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]]))   * ''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 was **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''))+
  
 ====== Install ====== ====== Install ======
  
   * ''wmctrl'' is used to toggle between windowed and fullscreen states   * ''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)) +  * ''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)) 
-  * :!: 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+  * :!: As of 2023/03/17Java 19 didn'work on Fedora 37but 11 is still fine
  
   sudo dnf install java-11-openjdk wmctrl && sync   sudo dnf install java-11-openjdk wmctrl && sync
  
-==== Set Default Java ====+  sudo apt install openjdk-11-jre wmctrl && sync
  
-****+==== Show Java Paths ==== 
 + 
 +  Useful for specifying Java 11 in the launch script below instead of changing it system-wide
  
   sudo update-alternatives --config 'java'   sudo update-alternatives --config 'java'
Line 41: Line 39:
 **** ****
  
-  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+  rm -Rf ~/'runescape/oldschool' '/tmp/oldschool' && mkdir -p ~/'runescape/oldschool' '/tmp/oldschool' && wget -O '/tmp/oldschool/OldSchool.msi' 'https://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' && cp '/tmp/oldschool/rslauncher-cab/JagexAppletViewerPngFile' ~/'runescape/oldschool/jagexappletviewer.png' && rm -Rf '/tmp/oldschool' && sync
  
 ====== Desktop Launcher ====== ====== Desktop Launcher ======
Line 47: Line 45:
 ===== Old School RuneScape ===== ===== Old School RuneScape =====
  
-  * :!: Change ''opengl'' and ''uiScale'' flags as-needed+  * :!: ''Exec='''s Java path may need changed depending on the distro 
 +  * Change ''uiScale'' if-needed
  
   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 56: Line 55:
 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' -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'+Exec='/usr/lib/jvm/java-11-openjdk-amd64/bin/java' -Xms256M -Xmx2G -XX:+UseConcMarkSweepGC -Duser.home='/home/CHANGEME/runescape/oldschool' -Djava.class.path='/home/CHANGEME/runescape/oldschool/jagexappletviewer.jar' -Dcom.jagex.config='http://oldschool.runescape.com/k=3/l=$(Language:0)/jav_config.ws' -Djdk.tls.client.protocols='TLSv1.3' -Dhttps.protocols='TLSv1.3' -Dsun.java2d.opengl='false' -Dsun.java2d.uiScale='1' 'jagexappletviewer' 'oldschool'
 Type=Application Type=Application
 StartupNotify=true StartupNotify=true
Line 66: Line 65:
 [Desktop Action Screen] [Desktop Action Screen]
 StartupNotify=false StartupNotify=false
-Exec='/usr/bin/wmctrl' -r 'Old School RuneScape' -b toggle,fullscreen -F+Exec='/usr/bin/wmctrl' -r 'jagexappletviewer.jagexappletviewer-x -b 'toggle,fullscreen'
 Name=Toggle Fullscreen/Windowed Name=Toggle Fullscreen/Windowed
  
Line 80: Line 79:
  
   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'
 +
 +==== Icon ====
 +
 +  * The icon provided from the macOS ''.dmg'' is higher-res than the one in the Windows ''.msi''
 +  * ''.icns'' isn't a valid image file format [[https://specifications.freedesktop.org/icon-theme-spec/icon-theme-spec-latest.html|according to Freedesktop.org Specifications]] so this isn't in the standard icon folder
 +
 +  rm -Rf '/tmp/oldschool' && mkdir -p '/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/OSRS.icns' ~/'runescape/oldschool/OSRS.icns' && rm -Rf '/tmp/oldschool' && sync
  
 ====== Quick Commands ====== ====== Quick Commands ======
Line 92: Line 98:
  
 ==== Old School RuneScape ==== ==== Old School RuneScape ====
- 
-  * See [[notes:java_flags|Java Flags]] for flags that can be added to this 
  
   cd ~/'runescape/oldschool' && java -Duser.home='.' -Djava.class.path='jagexappletviewer.jar' -Dcom.jagex.config='http://oldschool.runescape.com/jav_config.ws' -Dhttps.protocols='TLSv1.2' -Dsun.java2d.opengl='false' -Dsun.java2d.uiScale='1' 'jagexappletviewer' 'oldschool'   cd ~/'runescape/oldschool' && java -Duser.home='.' -Djava.class.path='jagexappletviewer.jar' -Dcom.jagex.config='http://oldschool.runescape.com/jav_config.ws' -Dhttps.protocols='TLSv1.2' -Dsun.java2d.opengl='false' -Dsun.java2d.uiScale='1' 'jagexappletviewer' 'oldschool'
Line 120: Line 124:
   * Places it at ''~/Downloads/windows-jagexappletviewer.jar''   * 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+  rm -Rf '/tmp/oldschool' && mkdir -p '/tmp/oldschool' && wget -O '/tmp/oldschool/OldSchool.msi' 'https://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 === === macOS ===
Line 127: Line 131:
   * Places it at ''~/Downloads/macos-jagexappletviewer.jar''   * 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 +  rm -Rf '/tmp/oldschool' && mkdir -p '/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' ~/'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 182: Line 179:
   * OpenJDK 9 had GPU usage and lower FPS   * OpenJDK 9 had GPU usage and lower FPS
   * Need ''-Djava.system.class.loader=app.systemclassloader''   * Need ''-Djava.system.class.loader=app.systemclassloader''
 +  * :!: This //very// likely needs refactored
  
   rm -Rf ~/'runescape/oldschool' && mkdir -p ~/'runescape/oldschool' && curl 'http://oldschool.runescape.com/downloads/jagexappletviewer.jar' -o ~/'runescape/oldschool/jagexappletviewer.jar' && curl 'https://lh3.googleusercontent.com/WLvp10q8TwtyVgMsYL7gW0c7NVG5vnFcRNS7oQtTnSyWbM9kgo_MS8QZa3bsylNgZDba' -o ~/'runescape/oldschool/jagexappletviewer.png' && sync   rm -Rf ~/'runescape/oldschool' && mkdir -p ~/'runescape/oldschool' && curl 'http://oldschool.runescape.com/downloads/jagexappletviewer.jar' -o ~/'runescape/oldschool/jagexappletviewer.jar' && curl 'https://lh3.googleusercontent.com/WLvp10q8TwtyVgMsYL7gW0c7NVG5vnFcRNS7oQtTnSyWbM9kgo_MS8QZa3bsylNgZDba' -o ~/'runescape/oldschool/jagexappletviewer.png' && sync
Line 189: Line 187:
  
 cd ~/'runescape/oldschool' cd ~/'runescape/oldschool'
-~/'runescape/jdk-13.0.1.jdk/Contents/Home/bin/java' -Djava.system.class.loader='app.systemclassloader' -Duser.home='.' -Djava.class.path='jagexappletviewer.jar' -Dcom.jagex.config='http://oldschool.runescape.com/jav_config.ws' -Dhttps.protocols='TLSv1.2' -Xms'768M' -Xmx'768M' -Dsun.java2d.opengl='false' -Dsun.java2d.uiScale='2' 'jagexappletviewer' 'oldschool'</code>+~/'runescape/jdk-13.0.1.jdk/Contents/Home/bin/java' -Djava.system.class.loader='app.systemclassloader' -Duser.home='.' -Djava.class.path='jagexappletviewer.jar' -Dcom.jagex.config='http://oldschool.runescape.com/jav_config.ws' -Dhttps.protocols='TLSv1.2' -Xms'768M' -Xmx'768M' -Dsun.java2d.opengl='false' -Dsun.java2d.uiScale='1' 'jagexappletviewer' 'oldschool'</code>
  
/var/www/wiki/data/attic/games/old_school_runescape.1585215451.txt.gz · Last modified: 2020/03/26 05:37 by Sean Rhone