Sumie
Posts: 51
Joined: Tue Oct 18, 2016 2:03 pm

Re: How to setup Minecraft 1.8.9 on RaspPi2

Tue Nov 22, 2016 7:04 pm

Just tried it again on a fresh image of Raspbian Jesse 9-23 and then fully updating, and still getting the Broken Pipe messages with OpenAL. Not sure why. It worked the first time I loaded it though, just like my last attempt. Very strange.

bjsmith53149
Posts: 1
Joined: Thu Nov 24, 2016 8:57 pm

Re: How to setup Minecraft 1.8.9 on RaspPi2

Thu Nov 24, 2016 9:07 pm

The 1.8.9 steps work great. Thanks Mike! Has anyone had success running 1.10 or 1.11 on a pi3? If so, can you post your steps?

Sumie
Posts: 51
Joined: Tue Oct 18, 2016 2:03 pm

Re: How to setup Minecraft 1.8.9 on RaspPi2

Fri Nov 25, 2016 3:26 am

Installed 1.11 with the newly released OptiFine 1.11 (about 4 hours ago), and it works like a champ again. I made sure to take the time to upgrade all of the Raspbian components and there seem to be some improvements to the experimental OpenGL driver or something, the game is running even smoother than it was before. I'll post pics soon.

Xynus
Posts: 22
Joined: Tue Apr 05, 2016 12:18 am

Re: How to setup Minecraft 1.8.9 on RaspPi2

Sat Nov 26, 2016 12:46 am

Nice. Can you post the C: line? I keep having trouble with running it.

Sumie
Posts: 51
Joined: Tue Oct 18, 2016 2:03 pm

Re: How to setup Minecraft 1.8.9 on RaspPi2

Sat Nov 26, 2016 2:27 am

What specifically are you having problems with? What error are you seeing?

Upload your current runOptifine.sh and I'll look it over and find your problem (if the problem is with the script).

Sumie
Posts: 51
Joined: Tue Oct 18, 2016 2:03 pm

Re: How to setup Minecraft 1.8.9 on RaspPi2

Sat Nov 26, 2016 3:46 am

Here's my new runOptifine.sh script, all you have to do is replace the Login, Username, Password, Clienttoken and UUID fields.

Please let me know if this does work, or post your problems if it doesn't.

(I have no other way to upload this so I am pasting it as code text)
Copy the whole code text and paste it into either your current runOptifine.sh, or make a new one (then replace the fields, naturally) Edit: then save, duh.

(Also, I just modified the original script, so the original authors who did all the hard work get the credit for this still.)

Code: Select all

#!/bin/sh
#
# script to run minecraft on ARM linux.  for reference:
#
#   http://rogerallen.github.io/jetson/2014/07/31/minecraft-on-jetson-tk1/
#   https://devtalk.nvidia.com/default/topic/764821/embedded-systems/minecraft-on-the-jetson-tk1/
#   https://gist.github.com/rogerallen/91526c9c8be1a82881e0
#

# !!! YOU MUST PERSONALIZE ALL OF THIS INFO !!!
# your personal login/password.  chmod 700 to keep this private
[email protected]
MINECRAFT_USERNAME=xxxx
MINECRAFT_PASSWORD=xxxx
# where did you store the native liblwjgl.so and libopenal.so?
MINECRAFT_NATIVE_PATH=~/Minecraft/Natives
# info from initial run data in .minecraft/launcher_profiles.json
MINECRAFT_CLIENTTOKEN=12345
MINECRAFT_UUID=12345
MINECRAFT_VERSION=1.11


# SHOULD NOT NEED TO EDIT BELOW THIS LINE

# long list of paths from the minecraft logged commandline
CP=/home/pi/.minecraft/libraries/optifine/OptiFine/1.11_HD_U_B1/OptiFine-1.11_HD_U_B1.jar:/home/pi/.minecraft/libraries/net/minecraft/launchwrapper/1.7/launchwrapper-1.7.jar:/home/pi/.minecraft/libraries/com/mojang/netty/1.6/netty-1.6.jar:/home/pi/.minecraft/libraries/oshi-project/oshi-core/1.1/oshi-core-1.1.jar:/home/pi/.minecraft/libraries/net/java/dev/jna/jna/3.4.0/jna-3.4.0.jar:/home/pi/.minecraft/libraries/net/java/dev/jna/platform/3.4.0/platform-3.4.0.jar:/home/pi/.minecraft/libraries/com/ibm/icu/icu4j-core-mojang/51.2/icu4j-core-mojang-51.2.jar:/home/pi/.minecraft/libraries/net/sf/jopt-simple/jopt-simple/4.6/jopt-simple-4.6.jar:/home/pi/.minecraft/libraries/com/paulscode/codecjorbis/20101023/codecjorbis-20101023.jar:/home/pi/.minecraft/libraries/com/paulscode/codecwav/20101023/codecwav-20101023.jar:/home/pi/.minecraft/libraries/com/paulscode/libraryjavasound/20101123/libraryjavasound-20101123.jar:/home/pi/.minecraft/libraries/com/paulscode/librarylwjglopenal/20100824/librarylwjglopenal-20100824.jar:/home/pi/.minecraft/libraries/com/paulscode/soundsystem/20120107/soundsystem-20120107.jar:/home/pi/.minecraft/libraries/io/netty/netty-all/4.0.23.Final/netty-all-4.0.23.Final.jar:/home/pi/.minecraft/libraries/com/google/guava/guava/17.0/guava-17.0.jar:/home/pi/.minecraft/libraries/org/apache/commons/commons-lang3/3.3.2/commons-lang3-3.3.2.jar:/home/pi/.minecraft/libraries/commons-io/commons-io/2.4/commons-io-2.4.jar:/home/pi/.minecraft/libraries/commons-codec/commons-codec/1.9/commons-codec-1.9.jar:/home/pi/.minecraft/libraries/net/java/jinput/jinput/2.0.5/jinput-2.0.5.jar:/home/pi/.minecraft/libraries/net/java/jutils/jutils/1.0.0/jutils-1.0.0.jar:/home/pi/.minecraft/libraries/com/google/code/gson/gson/2.2.4/gson-2.2.4.jar:/home/pi/.minecraft/libraries/com/mojang/authlib/1.5.24/authlib-1.5.24.jar:/home/pi/.minecraft/libraries/com/mojang/realms/1.10.4/realms-1.10.4.jar:/home/pi/.minecraft/libraries/org/apache/commons/commons-compress/1.8.1/commons-compress-1.8.1.jar:/home/pi/.minecraft/libraries/org/apache/httpcomponents/httpclient/4.3.3/httpclient-4.3.3.jar:/home/pi/.minecraft/libraries/commons-logging/commons-logging/1.1.3/commons-logging-1.1.3.jar:/home/pi/.minecraft/libraries/org/apache/httpcomponents/httpcore/4.3.2/httpcore-4.3.2.jar:/home/pi/.minecraft/libraries/it/unimi/dsi/fastutil/7.0.12_mojang/fastutil-7.0.12_mojang.jar:/home/pi/.minecraft/libraries/org/apache/logging/log4j/log4j-api/2.0-beta9/log4j-api-2.0-beta9.jar:/home/pi/.minecraft/libraries/org/apache/logging/log4j/log4j-core/2.0-beta9/log4j-core-2.0-beta9.jar:/home/pi/.minecraft/libraries/org/lwjgl/lwjgl/lwjgl/2.9.4-nightly-20150209/lwjgl-2.9.4-nightly-20150209.jar:/home/pi/.minecraft/libraries/org/lwjgl/lwjgl/lwjgl_util/2.9.4-nightly-20150209/lwjgl_util-2.9.4-nightly-20150209.jar:/home/pi/.minecraft/versions/1.11-OptiFine_HD_U_B1/1.11-OptiFine_HD_U_B1.jar
TWEAK_CLASS=optifine.OptiFineTweaker

# thanks to xRoyx on the nvidia dev forums for this update.
# the authtoken changes daily, so we need to login to authenticate
MINECRAFT_ATOKEN="$(\
curl -i \
  -H "Accept:application/json" \
  -H "content-Type:application/json" \
  https://authserver.mojang.com/authenticate \
  -X POST \
  --data '{"agent": {"name": "Minecraft","version": 1}, "username": "'$MINECRAFT_LOGIN'", "password": "'$MINECRAFT_PASSWORD'",  "clientToken": "'$MINECRAFT_CLIENTTOKEN'" }' \
  | sed '/accessToken":"/!d;s//&\n/;s/.*\n//;:a;/",/bb;$!{n;ba};:b;s//\n&/;P;D' \
)"
# '

echo "todays access token = "$MINECRAFT_ATOKEN

# run minecraft with all the right commandline options
/usr/lib/jvm/jdk-8-oracle-arm32-vfp-hflt/jre/bin/java \
    -Xmn128M -Xmx1024M \
    -XX:+UseConcMarkSweepGC \
    -XX:+CMSIncrementalMode \
    -XX:-UseAdaptiveSizePolicy \
    -XX:SoftRefLRUPolicyMSPerMB=10000 \
    -XX:ParallelGCThreads=3 \
    -Djava.library.path=$MINECRAFT_NATIVE_PATH \
    -cp $CP \
  net.minecraft.launchwrapper.Launch \
    --username $MINECRAFT_USERNAME \
    --accessToken "$MINECRAFT_ATOKEN" \
    --uuid "$MINECRAFT_UUID" \
    --version $MINECRAFT_VERSION \
    --userProperties {} \
    --gameDir ~/.minecraft \
    --assetsDir ~/.minecraft/assets \
    --assetIndex $MINECRAFT_VERSION \
    --tweakClass $TWEAK_CLASS

Exraldo
Posts: 2
Joined: Sat Nov 26, 2016 5:06 pm

Re: How to setup Minecraft 1.8.9 on RaspPi2

Sat Nov 26, 2016 5:12 pm

Hey i tried to do this but when i enable the experimental driver and rebooted everything on the display changed to like 5 times the size. I've tried changing the monitor width and height in noobs manually, but it either ends up massive or the text is unreadably low quality. So i tried formatting my SD card and reinstalling noobs - still got the same problem. Anyone know a fix?

Sumie
Posts: 51
Joined: Tue Oct 18, 2016 2:03 pm

Re: How to setup Minecraft 1.8.9 on RaspPi2

Sat Nov 26, 2016 10:47 pm

I couldn't get the image to display at all on one of my TVs when I tried yesterday. I may have to try turning off the experimental OpenGL driver to see if that's my problem.

Having said that, have you tried using a different monitor or TV to see if the problem is the same on different screens?

Sumie
Posts: 51
Joined: Tue Oct 18, 2016 2:03 pm

Re: How to setup Minecraft 1.8.9 on RaspPi2

Sun Dec 11, 2016 6:18 am

This newest Raspian update seems to have made a bunch of things unstable. I have tried reloading the image a couple times and fullscreen OpenGL Minecraft flickers like crazy. The desktop in general seems to be a bit unstable as well now, whereas it didn't used to be.

I thought maybe it was just the image build so I went back to the September update and upgraded it but still got the same problem. Hopefully the next release in a couple months will stabilize the problem.

Makes me sad. I was getting ~55 fps in 1.11 in fullscreen mode at 640x480 but now I can't.

Kulkinz
Posts: 1
Joined: Tue Dec 27, 2016 10:09 pm

Re: How to setup Minecraft 1.8.9 on RaspPi2

Tue Dec 27, 2016 10:12 pm

I need help. I followed this tutorial and it is working perfectly in 1.8.9, and now I want to update to 1.11.2. Can anyone help me? No matter what I do, it keeps launching in 1.8.9

superminipixel
Posts: 1
Joined: Thu Dec 29, 2016 4:45 pm

Re: How to setup Minecraft 1.8.9 on RaspPi2

Thu Dec 29, 2016 4:52 pm

my raspberry pi running pixel
when i try to enable opencl it sais
there was an error running opencl

Squelch
Posts: 1
Joined: Fri Dec 30, 2016 5:01 pm

Re: How to setup Minecraft 1.8.9 on RaspPi2

Fri Dec 30, 2016 7:28 pm

Just a heads up for something of a gotcha. I have a Sharp TV that reports 1080i native EDID despite being perfectly capable of 1080p. There does not appear to be provision to set the HDMI mode with the current v3d libraries.

Minecraft crashes if connected to a 1080i display with.

Code: Select all

OpenGL: ~~ERROR~~ RuntimeException: No OpenGL context found in the current thread.
when a RPI3 is connected to this Sharp TV, but found to work without issue on other 1080p native monitors.

To test if this affects you, try the following steps.
  • Disable Experimental GL driver
    Reboot when prompted.+
    Open "Preferences -> Raspberry Pi configuration"
    Ensure that monitor preference is in effect. Select "Set resolution -> Default -preferred monitor settings"
    Reboot if not already set as default from the list.
    In a terminal, type

    Code: Select all

    tvservice -s
    This will print the current status eg.

    Code: Select all

    $ tvservice -s
    state 0x12000a [HDMI CEA (5) RGB lim 16:9], 1920x1080 @ 60.00Hz, interlaced
    
If the current status shows interlaced, Minecraft will probably crash with the "No OpenGL context found in the current thread." error. Instead, output like this should allow Minecraft to run:

Code: Select all

state 0x120009 [HDMI CEA (16) RGB lim 16:9], 1920x1080 @ 60.00Hz, progressive
Notes:
  • "Default - preferred monitor settings" is the only resolution available while in GL mode.
    Using the command

    Code: Select all

    tvservice -s
    in an attempt to return the current status while in GL mode can be misleading and will return whatever the previous non GL setting was regardless (possibly from config.txt?). I believe this may be a bug as all other tvservice commands have no meaning while in OpenGL mode.

    Code: Select all

    xrandr
    will return the available and current modes.
TLDR: Minecraft will not run on 1080 interlaced displays

I am happy to report that MC 1.11.2 is running despite the above, so thanks go to the OP and all contributors to this thread.

CreaturezxTDB
Posts: 2
Joined: Thu Dec 29, 2016 2:52 am

Re: How to setup Minecraft 1.8.9 on RaspPi2

Sat Dec 31, 2016 2:21 am

i am having some trouble with the optifine setup, going to run process and terminal closes as soon as i run it. anyone have any ideas why it wont work?

Lustig1374
Posts: 1
Joined: Tue Jan 03, 2017 4:26 pm

Re: How to setup Minecraft 1.8.9 on RaspPi2

Tue Jan 03, 2017 4:32 pm

Could someone please post the full instructions for Minecraft 1.11.2 on the RPI2? I'm having could not find load main class issues when following the normal instructions with 1.11.2 as version. 1.8.9 works fine btw.
Later on, getting Liteloader and MakroMod to work would be great, too.

Sumie
Posts: 51
Joined: Tue Oct 18, 2016 2:03 pm

Re: How to setup Minecraft 1.8.9 on RaspPi2

Wed Jan 04, 2017 8:06 pm

So if anyone's curious on how to get the up-to-date CP line after installing 1.11.2 and optifine (so you can update the optifine script "runOptifine.sh"), you can copy it from the terminal when you try to run minecraft+optifine normally through the launcher. You have to look for it after minecraft crashes, but it's there. It's the section that looks like a bunch of JAR files loading in a group.

DDSSK13
Posts: 6
Joined: Thu Jul 09, 2015 4:40 pm

Re: How to setup Minecraft 1.8.9 on RaspPi2

Thu Jan 05, 2017 2:41 am

I cant get optifind to work, can anyone help me?

This is all I get.

Code: Select all

[email protected]:~/Minecraft $ ./runOptifine.sh 
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   431  100   261  100   170    532    346 --:--:-- --:--:-- --:--:--   533
todays access token = 9b5b0f0c110048f3b776eabd102cc808
Java HotSpot(TM) Client VM warning: Using incremental CMS is deprecated and will likely be removed in a future release
Jan 05, 2017 2:35:59 AM net.minecraft.launchwrapper.LogWrapper log
INFO: Loading tweak class name optifine.OptiFineTweaker
Jan 05, 2017 2:35:59 AM net.minecraft.launchwrapper.LogWrapper log
SEVERE: Unable to launch
java.lang.ClassNotFoundException: optifine.OptiFineTweaker
	at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
	at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:99)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(Class.java:348)
	at net.minecraft.launchwrapper.Launch.launch(Launch.java:94)
	at net.minecraft.launchwrapper.Launch.main(Launch.java:27)
Any tips or pointers would be very helpfull.
Thanks

Sumie
Posts: 51
Joined: Tue Oct 18, 2016 2:03 pm

Re: How to setup Minecraft 1.8.9 on RaspPi2

Thu Jan 05, 2017 3:26 pm

DDSSK13 wrote:I cant get optifind to work, can anyone help me?

This is all I get.

Code: Select all

[email protected]:~/Minecraft $ ./runOptifine.sh 
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   431  100   261  100   170    532    346 --:--:-- --:--:-- --:--:--   533
todays access token = 9b5b0f0c110048f3b776eabd102cc808
Java HotSpot(TM) Client VM warning: Using incremental CMS is deprecated and will likely be removed in a future release
Jan 05, 2017 2:35:59 AM net.minecraft.launchwrapper.LogWrapper log
INFO: Loading tweak class name optifine.OptiFineTweaker
Jan 05, 2017 2:35:59 AM net.minecraft.launchwrapper.LogWrapper log
SEVERE: Unable to launch
java.lang.ClassNotFoundException: optifine.OptiFineTweaker
	at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
	at net.minecraft.launchwrapper.LaunchClassLoader.findClass(LaunchClassLoader.java:99)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(Class.java:348)
	at net.minecraft.launchwrapper.Launch.launch(Launch.java:94)
	at net.minecraft.launchwrapper.Launch.main(Launch.java:27)
Any tips or pointers would be very helpfull.
Thanks
Either you haven't run minecraft through the launcher and let it crash after installing optifine yet, or you deleted the "optifine.OptiFineTweaker" line that should exist after your CP variable in runOptifine.sh, or you removed the linebreak after the CP variable (the "optifine.OptiFineTweaker" line should NOT be a part of the CP variable).

UsenetDudez
Posts: 1
Joined: Fri Jan 06, 2017 12:06 pm
Location: The Usenet
Contact: Website

Re: How to setup Minecraft 1.8.9 on RaspPi2

Fri Jan 06, 2017 12:52 pm

Super tutorial got it working! THX! :D

quavoce
Posts: 109
Joined: Fri Nov 27, 2015 9:11 am

Re: How to setup Minecraft 1.8.9 on RaspPi2

Wed Jan 11, 2017 9:54 pm

These are the commands that I ran to get Minecraft 1.11.2 running on my RPi3 (latest Wheezy). They have all been taken from the first page instructions, and just copied here for reference to show what worked.

Code: Select all

sudo apt-get update && sudo apt-get -y upgrade

sudo apt-get -y install xcompmgr libgl1-mesa-dri && sudo apt-get -y install libalut0 libalut-dev && sudo apt-get -y install mesa-utils
Enable ‘AA GL Driver’

Code: Select all

sudo raspi-config
Select 'Advanced Options', then select 'GL Driver', then select 'Enable', then select 'Yes' to reboot and enable the driver.

Code: Select all

glxgears

Code: Select all

mkdir ~/Minecraft; mkdir ~/Minecraft/Natives; cd ~/Minecraft && wget https://s3.amazonaws.com/Minecraft.Download/launcher/Minecraft.jar

java -jar Minecraft.jar
Login with Minecraft email and password

Selected latest release in profile which was 1.11.2

Clicked Play to install game and let it crash

Close launcher

Code: Select all

cd ~/Minecraft/Natives && wget https://www.dropbox.com/s/4oxcvz3ky7a3x6f/liblwjgl.so && wget https://www.dropbox.com/s/m0r8e01jg2og36z/libopenal.so

cd /home/pi/.minecraft/libraries/org/lwjgl/lwjgl/lwjgl/2.9.4-nightly-20150209 && rm lwjgl-2.9.4-nightly-20150209.jar; wget https://www.dropbox.com/s/mj15sz3bub4dmr6/lwjgl-2.9.4-nightly-20150209.jar
Downloaded OptiFine_1.11.2_HD_U_B5.jar from web on the Pi

Code: Select all

cd ~/Downloads
java -jar OptiFine_1.11.2_HD_U_B5.jar
Clicked Install

Code: Select all

cd ~/Minecraft
java -jar Minecraft.jar
Optifine profile was selected, clicked play and let it crash

Code: Select all

cd ~/Minecraft
mkdir Libraries
cd Libraries
Download asm-5.0.4-bin.zip from http://forge.ow2.org/project/showfiles. ... se_id=5660

Code: Select all

cd ~/Minecraft/Libraries
mv ~/Downloads/asm-5.0.4-bin.zip .
unzip asm-5.0.4-bin.zip

cd ~/Minecraft
wget https://www.dropbox.com/s/0r5trow18vi5vls/runOptifine.sh?dl=1 -O runOptifine.sh
Fill runOptifine.sh with your Minecraft login details
Edit MINECRAFT_LOGIN, MINECRAFT_USERNAME, MINECRAFT_PASSWORD and MINECRAFT_UUID:
Also change the min craft version to 1.11 (even if you're using 1.11.2)

Code: Select all

MINECRAFT_VERSION=1.11
Used the following text within my runOptifine.sh

Code: Select all

# SHOULD NOT NEED TO EDIT BELOW THIS LINE
# long list of paths from the minecraft logged commandline
CP=/home/pi/.minecraft/libraries/optifine/OptiFine/1.11.2_HD_U_B5/OptiFine-1.11.2_HD_U_B5.jar:/home/pi/.minecraft/libraries/net/minecraft/launchwrapper/1.7/launchwrapper-1.7.jar:/home/pi/.minecraft/libraries/com/mojang/netty/1.6/netty-1.6.jar:/home/pi/.minecraft/libraries/oshi-project/oshi-core/1.1/oshi-core-1.1.jar:/home/pi/.minecraft/libraries/net/java/dev/jna/jna/3.4.0/jna-3.4.0.jar:/home/pi/.minecraft/libraries/net/java/dev/jna/platform/3.4.0/platform-3.4.0.jar:/home/pi/.minecraft/libraries/com/ibm/icu/icu4j-core-mojang/51.2/icu4j-core-mojang-51.2.jar:/home/pi/.minecraft/libraries/net/sf/jopt-simple/jopt-simple/4.6/jopt-simple-4.6.jar:/home/pi/.minecraft/libraries/com/paulscode/codecjorbis/20101023/codecjorbis-20101023.jar:/home/pi/.minecraft/libraries/com/paulscode/codecwav/20101023/codecwav-20101023.jar:/home/pi/.minecraft/libraries/com/paulscode/libraryjavasound/20101123/libraryjavasound-20101123.jar:/home/pi/.minecraft/libraries/com/paulscode/librarylwjglopenal/20100824/librarylwjglopenal-20100824.jar:/home/pi/.minecraft/libraries/com/paulscode/soundsystem/20120107/soundsystem-20120107.jar:/home/pi/.minecraft/libraries/io/netty/netty-all/4.0.23.Final/netty-all-4.0.23.Final.jar:/home/pi/.minecraft/libraries/com/google/guava/guava/17.0/guava-17.0.jar:/home/pi/.minecraft/libraries/org/apache/commons/commons-lang3/3.3.2/commons-lang3-3.3.2.jar:/home/pi/.minecraft/libraries/commons-io/commons-io/2.4/commons-io-2.4.jar:/home/pi/.minecraft/libraries/commons-codec/commons-codec/1.9/commons-codec-1.9.jar:/home/pi/.minecraft/libraries/net/java/jinput/jinput/2.0.5/jinput-2.0.5.jar:/home/pi/.minecraft/libraries/net/java/jutils/jutils/1.0.0/jutils-1.0.0.jar:/home/pi/.minecraft/libraries/com/google/code/gson/gson/2.2.4/gson-2.2.4.jar:/home/pi/.minecraft/libraries/com/mojang/authlib/1.5.24/authlib-1.5.24.jar:/home/pi/.minecraft/libraries/com/mojang/realms/1.10.4/realms-1.10.4.jar:/home/pi/.minecraft/libraries/org/apache/commons/commons-compress/1.8.1/commons-compress-1.8.1.jar:/home/pi/.minecraft/libraries/org/apache/httpcomponents/httpclient/4.3.3/httpclient-4.3.3.jar:/home/pi/.minecraft/libraries/commons-logging/commons-logging/1.1.3/commons-logging-1.1.3.jar:/home/pi/.minecraft/libraries/org/apache/httpcomponents/httpcore/4.3.2/httpcore-4.3.2.jar:/home/pi/.minecraft/libraries/it/unimi/dsi/fastutil/7.0.12_mojang/fastutil-7.0.12_mojang.jar:/home/pi/.minecraft/libraries/org/apache/logging/log4j/log4j-api/2.0-beta9/log4j-api-2.0-beta9.jar:/home/pi/.minecraft/libraries/org/apache/logging/log4j/log4j-core/2.0-beta9/log4j-core-2.0-beta9.jar:/home/pi/.minecraft/libraries/org/lwjgl/lwjgl/lwjgl/2.9.4-nightly-20150209/lwjgl-2.9.4-nightly-20150209.jar:/home/pi/.minecraft/libraries/org/lwjgl/lwjgl/lwjgl_util/2.9.4-nightly-20150209/lwjgl_util-2.9.4-nightly-20150209.jar:/home/pi/.minecraft/versions/1.11.2-OptiFine_HD_U_B5/1.11.2-OptiFine_HD_U_B5.jar
TWEAK_CLASS=optifine.OptiFineTweaker

# thanks to xRoyx on the nvidia dev forums for this update.
# the authtoken changes daily, so we need to login to authenticate
MINECRAFT_ATOKEN="$(\
curl -i \
  -H "Accept:application/json" \
  -H "content-Type:application/json" \
  https://authserver.mojang.com/authenticate \
  -X POST \
  --data '{"agent": {"name": "Minecraft","version": 1}, "username": "'$MINECRAFT_LOGIN'", "password": "'$MINECRAFT_PASSWORD'",  "clientToken": "'$MINECRAFT_CLIENTTOKEN'" }' \
  | sed '/accessToken":"/!d;s//&\n/;s/.*\n//;:a;/",/bb;$!{n;ba};:b;s//\n&/;P;D' \
)"
# '

echo "todays access token = "$MINECRAFT_ATOKEN

# run minecraft with all the right commandline options
/usr/lib/jvm/jdk-8-oracle-arm32-vfp-hflt/jre/bin/java \
    -Xmn128M -Xmx1024M \
    -XX:+UseConcMarkSweepGC \
    -XX:+CMSIncrementalMode \
    -XX:-UseAdaptiveSizePolicy \
    -XX:SoftRefLRUPolicyMSPerMB=10000 \
    -XX:ParallelGCThreads=3 \
    -Djava.library.path=$MINECRAFT_NATIVE_PATH \
    -cp $CP \
  net.minecraft.launchwrapper.Launch \
    --username $MINECRAFT_USERNAME \
    --accessToken "$MINECRAFT_ATOKEN" \
    --uuid "$MINECRAFT_UUID" \
    --version $MINECRAFT_VERSION \
    --userProperties {} \
    --gameDir ~/.minecraft \
    --assetsDir ~/.minecraft/assets \
    --assetIndex $MINECRAFT_VERSION \
    --tweakClass $TWEAK_CLASS

Code: Select all

chmod 700 runOptifine.sh
Ran ok - runs at around 11fps atm so need to look at tweaking it. Any tips welcome please! :)
Last edited by quavoce on Fri Jan 20, 2017 8:11 pm, edited 1 time in total.

Sumie
Posts: 51
Joined: Tue Oct 18, 2016 2:03 pm

Re: How to setup Minecraft 1.8.9 on RaspPi2

Thu Jan 12, 2017 4:00 pm

quavoce wrote:These are the commands that I ran to get Minecraft 1.11.2 running on my RPi3 (latest Wheezy). They have all been taken from the first page instructions, and just copied here for reference to show what worked.

....
Glad you got it working! Wasn't too terribly difficult, right? ;) One thing of note that I discovered is you don't need the asm.5.0.4 files. I have never had to install them and mine works just fine too. I have always wondered why that was in the original instructions...

The tips I have is turn everything off, slide the FPS slider all the way to the right to 'Unlimited' (we don't want Vsync, as it vastly destroys FPS), and the render distance to 2 blocks. I do like to keep 'fast' trees on though, as it doesn't seem to drop FPS much, and I hate the black non-transparent leaves. Even disabling the color cycling (or animated textures) option in Optifine gave me 5 FPS increase. When I have tweaked it, I get 30-55 FPS, and is very playable. You'll also want to run fullscreen at the lowest resolution possible, which is 640x480 I believe. Setting the resolution is a slider in one of the video options, I don't recall which one off the top of my head. I have had flickering issues setting fullscreen at low resolutions which only started happening after upgrading the OpenGL driver around November, it would be interesting to know if others are having the same problem. Try it and let me know.

I don't have my RPi with me currently, but when I get home I'll upload my settings file. Once posted, you should be able to copy and paste the contents into your own file and save if you want to try out my settings/optimizations. I will write instructions and locations of these files too, naturally.

quavoce
Posts: 109
Joined: Fri Nov 27, 2015 9:11 am

Re: How to setup Minecraft 1.8.9 on RaspPi2

Thu Jan 12, 2017 9:59 pm

Thanks Sumie, your tips and advice on here really helped me figure things out! I'll have a play with the video settings and see if I can improve fps, but look forward to trying out your settings too.

Sumie
Posts: 51
Joined: Tue Oct 18, 2016 2:03 pm

Re: How to setup Minecraft 1.8.9 on RaspPi2

Sat Jan 14, 2017 7:04 pm

Here's my settings files.
The files Options.txt and Optionsof.txt are in ~\.minecraft. Any folder with a dot is a hidden file, so you have to enter it in manually in the file browser.


options.txt:

Code: Select all

version:922
invertYMouse:true
mouseSensitivity:0.5
fov:0.0
gamma:1.0
saturation:0.0
renderDistance:2
guiScale:1
particles:1
bobView:true
anaglyph3d:false
maxFps:260
fboEnable:true
difficulty:0
fancyGraphics:false
ao:0
renderClouds:fast
resourcePacks:[]
incompatibleResourcePacks:[]
lastServer:
lang:en_us
chatVisibility:0
chatColors:false
chatLinks:false
chatLinksPrompt:false
chatOpacity:1.0
snooperEnabled:false
fullscreen:true
enableVsync:false
useVbo:true
hideServerAddress:false
advancedItemTooltips:false
pauseOnLostFocus:true
touchscreen:false
overrideWidth:0
overrideHeight:0
heldItemTooltips:false
chatHeightFocused:1.0
chatHeightUnfocused:0.44366196
chatScale:1.0
chatWidth:1.0
showInventoryAchievementHint:false
mipmapLevels:0
forceUnicodeFont:false
reducedDebugInfo:false
useNativeTransport:true
entityShadows:true
mainHand:right
attackIndicator:2
showSubtitles:false
realmsNotifications:false
enableWeakAttacks:false
autoJump:false
key_key.attack:-100
key_key.use:-99
key_key.forward:17
key_key.left:30
key_key.back:31
key_key.right:32
key_key.jump:57
key_key.sneak:42
key_key.sprint:29
key_key.drop:16
key_key.inventory:18
key_key.chat:20
key_key.playerlist:15
key_key.pickItem:-98
key_key.command:53
key_key.screenshot:60
key_key.togglePerspective:63
key_key.smoothCamera:0
key_key.fullscreen:87
key_key.spectatorOutlines:0
key_key.swapHands:33
key_key.hotbar.1:2
key_key.hotbar.2:3
key_key.hotbar.3:4
key_key.hotbar.4:5
key_key.hotbar.5:6
key_key.hotbar.6:7
key_key.hotbar.7:8
key_key.hotbar.8:9
key_key.hotbar.9:10
key_of.key.zoom:46
soundCategory_master:1.0
soundCategory_music:1.0
soundCategory_record:1.0
soundCategory_weather:1.0
soundCategory_block:1.0
soundCategory_hostile:1.0
soundCategory_neutral:1.0
soundCategory_player:1.0
soundCategory_ambient:1.0
soundCategory_voice:1.0
modelPart_cape:false
modelPart_jacket:false
modelPart_left_sleeve:false
modelPart_right_sleeve:false
modelPart_left_pants_leg:false
modelPart_right_pants_leg:false
modelPart_hat:false
optionsof.txt:

Code: Select all

ofRenderDistanceChunks:2
ofFogType:1
ofFogStart:0.8
ofMipmapType:0
ofOcclusionFancy:false
ofSmoothFps:false
ofSmoothWorld:false
ofAoLevel:0.0
ofClouds:0
ofCloudsHeight:0.0
ofTrees:4
ofDroppedItems:0
ofRain:0
ofAnimatedWater:0
ofAnimatedLava:0
ofAnimatedFire:true
ofAnimatedPortal:true
ofAnimatedRedstone:true
ofAnimatedExplosion:false
ofAnimatedFlame:true
ofAnimatedSmoke:false
ofVoidParticles:false
ofWaterParticles:false
ofPortalParticles:false
ofPotionParticles:true
ofFireworkParticles:true
ofDrippingWaterLava:true
ofAnimatedTerrain:false
ofAnimatedTextures:false
ofRainSplash:false
ofLagometer:false
ofShowFps:true
ofAutoSaveTicks:4000
ofBetterGrass:3
ofConnectedTextures:3
ofWeather:false
ofSky:true
ofStars:true
ofSunMoon:true
ofVignette:1
ofChunkUpdates:1
ofChunkUpdatesDynamic:false
ofTime:0
ofClearWater:false
ofAaLevel:0
ofAfLevel:1
ofProfiler:false
ofBetterSnow:false
ofSwampColors:false
ofRandomMobs:false
ofSmoothBiomes:true
ofCustomFonts:false
ofCustomColors:false
ofCustomItems:false
ofCustomSky:false
ofShowCapes:false
ofNaturalTextures:false
ofLazyChunkLoading:true
ofDynamicFov:false
ofAlternateBlocks:false
ofDynamicLights:3
ofScreenshotSize:1
ofCustomEntityModels:false
ofFullscreenMode:640x480
ofFastMath:false
ofFastRender:false
ofTranslucentBlocks:1
key_of.key.zoom:46

Maxibob
Posts: 1
Joined: Sun Jan 15, 2017 12:35 am

Re: How to setup Minecraft 1.8.9 on RaspPi2

Sun Jan 15, 2017 12:42 am

Does the raspberry pi 3 need the GLdriver to run minecraft?

User avatar
rpiMike
Posts: 833
Joined: Fri Aug 10, 2012 12:38 pm
Location: Cumbria, UK

Re: How to setup Minecraft 1.8.9 on RaspPi2

Sun Jan 15, 2017 3:06 pm

Maxibob wrote:Does the raspberry pi 3 need the GLdriver to run minecraft?
Yes, Minecraft uses OpenGL, so you do need to enable the experimental GL Driver. If your worried about enabling it, use a spare SD card to test.

Xynus
Posts: 22
Joined: Tue Apr 05, 2016 12:18 am

Re: How to setup Minecraft 1.8.9 on RaspPi2

Sun Jan 15, 2017 4:39 pm

Would there ever be a way to run simple Forge mods on the raspberry pi? I was thinking simpler mods, like Effect HUD, Armour HUD, etc.? OR would the type of mod not make a difference?

Return to “Gaming”