User Tools

Site Tools


games:minecraft_java

Differences

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

Link to this comparison view

Next revision
Previous revision
games:minecraft_java [2020/01/01 13:17]
Sean Rhone created
games:minecraft_java [2020/03/24 06:50] (current)
Sean Rhone
Line 4: Line 4:
   * Java Edition ((https://www.minecraft.net/download/alternative))   * Java Edition ((https://www.minecraft.net/download/alternative))
  
-===== Notes =====+===== Prerequisites =====
  
-  * :!: TODO all of this +  * [[distros:fedora_workstation_gnome|Fedora Workstation]]
- +
-==== 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]])) +
-  * :!: 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''))+
  
 ====== Install ====== ====== Install ======
  
-===== Dependencies =====+===== Java =====
  
-  ''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)) +
- +
-  * Last tested: 2019/11/01 with Fedora Workstation 31 and OpenJDK 13 +
- +
-  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+  sudo dnf install 'java-latest-openjdk&& sync
  
 ==== Set Default Java ==== ==== Set Default Java ====
Line 48: Line 22:
   sudo update-alternatives --config 'java'   sudo update-alternatives --config 'java'
  
-===== Old School RuneScape =====+===== Minecraft =====
  
 **** ****
  
-  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 ~/'.minecraft' && mkdir -p ~/'.minecraft' && wget -O '/tmp/Minecraft.tar.gz' 'https://launcher.mojang.com/download/Minecraft.tar.gz' && cd ~/'.minecraft' && tar -xvzf '/tmp/Minecraft.tar.gz' 'minecraft-launcher' && rm -'/tmp/Minecraft.tar.gz' && sync
  
 ====== Desktop Launcher ====== ====== Desktop Launcher ======
  
-===== Old School RuneScape =====+===== Minecraft =====
  
-  * :!: Change ''opengl'' and ''uiScale'' flags as-needed +  mkdir -p ~/'.local/share/applications' && nano ~/'.local/share/applications/Minecraft.desktop'
- +
-  mkdir -p ~/'.local/share/applications' && nano ~/'.local/share/applications/Old School RuneScape.desktop'+
  
 <code> <code>
 [Desktop Entry] [Desktop Entry]
-Name=Old School RuneScape +Name=Minecraft 
-Comment=Relive the challenging levelling system and risk-it-all PvP of the biggest retro styled MMOPlay 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=Prepare for an adventure of limitless possibilities as you build, mine, battle mobs, and explore the ever-changing Minecraft landscape.
 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='/home/CHANGEME/.minecraft/minecraft-launcher/minecraft-launcher
 Type=Application Type=Application
 StartupNotify=true StartupNotify=true
-Path=/home/CHANGEME/runescape/oldschool +Path=/home/CHANGEME/.minecraft/minecraft-launcher 
-Icon=/home/CHANGEME/runescape/oldschool/OSRS.icns +Icon=/home/CHANGEME/.minecraft/minecraft-icon.png 
-StartupWMClass=jagexappletviewer +Actions=Saves;Notes;
-Actions=GL;Screen;Cache;+
  
-[Desktop Action GL] +[Desktop Action Saves]
-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]+
 StartupNotify=false StartupNotify=false
-Exec='/usr/bin/wmctrl' -'Old School RuneScape' -b toggle,fullscreen -F +Exec='/home/CHANGEME/.minecraft/save-backup.sh
-Name=Toggle Fullscreen/Windowed+Name=Save Data Back-up
  
-[Desktop Action Cache]+[Desktop Action Notes]
 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=gio open 'https://wiki.realmofespionage.xyz/games:minecraft_java
-Name=Cache Cleanup</code>+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/Minecraft.desktop'
  
-====== Quick Commands ====== +==== Icon ====
- +
-===== Clear Cache =====+
  
 **** ****
  
-  rm -Rf ~/'runescape/oldschool/jagexcache' ~/'runescape/oldschool/jagexappletviewer.preferences~/'runescape/oldschool/jagex_cl_oldschool_LIVE.dat' ~/'runescape/oldschool/random.dat' '/tmp/oldschool&& sync+  wget -~/'.minecraft/minecraft-icon.png' 'https://i.imgur.com/4oFBfzd.png'
  
-===== Execute =====+===== Save Data Back-up Script =====
  
-==== Old School RuneScape ====+  nano ~/'.minecraft/save-backup.sh' && chmod +x ~/'.minecraft/save-backup.sh'
  
-  * See [[notes:java_flags|Java Flags]] for flags that can be added to this+<code> 
 +#!/bin/sh
  
-  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'+ls ~/'.minecraft/saves' 
 +tar -cvzf ~/'Downloads/'$(date +%Y-%m-%d)'-manual-Minecraft-Saves.tar.gz-C ~/'.minecraft' 'saves' 
 +sync 
 +notify-send 'Minecraft save data has been successfully archived and placed in the Downloads folder.'</code>
  
-<code>-XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC -XX:+AlwaysPreTouch -Xms'512M' -Xmx'512M' -XX:-UseBiasedLocking -XX:+DisableExplicitGC</code>+====== Quick Commands ======
  
-<code>-XX:+UseNUMA</code>+===== Execute =====
  
-===== File Manager ===== +==== Minecraft ====
- +
-==== Root ====+
  
 **** ****
  
-  gio open ~/'runescape/oldschool'+  cd ~/'.minecraft/minecraft-launcher' && ~/'.minecraft/minecraft-launcher/minecraft-launcher'
  
-===== Testing =====+===== File Manager =====
  
-==== jagexappletviewer.jar ====+==== Root ====
  
-  :!: ''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 ===+  gio open ~/'.minecraft'
  
-  * Extracts ''jagexappletviewer.jar'' from ''OldSchool.msi'' and requires ''7z'' +==== Saves ====
-  * 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 ===+  gio open ~/'.minecraft/saves'
  
-  * Extracts ''jagexappletviewer.jar'' from ''OldSchool.dmg'' and requires ''7z'' +===== Saved Games Data =====
-  * 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+==== Backup ====
  
-=== Generic ===+  * Creates ''{DATE}-manual-Minecraft-Saves.tar.gz'' in ''~/Downloads'' 
 +  * :!: Will replace existing tarballs if this is done more than once **on the same day**
  
-  * Downloads ''jagexappletviewer.jar'' directly with ''wget'' ((no idea what this version actually is or what platform it's for)) +  ls ~/'.minecraft/saves&& tar -cvzf ~/'Downloads/'$(date +%Y-%m-%d)'-manual-Minecraft-Saves.tar.gz-C ~/'.minecraft' 'saves&& ls ~/'Downloads/'*'-manual-Minecraft-Saves.tar.gz'
-  * Places it at ''~/Downloads/generic-jagexappletviewer.jar''+
  
-  wget -O ~/'Downloads/generic-jagexappletviewer.jar' 'http://oldschool.runescape.com/downloads/jagexappletviewer.jar' && sync +==== Restore ====
- +
-===== Android ===== +
- +
-  * TODO +
- +
-  am start -n 'com.jagex.oldscape.android/.AndroidLauncher' +
- +
-  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 ===== +
- +
-  * need macOS dmg .jar +
-  * Need OpenJDK 13 or something in the ''~/runescape'' folder +
-  * OpenJDK 9 had GPU usage and lower FPS +
-  * Need ''-Djava.system.class.loader=app.systemclassloader'' +
- +
-  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 +
- +
-<code> +
-#!/usr/bin/env zsh+
  
-cd ~/'runescape/oldschool' +  * Expects ''*-manual-Minecraft-Saves.tar.gz'' in ''~/Downloads'' 
-~/'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>+  * :!: If that tarball exists, this series of commands will **irreversibly** **delete** the existing ''saves'' folder and replace it with whatever is in that tarball, after a brief 10-second period
  
 +  ls ~/'Downloads/'*'-manual-Minecraft-Saves.tar.gz' && echo 'You have 10 seconds to stop this if necessary...' && sleep 10 && rm -Rf ~/'.minecraft/saves' && mkdir -p ~/'.minecraft/saves' && tar -xvzf ~/'Downloads/'*'-manual-Minecraft-Saves.tar.gz' -C ~/'.minecraft' 'saves' && sync
games/minecraft_java.1577902635.txt.gz · Last modified: 2020/01/01 13:17 by Sean Rhone