User avatar
MasterBuilder121
Posts: 5
Joined: Sun Jan 10, 2016 9:12 pm

Re: How to setup Minecraft 1.8.9 on RaspPi2

Thu Jun 02, 2016 3:55 am

Firestorm185 wrote:Hey guys! Thanks a TON for this information! It's been amazing playing Minecraft on my Pi 2! I just have two questions:

1- I was playing it with OptiFine and was testing out lower resolutions for fullscreen and I got down to one of the lower ones and it stopped outputting to my monitor... so now I'm stuck. Anyone know how to fix it?

2 - is there a way to manually set OptiFine's settings without Miencraft running? Like, a text doc somewhere in the settings. If so, would someone know where? I can't find it.

Thanks and have a great one! :D
Yes, there is a txt doc in .minecraft called "optionsof". If you want to, you can just delete it and Optifine will reset to default. You can edit it if you want to though. :D
Nope, I refuse to use those "signatures" that everybody... oh.

inimidi
Posts: 6
Joined: Sat Jun 04, 2016 3:05 am

Re: How to setup Minecraft 1.8.9 on RaspPi2

Sat Jun 04, 2016 3:13 am

Hello world,

Thanks for the tutorial. However, I keep running into the same error (posted in the code below).

I use a Pi3
It is connected to the HDMI of a samsung screen

I already did try re-updating the lwjgl and redownloaded and updated ./run.sh
I also edited my minecraft profile to 1.8.9

The game output :

Code: Select all

Java HotSpot(TM) Client VM warning: Using incremental CMS is deprecated and will likely be removed in a future release
Java HotSpot(TM) Client VM warning: You have loaded library /home/pi/.minecraft/versions/1.8.9/1.8.9-natives-3490523417582/liblwjgl64.so which might have disabled stack guard. The VM will try to fix the stack guard now.
It's highly recommended that you fix the library with 'execstack -c <libfile>', or link it with '-z noexecstack'.
Exception in thread "main" java.lang.UnsatisfiedLinkError: /home/pi/.minecraft/versions/1.8.9/1.8.9-natives-3490523417582/liblwjgl.so: /home/pi/.minecraft/versions/1.8.9/1.8.9-natives-3490523417582/liblwjgl.so: cannot open shared object file: No such file or directory (Possible cause: can't load IA 32-bit .so on a ARM-bit platform)
	at java.lang.ClassLoader$NativeLibrary.load(Native Method)
	at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1938)
	at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1854)
	at java.lang.Runtime.loadLibrary0(Runtime.java:870)
	at java.lang.System.loadLibrary(System.java:1122)
	at org.lwjgl.Sys$1.run(Sys.java:72)
	at java.security.AccessController.doPrivileged(Native Method)
	at org.lwjgl.Sys.doLoadLibrary(Sys.java:66)
	at org.lwjgl.Sys.loadLibrary(Sys.java:96)
	at org.lwjgl.Sys.<clinit>(Sys.java:117)
	at ave.J(SourceFile:2539)
	at net.minecraft.client.main.Main.main(SourceFile:41)
Does anyone have a fix for this?

DatGamingLad
Posts: 2
Joined: Tue May 31, 2016 6:33 pm

Re: How to setup Minecraft 1.8.9 on RaspPi2

Sat Jun 04, 2016 1:19 pm

How can i join servers on this!

BaconBoss
Posts: 1
Joined: Mon Jun 06, 2016 3:20 am

Re: How to setup Minecraft 1.8.9 on RaspPi2

Mon Jun 06, 2016 3:30 am

I can't play on server. Help.

screenburner
Posts: 2
Joined: Mon Jun 06, 2016 5:53 am

Re: How to setup Minecraft 1.8.9 on RaspPi2

Mon Jun 06, 2016 5:59 am

Many thanks, I got it running. However very quickly ran into this problem:


# A fatal error has been detected by the Java Runtime Environment:
#
# SIGSEGV (0xb) at pc=0x2ea51cd8, pid=2641, tid=1983198304
#
# JRE version: Java(TM) SE Runtime Environment (8.0_65-b17) (build 1.8.0_65-b17)
# Java VM: Java HotSpot(TM) Client VM (25.65-b01 mixed mode linux-arm )
# Problematic frame:
# C [vc4_dri.so+0x357cd8]
#
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# If you would like to submit a bug report, please visit:
# http://bugreport.java.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#

any ideas?

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

Re: How to setup Minecraft 1.8.9 on RaspPi2

Wed Jun 08, 2016 9:59 pm

inimidi wrote:Hello world,

Thanks for the tutorial. However, I keep running into the same error (posted in the code below).

I use a Pi3
It is connected to the HDMI of a samsung screen

I already did try re-updating the lwjgl and redownloaded and updated ./run.sh
I also edited my minecraft profile to 1.8.9

The game output :

Code: Select all

Java HotSpot(TM) Client VM warning: Using incremental CMS is deprecated and will likely be removed in a future release
Java HotSpot(TM) Client VM warning: You have loaded library /home/pi/.minecraft/versions/1.8.9/1.8.9-natives-3490523417582/liblwjgl64.so which might have disabled stack guard. The VM will try to fix the stack guard now.
It's highly recommended that you fix the library with 'execstack -c <libfile>', or link it with '-z noexecstack'.
Exception in thread "main" java.lang.UnsatisfiedLinkError: /home/pi/.minecraft/versions/1.8.9/1.8.9-natives-3490523417582/liblwjgl.so: /home/pi/.minecraft/versions/1.8.9/1.8.9-natives-3490523417582/liblwjgl.so: cannot open shared object file: No such file or directory (Possible cause: can't load IA 32-bit .so on a ARM-bit platform)
	at java.lang.ClassLoader$NativeLibrary.load(Native Method)
	at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1938)
	at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1854)
	at java.lang.Runtime.loadLibrary0(Runtime.java:870)
	at java.lang.System.loadLibrary(System.java:1122)
	at org.lwjgl.Sys$1.run(Sys.java:72)
	at java.security.AccessController.doPrivileged(Native Method)
	at org.lwjgl.Sys.doLoadLibrary(Sys.java:66)
	at org.lwjgl.Sys.loadLibrary(Sys.java:96)
	at org.lwjgl.Sys.<clinit>(Sys.java:117)
	at ave.J(SourceFile:2539)
	at net.minecraft.client.main.Main.main(SourceFile:41)
Does anyone have a fix for this?
Looks like lwjgl and the libraries haven't been downloaded to the correct location.

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

Re: How to setup Minecraft 1.8.9 on RaspPi2

Wed Jun 08, 2016 10:07 pm

Anyone wanting to connect to servers, can you try this new run2.sh file :

Code: Select all

cd ~/Minecraft/ && wget https://www.dropbox.com/s/g6ywxqymfraay2j/run2.sh && sudo chmod +x run2.sh
I basically added some code to get your Minecraft UUID based on your username. Don't forget to edit and change login, username and password.

Professor
Posts: 24
Joined: Fri May 22, 2015 2:16 pm

Re: How to setup Minecraft 1.8.9 on RaspPi2

Sat Jun 11, 2016 12:55 pm

Well, this guide didn't actually work for me. I tried several times but I got this message every single attempt

Code: Select all

Error: Could not find or load main class net.minecraft.client.main.Main
Btw, I'd rather edit this command

Code: Select all

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
to this one

Code: Select all

cd ./.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

screenburner
Posts: 2
Joined: Mon Jun 06, 2016 5:53 am

Re: How to setup Minecraft 1.8.9 on RaspPi2

Sun Jun 12, 2016 6:45 am

Hello, I am fairly new to Raspi3 stuff. I have followed the instructions several times very carefully, but each time I get to the last parst I get:

[email protected]:~ $ chmod 700 runOptifine.sh
chmod: cannot access ‘runOptifine.sh’: No such file or directory

After editing the nano is there a special way to save the shell?

The runOptifine.sh is in the Minecraft Folder.

Any idea what I might be wrong? My children are very keen for me to get this up and running. (ha ha).

Hoping someone can help. Thank you.

Professor
Posts: 24
Joined: Fri May 22, 2015 2:16 pm

Re: How to setup Minecraft 1.8.9 on RaspPi2

Sun Jun 12, 2016 1:34 pm

screenburner wrote: [email protected]:~ $ chmod 700 runOptifine.sh
chmod: cannot access ‘runOptifine.sh’: No such file or directory

The runOptifine.sh is in the Minecraft Folder.
You should be in the folder to apply anything on or run the script. Just do

Code: Select all

cd ./Minecraft
chmod 700 runOptifine.sh
./runOptifine.sh
First command enters the Minecraft folder, second one grants permission, and the last one runs the script. You can run script only if you had entered the directory by cd command, keep it in mind. And yea, I assume that the folder is in your home directory root.

Professor
Posts: 24
Joined: Fri May 22, 2015 2:16 pm

Re: How to setup Minecraft 1.8.9 on RaspPi2

Sun Jun 12, 2016 3:50 pm

Okay, I managed to figure out what the hell was wrong with my case. If you have username different from the default "pi" you're gonna have a problem, because run.sh uses full paths. So, you need to nano the script, find "long list of paths" thing, and edit every instance of "/home/pi" to "/home/yourusername". I tried to use "./" instead but it didn't work. After this pretty long procedure you'll bring Minecraft to work.

Now I got sound to work flawlessly. I think this might fix your sound lags:

Code: Select all

sudo nano /etc/pulse/default.pa
Find and uncomment these lines:

Code: Select all

load-module module-alsa-sink
load-module module-alsa-source device=hw:1,0
Put this line in your config.txt to reduce hiss and noise and increase sound quality via analog jack:

Code: Select all

audio_pwm_mode=2
OpenArena gives me 60 FPS after this sound fix, Minecraft audio works just like on PC, and the whole audio playback doesn't chop and crack.

rpiRyan
Posts: 9
Joined: Tue May 10, 2016 12:34 am

Re: How to setup Minecraft 1.8.9 on RaspPi2

Wed Jun 22, 2016 8:40 pm

Have compiled video driver to work on Arch Linux ARM.

Created custom run.sh script with even more optimizations to the java code, based on the Optifine run.sh.

Was able to run up to Minecraft 1.9.2 at 22 FPS.


One problem although, tried upgrading to Optifine 1.9.4. Minecraft seems to work properly, but can't get into any Servers or singleplayer.

Obviously this is an error in initializing 3D elements, which points to LWJGL
( At Least According to My Error Logs )

My hypothesis is I upgrade LWJGL to 3.0 and change run.sh to point to 3.0.

However, I cannot find a version of LWJGL that is compiled in .jar format.

Can anyone point me to one?

RyanNut
Posts: 1
Joined: Thu Jun 23, 2016 11:50 pm

Re: How to setup Minecraft 1.8.9 on RaspPi2

Fri Jun 24, 2016 12:02 am

I have downloaded the GL Driver and everytime I turn on my Pi 3 it has the rainbow box, then the GL Driver boots. This ends up with a blank screen. I have wiped everything from my SD card and redownloaded Raspian multiple times and it has nbo effect on the GL Driver. I have also gone into raspi-config and disabled it but that also does nothing. Any help?

Thanks

rpiRyan
Posts: 9
Joined: Tue May 10, 2016 12:34 am

Re: How to setup Minecraft 1.8.9 on RaspPi2

Fri Jun 24, 2016 8:01 pm

RyanNut wrote:I have downloaded the GL Driver and everytime I turn on my Pi 3 it has the rainbow box, then the GL Driver boots. This ends up with a blank screen. I have wiped everything from my SD card and redownloaded Raspian multiple times and it has nbo effect on the GL Driver. I have also gone into raspi-config and disabled it but that also does nothing. Any help?

Thanks
I had this exact same problem on my Raspberry Pi 2, except it wasn't my power supply, it wasn't a problem with my screen, and it wasn't a problem with my SD Card.

I figured out that Arch Linux ARM can also work with the GL Driver.

So, I wiped Debian, and installed Arch. I first installed a display manager, XFCE4, but here are hundreds of display managers, so you can customize your desktop experience.

I then installed the OPENGL driver on Arch, see my tutorial here -viewtopic.php?f=63&t=148898

I then rushed through the Minecraft custom LWJGL etc.. customized Optifine run script..
However, I had to change the run script to adapt to Arch, since the original author of it used full pathes ( / home/pi/Minecraft ) You have to change it do /home/YOURARCHUSERNAME/Minecraft or shorten it with ~/Minecraft.
I recommend a find and replace operation for that.

I successfully ran Minecraft with Optifine 1.9 running at a solid 22 FPS.

Morale of the story?

Debian is shit. Install Arch!

Firestorm185
Posts: 6
Joined: Wed May 13, 2015 1:26 am

Re: How to setup Minecraft 1.8.9 on RaspPi2

Sun Jun 26, 2016 3:35 am

Hello everyone! So I got the Optifine mod working for 1.8.8 and can play reasonably well in single player, yet whenever I try to join a multiplayer server it tells me I have an invalid session :cry: . Anyone know how this can be resolved? I'd really like to use my Pi as a portable multiplayer PC for minecraft, if possible :D . Thanks for the help!

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

Re: How to setup Minecraft 1.8.9 on RaspPi2

Sun Jun 26, 2016 6:42 am

Firestorm185 wrote:Hello everyone! So I got the Optifine mod working for 1.8.8 and can play reasonably well in single player, yet whenever I try to join a multiplayer server it tells me I have an invalid session :cry: . Anyone know how this can be resolved? I'd really like to use my Pi as a portable multiplayer PC for minecraft, if possible :D . Thanks for the help!
Try this run2.sh (a few posts back) :

viewtopic.php?p=990835#p990835

Firestorm185
Posts: 6
Joined: Wed May 13, 2015 1:26 am

Re: How to setup Minecraft 1.8.9 on RaspPi2

Sun Jun 26, 2016 11:07 am

rpiMike wrote:
Firestorm185 wrote:Hello everyone! So I got the Optifine mod working for 1.8.8 and can play reasonably well in single player, yet whenever I try to join a multiplayer server it tells me I have an invalid session :cry: . Anyone know how this can be resolved? I'd really like to use my Pi as a portable multiplayer PC for minecraft, if possible :D . Thanks for the help!
Try this run2.sh (a few posts back) :

viewtopic.php?p=990835#p990835
Does that run2.sh file work with the Optifine version? What would I have to change to get it to launch Optifine instead of normal minecraft? (I got run2.sh to work without an Optifine version, just not with it)

Thanks again!

RAZERZ
Posts: 57
Joined: Mon Jun 13, 2016 4:56 pm

Re: How to setup Minecraft 1.8.9 on RaspPi2

Tue Jun 28, 2016 12:57 pm

C-Fu wrote:It works! A bit sluggish though. Gonna try running it on RPi3 tomorrow.

OptiFine's version doesn't work for me. Only thing that's different is I used the current-version ASM 5.1 and not asm 5.0.3 as well as OptiFine_1.8.9_HD_U_H5 as I can't find OptiFine_1.8.9_HD_U_H3.

Code: Select all

[email protected]:~/Minecraft $ ./runOptifine.sh 
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   417  100   255  100   162    278    176 --:--:-- --:--:-- --:--:--   278
todays access token = c973ca064629493d9c7f8afc66828cf2
Java HotSpot(TM) Client VM warning: Using incremental CMS is deprecated and will likely be removed in a future release
Apr 13, 2016 10:54:45 PM net.minecraft.launchwrapper.LogWrapper log
INFO: Loading tweak class name optifine.OptiFineTweaker
Apr 13, 2016 10:54:45 PM 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)
You have to use h3 for it otherwise you'll get this error.
Here is the link; http://optifine.net/adloadx?f=OptiFine_ ... D_U_H3.jar
Raspberry pi 3 set up as desktop with raspbian.
I guess you can say I am not newbie with linux but I am not a master at it either.
I will always try to help you as much as I can because I know how hard it is to run into problems :D

owen_soo
Posts: 18
Joined: Thu Jul 07, 2016 7:54 pm

Re: How to setup Minecraft 1.8.9 on RaspPi2

Mon Jul 11, 2016 5:02 pm

I have got the Minecraft launcher to run on rpi2 but when I click play it gives me this error:

Code: Select all

    Java HotSpot(TM) Client VM warning: Using incremental CMS is deprecated and will likely be removed in a future release
    Java HotSpot(TM) Client VM warning: You have loaded library /home/pi/.minecraft/versions/1.8.9/1.8.9-natives-3490523417582/liblwjgl64.so which might have disabled stack guard. The VM will try to fix the stack guard now.
    It's highly recommended that you fix the library with 'execstack -c <libfile>', or link it with '-z noexecstack'.
    Exception in thread "main" java.lang.UnsatisfiedLinkError: /home/pi/.minecraft/versions/1.8.9/1.8.9-natives-3490523417582/liblwjgl.so: /home/pi/.minecraft/versions/1.8.9/1.8.9-natives-3490523417582/liblwjgl.so: cannot open shared object file: No such file or directory (Possible cause: can't load IA 32-bit .so on a ARM-bit platform)
       at java.lang.ClassLoader$NativeLibrary.load(Native Method)
       at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1938)
       at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1854)
       at java.lang.Runtime.loadLibrary0(Runtime.java:870)
       at java.lang.System.loadLibrary(System.java:1122)
       at org.lwjgl.Sys$1.run(Sys.java:72)
       at java.security.AccessController.doPrivileged(Native Method)
       at org.lwjgl.Sys.doLoadLibrary(Sys.java:66)
       at org.lwjgl.Sys.loadLibrary(Sys.java:96)
       at org.lwjgl.Sys.<clinit>(Sys.java:117)
       at ave.J(SourceFile:2539)
       at net.minecraft.client.main.Main.main(SourceFile:41)
:o
I see this happened to other people to. Please tell me how to fix. Thanks. :|

XteapotX
Posts: 1
Joined: Tue Jul 12, 2016 12:37 am

Re: How to setup Minecraft 1.8.9 on RaspPi2

Tue Jul 12, 2016 12:46 am

Not sure if this is frowned upon but would anybody that has this up and running Be willing to make an SD card and sell it?
I have a pi 3 with open electronic on it but this changing lines and such is above my knowledge.. would love to get this for my son so I can have my laptop back..

weid
Posts: 1
Joined: Sat Jul 23, 2016 12:45 pm

Kano Pi3 Latest Minecraft

Sat Jul 23, 2016 12:59 pm

brand new Kano Pi 3 for son and haven't touched unix in 15+ years.
not sure if I screwed up withthe commands sicne I believe it got release 1.10 but getting this error when I execute run.sh

% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 415 100 259 100 156 1113 670 --:--:-- --:--:-- --:--:-- 1146
todays access token = 31f62a1327a3451ba35a6169b1d30f88
Java HotSpot(TM) Client VM warning: Using incremental CMS is deprecated and will likely be removed in a future release
Error: Could not find or load main class net.minecraft.client.main.Main

Purpletofucrate
Posts: 1
Joined: Mon Jul 25, 2016 4:00 pm

Re: How to setup Minecraft 1.8.9 on RaspPi2

Mon Jul 25, 2016 4:02 pm

I got minecraft 1.8.9 running, but whenever I try to connect to a server it says I have an invalid session. It suggested restarting my game, but that doesn't help. Does anyone know how to fix this? I have a Raspberry Pi 3.

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

Re: How to setup Minecraft 1.8.9 on RaspPi2

Tue Jul 26, 2016 6:31 am

Purpletofucrate wrote:I got minecraft 1.8.9 running, but whenever I try to connect to a server it says I have an invalid session. It suggested restarting my game, but that doesn't help. Does anyone know how to fix this? I have a Raspberry Pi 3.
Try this run2.sh (a few posts back) :

viewtopic.php?p=990835#p990835

alguien
Posts: 2
Joined: Tue Mar 22, 2016 4:20 pm

Re: How to setup Minecraft 1.8.9 on RaspPi2

Sat Jul 30, 2016 8:39 am

Hello, i can perfectly play minecraft 1.8.9,when i try to play minecraft 1.9 or 1.10 it opens, but i cant entry in any singleplayer or multiplayer world. When i try it the raspberry blocks and i cant even move the mouse or keyboard, i need to dissconect it and connect again to reboot. How do i fix this please?

Thanks.

EDIT: Sorry, it works correctly, the problem was i was connecting the raspberry to a source of 1A, i connected it to 2A and now works. Perfect!!

RealMicahTheManiac
Posts: 1
Joined: Sun Jul 24, 2016 7:51 pm
Contact: Website

Re: How to setup Minecraft 1.8.9 on RaspPi2

Sun Jul 31, 2016 10:09 pm

Thanks for the help, but I can't run Minecraft. I edited the 'run.sh' but what do I put for "MINECRAFT_LOGIN"? I filled in my username and password. Also when I run it it says:
"Java HotSpot(TM) Client VM warning: Using incremental CMS is deprecated and will likely be removed in a future release"
And after that it then says:
"Error: Could not find or laod main class net.minecraft.client.main.Main"

I understand the warning but why is there an error? I am running on a Raspberry Pi 3, so i don't need to Overclock.

Help would be appreciated, Thanks!
-Micah

Return to “Gaming”