Tomdizzy
Posts: 7
Joined: Sat Oct 20, 2018 9:55 pm

Re: How to setup Minecraft 1.12.2 on Pi3 or Pi4

Wed Jul 24, 2019 1:43 am

jdonald wrote:
Wed Jul 24, 2019 1:33 am
Another user recently got the same error with Forge: https://raspberrypi.stackexchange.com/q ... 12-2-issue

Though their use-case is different (1024x768 HDMI television) the troubleshooting steps may be similar, i.e. I recommend providing the output of xrandr -v and xrandr -q.

And did you get this with Forge installed, or Minecraft alone?

Code: Select all

pi@raspberrypi:~ $ xrandr -v && xrandr -q
xrandr program version       1.5.0
Server reports RandR version 1.5
Screen 0: minimum 320 x 200, current 800 x 480, maximum 7680 x 7680
DSI-1 connected primary 800x480+0+0 (normal left inverted right x axis y axis) 0mm x 0mm
   LCD_MODE      60.05*+
This is with minecraft and optifine only, on an almost fresh installation of raspbian buster.

jdonald
Posts: 413
Joined: Fri Nov 03, 2017 4:36 pm

Re: How to setup Minecraft 1.12.2 on Pi3 or Pi4

Wed Jul 24, 2019 5:30 am

Here's the relevant code: https://github.com/LWJGL/lwjgl/blob/mas ... splay.java

It turns out your error signature is somewhat different from the one on Stack Exchange. I've rootcaused FluxScript's issue to an existing ticket, but don't have an explanation for yours.

Do you have another display like an HDMI monitor where Minecraft is working fine? If we have both the working and failing to compare with all the corresponding XRandR info, that's enough to file an issue on LWJGL.

Tomdizzy
Posts: 7
Joined: Sat Oct 20, 2018 9:55 pm

Re: How to setup Minecraft 1.12.2 on Pi3 or Pi4

Wed Jul 24, 2019 10:54 am

I'm actually ordering a micro hdmi adapter currently, but it doesn't arrive for another day.

jdonald
Posts: 413
Joined: Fri Nov 03, 2017 4:36 pm

Re: How to setup Minecraft 1.12.2 on Pi3 or Pi4

Wed Jul 24, 2019 7:03 pm

Ahh yeah, more cabling with the Pi 4 going to micro-HDMI :D

I came across an insightful post by the guy who maintained this code: http://forum.lwjgl.org/index.php?topic= ... 9#msg33669 Basically every time he fixed one display configuration it broke another. Now that Minecraft 1.13 is on LWJGL 3 they don't plan on investing any more effort into into 2.9.x.

I noticed the implementation in v2.9.2: https://github.com/LWJGL/lwjgl/blob/lwj ... RandR.java does something totally different by parsing the output of xrandr -q. If you install Forge 1.12.2, as a side effect it'll downgrade from 2.9.4 to 2.9.2. That might nudge things to just work with the DSI display, or at least give you the option of placing a wrapper script around xrandr to fool it.

XBVR
Posts: 1
Joined: Thu Jul 25, 2019 5:14 am

Re: How to setup Minecraft 1.12.2 on Pi3 or Pi4

Thu Jul 25, 2019 5:19 am

Running on rPi 3B & getting Java issues, could someone assist trying to set this game up for my 6yr old who really wants to play.
I got everything else to work up to step 5.
I get to step 5 and get the following error:

pi@raspberrypi:~/Minecraft $ cd ~/Minecraft && java -jar Minecraft.jar
Exception in thread "main" java.awt.HeadlessException:
No X11 DISPLAY variable was set, but this program performed an operation which requires it.
at java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:204)
at java.awt.Window.<init>(Window.java:536)
at java.awt.Frame.<init>(Frame.java:420)
at javax.swing.JFrame.<init>(JFrame.java:233)
at net.minecraft.bootstrap.Bootstrap.<init>(Bootstrap.java:45)
at net.minecraft.bootstrap.Bootstrap.main(Bootstrap.java:378)
pi@raspberrypi:~/Minecraft $
pi@raspberrypi:~/Minecraft $ java -version
java version "1.8.0_211"
Java(TM) SE Runtime Environment (build 1.8.0_211-b12)
Java HotSpot(TM) Client VM (build 25.211-b12, mixed mode)
pi@raspberrypi:~/Minecraft $





Thanks in advance!
cheers~

jdonald
Posts: 413
Joined: Fri Nov 03, 2017 4:36 pm

Re: How to setup Minecraft 1.12.2 on Pi3 or Pi4

Thu Jul 25, 2019 7:11 pm

No DISPLAY means you attempted to run it headless, e.g. in an ssh session.

This should be carried out in a terminal window on Raspbian desktop. From there, run:

Code: Select all

    echo $DISPLAY
to confirm.

SquidoodlePi
Posts: 2
Joined: Mon Jul 29, 2019 12:57 pm

Re: How to setup Minecraft 1.12.2 on Pi3 or Pi4

Mon Jul 29, 2019 1:56 pm

When I try step 10, nothing happens and this is what it says in the Terminal

Code: Select all

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   790  100   619  100   171   1484    410 --:--:-- --:--:-- --:--:--  1894
todays access token = 048ce4ef1a94418a9bcae40e7a381aae
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100    69  100    60  100     9    125     18 --:--:-- --:--:-- --:--:--   144
MINECRAFT_UUID=65748545028945d884e2cb3f7933b8e0
Java HotSpot(TM) Server VM warning: Using incremental CMS is deprecated and will likely be removed in a future release
[14:52:32] [main/INFO]: Loading tweak class name optifine.OptiFineTweaker
[14:52:32] [main/INFO]: Using primary tweak class name optifine.OptiFineTweaker
[14:52:32] [main/INFO]: Calling tweak class optifine.OptiFineTweaker
OptiFineTweaker: acceptOptions
OptiFineTweaker: injectIntoClassLoader
OptiFine ClassTransformer
OptiFine ZIP file: /home/pi/.minecraft/libraries/optifine/OptiFine/1.12.2_HD_U_E3/OptiFine-1.12.2_HD_U_E3.jar
OptiFineTweaker: getLaunchArguments
OptiFineTweaker: getLaunchTarget
[14:52:33] [main/INFO]: Launching wrapped minecraft {net.minecraft.client.main.Main}
[14:52:34] [main/ERROR]: Unable to launch
java.lang.reflect.InvocationTargetException: null
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_211]
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_211]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_211]
	at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_211]
	at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.12.jar:?]
	at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.12.jar:?]
Caused by: java.lang.UnsatisfiedLinkError: no lwjgl in java.library.path
	at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1867) ~[?:1.8.0_211]
	at java.lang.Runtime.loadLibrary0(Runtime.java:870) ~[?:1.8.0_211]
	at java.lang.System.loadLibrary(System.java:1122) ~[?:1.8.0_211]
	at org.lwjgl.Sys$1.run(Sys.java:72) ~[lwjgl-2.9.4-nightly-20150209.jar:?]
	at java.security.AccessController.doPrivileged(Native Method) ~[?:1.8.0_211]
	at org.lwjgl.Sys.doLoadLibrary(Sys.java:66) ~[lwjgl-2.9.4-nightly-20150209.jar:?]
	at org.lwjgl.Sys.loadLibrary(Sys.java:96) ~[lwjgl-2.9.4-nightly-20150209.jar:?]
	at org.lwjgl.Sys.<clinit>(Sys.java:117) ~[lwjgl-2.9.4-nightly-20150209.jar:?]
	at bib.I(SourceFile:2825) ~[bib.class:?]
	at net.minecraft.client.main.Main.main(SourceFile:38) ~[Main.class:?]
	... 6 more
./runMC1_12_2_OptifineE3.sh: 71: ./runMC1_12_2_OptifineE3.sh: 345678-1234-1234-1234-123456789abc: not found
If it makes any difference I am using Raspbian Buster on a Pi 4

jdonald
Posts: 413
Joined: Fri Nov 03, 2017 4:36 pm

Re: How to setup Minecraft 1.12.2 on Pi3 or Pi4

Wed Jul 31, 2019 11:44 pm

Error message says it couldn't find liblwjgl.so. Check that the file actually landed there under ~/Minecraft/Natives and that it's around 330 kB.

If it's missing, add set -e to the top of setupMC1.sh and rerun to figure out why wget is failing.

sr1200
Posts: 1
Joined: Fri Aug 02, 2019 7:07 pm

Re: How to setup Minecraft 1.12.2 on Pi3 or Pi4

Fri Aug 02, 2019 7:13 pm

Greetings,
Recently setup an RPI4 (1024 version) to try this out using the non NOOBS version (used balenaEtcher to flash the card).
Got everything going to the point where im at the home screen of the game. Set all the settings to LOW, and try to run.
on the command line I'm getting:

server thread/INFO sr1200 joined the game
Killed

Not sure what to look for to remedy this.
Thanks in advance.

Other info
have the memory on the pi set to 128
when initially starting the game, in command line im seeing a lot of method not present and class not present (did I miss a step?)

User avatar
DarkPlatinum
Posts: 844
Joined: Thu Nov 02, 2017 2:30 pm
Location: Unknown
Contact: Website YouTube

Re: How to setup Minecraft 1.12.2 on Pi3 or Pi4

Sun Aug 04, 2019 11:55 am

rpiMike, this tutorial is for Raspbian buster, does the Pi 4 have any additional steps needed for Minecraft to run? Or does it use the same configuration as any other Pi?
1 * Raspberry Pi Zero W, 1 * Raspberry Pi 2, 1 * Raspberry Pi 3 1 * Raspberry Pi 3B + :mrgreen:

Check Out My Raspberry Site (Run on a Raspberry Pi 3B :) ): https://html.dynu.net

jdonald
Posts: 413
Joined: Fri Nov 03, 2017 4:36 pm

Re: How to setup Minecraft 1.12.2 on Pi3 or Pi4

Sun Aug 04, 2019 2:36 pm

sr1200 wrote:
Fri Aug 02, 2019 7:13 pm
Killed

Not sure what to look for to remedy this.
Usually means ran out of memory, did you remember to Change options in Minecraft to reduce render chunks to 2?
have the memory on the pi set to 128
Instructions said to use 64 MB gpu_mem. Using 128 leaves the game with 64 less standard memory available.
DarkPlatinum wrote:
Sun Aug 04, 2019 11:55 am
does the Pi 4 have any additional steps needed for Minecraft to run? Or does it use the same configuration as any other Pi?
In this sequence the only difference with a Pi 4 is that by default it's using GL with fkms, while on earlier boards the default is Legacy and needs to be changed. Everything else remains the same on Buster. Though the reason a revised procedure is mandated is that a Pi 4 requires Buster, while other models have the option of running Stretch/Jessie and thus older tutorials.

User avatar
DarkPlatinum
Posts: 844
Joined: Thu Nov 02, 2017 2:30 pm
Location: Unknown
Contact: Website YouTube

Re: How to setup Minecraft 1.12.2 on Pi3 or Pi4

Sun Aug 04, 2019 5:27 pm

Hrum.... I am running into problems when trying to run forge. The application opens but comes up with many broken pipes. Also, the dmesg log says "out of memory" and kills the java process. Why do I have problems on buster? I have updated my forge run script to accommodate the new java version.
1 * Raspberry Pi Zero W, 1 * Raspberry Pi 2, 1 * Raspberry Pi 3 1 * Raspberry Pi 3B + :mrgreen:

Check Out My Raspberry Site (Run on a Raspberry Pi 3B :) ): https://html.dynu.net

jdonald
Posts: 413
Joined: Fri Nov 03, 2017 4:36 pm

Re: How to setup Minecraft 1.12.2 on Pi3 or Pi4

Sun Aug 04, 2019 10:33 pm

Does Forge imply that it's now running without OptiFine? Minecraft 1.12.2 tends to run close to the 1 GB footprint and removing the render distance setting of 2 could put things over the edge.

When you run top do you see the memory usage climbing pretty high before it crashes?

I assume you configured gpu_mem to 64 per the instructions? I wonder if for testing purposes you could go lower to say 32 or 16 to make more room in system memory. Also do you have your swapfile enabled and how large?

User avatar
DarkPlatinum
Posts: 844
Joined: Thu Nov 02, 2017 2:30 pm
Location: Unknown
Contact: Website YouTube

Re: How to setup Minecraft 1.12.2 on Pi3 or Pi4

Mon Aug 05, 2019 5:42 am

I actually don't know if I have the swap file enabled. I had tried optifine by itself and it worked. Forge runs out of memory on 3/5 each time. As this was done on a fresh buster install the difference here was that on my old setup (stretch) I had novaspirit zram script.

I will try again when I get back on Friday but you can do some testing if you would like. You just need to edit my script to make use of the new Java 1.8.0 (or copy the CP from my script to rpiMikes)
1 * Raspberry Pi Zero W, 1 * Raspberry Pi 2, 1 * Raspberry Pi 3 1 * Raspberry Pi 3B + :mrgreen:

Check Out My Raspberry Site (Run on a Raspberry Pi 3B :) ): https://html.dynu.net

SupaTailsBros
Posts: 2
Joined: Sun Nov 11, 2018 6:52 pm

Re: How to setup Minecraft 1.12.2 on Pi3 or Pi4

Sun Aug 11, 2019 10:24 am

Hiya!
Minecraft works totally well until I try to start a single player game.

It returns with a broken pipe and crashes the game and Raspbian!

runing11
Posts: 1
Joined: Mon Aug 12, 2019 5:43 am

Re: How to setup Minecraft 1.12.2 on Pi3 or Pi4

Mon Aug 12, 2019 5:50 am

So I have a raspberry pi 3 Model B+, running raspbian lite with lxde gui running on it. I managed to follow the steps, and install everything. The game runs up until it loads the game in single player, and it closes the game, but the terminal window shows this at the end:

Code: Select all

[01:26:29] [main/INFO]: [OptiFine] *** Reloading custom textures ***
[01:27:04] [main/INFO]: [Shaders] Save shaders configuration.
[01:29:07] [Server thread/INFO]: Starting integrated minecraft server version 1.12.2
[01:29:07] [Server thread/INFO]: Generating keypair
[01:29:09] [Server thread/INFO]: Loaded 488 advancements
[01:29:09] [Server thread/WARN]: Unable to find spawn biome
[01:29:13] [Server thread/INFO]: Preparing start region for level 0
[01:29:14] [Server thread/INFO]: Preparing spawn area: 1%
[01:29:15] [Server thread/INFO]: Preparing spawn area: 3%
[01:29:16] [Server thread/INFO]: Preparing spawn area: 4%
[01:29:17] [Server thread/INFO]: Preparing spawn area: 5%
[01:29:18] [Server thread/INFO]: Preparing spawn area: 6%
[01:29:19] [Server thread/INFO]: Preparing spawn area: 7%
[01:29:20] [Server thread/INFO]: Preparing spawn area: 8%
[01:29:21] [Server thread/INFO]: Preparing spawn area: 9%
[01:29:22] [Server thread/INFO]: Preparing spawn area: 10%
[01:29:23] [Server thread/INFO]: Preparing spawn area: 11%
[01:29:24] [Server thread/INFO]: Preparing spawn area: 11%
[01:29:25] [Server thread/INFO]: Preparing spawn area: 12%
[01:29:27] [Server thread/INFO]: Preparing spawn area: 13%
[01:29:28] [Server thread/INFO]: Preparing spawn area: 13%
[01:29:29] [Server thread/INFO]: Preparing spawn area: 14%
[01:29:30] [Server thread/INFO]: Preparing spawn area: 15%
[01:29:31] [Server thread/INFO]: Preparing spawn area: 16%
[01:29:32] [Server thread/INFO]: Preparing spawn area: 17%
[01:29:33] [Server thread/INFO]: Preparing spawn area: 18%
[01:29:34] [Server thread/INFO]: Preparing spawn area: 19%
[01:29:35] [Server thread/INFO]: Preparing spawn area: 20%
[01:29:36] [Server thread/INFO]: Preparing spawn area: 20%
[01:29:38] [Server thread/INFO]: Preparing spawn area: 21%
[01:29:39] [Server thread/INFO]: Preparing spawn area: 22%
[01:29:40] [Server thread/INFO]: Preparing spawn area: 23%
[01:29:41] [Server thread/INFO]: Preparing spawn area: 24%
[01:29:42] [Server thread/INFO]: Preparing spawn area: 25%
[01:29:43] [Server thread/INFO]: Preparing spawn area: 26%
[01:29:44] [Server thread/INFO]: Preparing spawn area: 27%
[01:29:45] [Server thread/INFO]: Preparing spawn area: 28%
[01:29:46] [Server thread/INFO]: Preparing spawn area: 29%
[01:29:47] [Server thread/INFO]: Preparing spawn area: 30%
[01:29:49] [Server thread/INFO]: Preparing spawn area: 31%
[01:29:50] [Server thread/INFO]: Preparing spawn area: 32%
[01:29:51] [Server thread/INFO]: Preparing spawn area: 33%
[01:29:52] [Server thread/INFO]: Preparing spawn area: 34%
[01:29:53] [Server thread/INFO]: Preparing spawn area: 35%
[01:29:54] [Server thread/INFO]: Preparing spawn area: 35%
[01:29:55] [Server thread/INFO]: Preparing spawn area: 36%
[01:29:56] [Server thread/INFO]: Preparing spawn area: 38%
[01:29:57] [Server thread/INFO]: Preparing spawn area: 38%
[01:29:58] [Server thread/INFO]: Preparing spawn area: 39%
[01:30:00] [Server thread/INFO]: Preparing spawn area: 40%
[01:30:01] [Server thread/INFO]: Preparing spawn area: 41%
[01:30:02] [Server thread/INFO]: Preparing spawn area: 42%
[01:30:03] [Server thread/INFO]: Preparing spawn area: 43%
[01:30:04] [Server thread/INFO]: Preparing spawn area: 44%
[01:30:05] [Server thread/INFO]: Preparing spawn area: 45%
[01:30:06] [Server thread/INFO]: Preparing spawn area: 45%
[01:30:08] [Server thread/INFO]: Preparing spawn area: 46%
[01:30:09] [Server thread/INFO]: Preparing spawn area: 47%
[01:30:10] [Server thread/INFO]: Preparing spawn area: 48%
[01:30:11] [Server thread/INFO]: Preparing spawn area: 49%
[01:30:13] [Server thread/INFO]: Preparing spawn area: 49%
[01:30:14] [Server thread/INFO]: Preparing spawn area: 50%
[01:30:15] [Server thread/INFO]: Preparing spawn area: 51%
[01:30:16] [Server thread/INFO]: Preparing spawn area: 52%
[01:30:17] [Server thread/INFO]: Preparing spawn area: 53%
[01:30:18] [Server thread/INFO]: Preparing spawn area: 54%
[01:30:19] [Server thread/INFO]: Preparing spawn area: 55%
[01:30:21] [Server thread/INFO]: Preparing spawn area: 56%
[01:30:22] [Server thread/INFO]: Preparing spawn area: 57%
[01:30:23] [Server thread/INFO]: Preparing spawn area: 58%
[01:30:24] [Server thread/INFO]: Preparing spawn area: 58%
[01:30:25] [Server thread/INFO]: Preparing spawn area: 59%
[01:30:26] [Server thread/INFO]: Preparing spawn area: 60%
[01:30:27] [Server thread/INFO]: Preparing spawn area: 61%
[01:30:28] [Server thread/INFO]: Preparing spawn area: 62%
[01:30:29] [Server thread/INFO]: Preparing spawn area: 64%
[01:30:30] [Server thread/INFO]: Preparing spawn area: 65%
[01:30:32] [Server thread/INFO]: Preparing spawn area: 66%
[01:30:33] [Server thread/INFO]: Preparing spawn area: 67%
[01:30:34] [Server thread/INFO]: Preparing spawn area: 68%
[01:30:35] [Server thread/INFO]: Preparing spawn area: 69%
[01:30:36] [Server thread/INFO]: Preparing spawn area: 70%
[01:30:37] [Server thread/INFO]: Preparing spawn area: 71%
[01:30:38] [Server thread/INFO]: Preparing spawn area: 72%
[01:30:39] [Server thread/INFO]: Preparing spawn area: 73%
[01:30:40] [Server thread/INFO]: Preparing spawn area: 74%
[01:30:41] [Server thread/INFO]: Preparing spawn area: 75%
[01:30:42] [Server thread/INFO]: Preparing spawn area: 76%
[01:30:43] [Server thread/INFO]: Preparing spawn area: 77%
[01:30:45] [Server thread/INFO]: Preparing spawn area: 78%
[01:30:46] [Server thread/INFO]: Preparing spawn area: 79%
[01:30:47] [Server thread/INFO]: Preparing spawn area: 80%
[01:30:48] [Server thread/INFO]: Preparing spawn area: 81%
[01:30:49] [Server thread/INFO]: Preparing spawn area: 82%
[01:30:50] [Server thread/INFO]: Preparing spawn area: 83%
[01:30:51] [Server thread/INFO]: Preparing spawn area: 84%
[01:30:52] [Server thread/INFO]: Preparing spawn area: 85%
[01:30:53] [Server thread/INFO]: Preparing spawn area: 86%
[01:30:55] [Server thread/INFO]: Preparing spawn area: 87%
[01:30:56] [Server thread/INFO]: Preparing spawn area: 88%
[01:30:57] [Server thread/INFO]: Preparing spawn area: 89%
[01:30:58] [Server thread/INFO]: Preparing spawn area: 90%
[01:30:59] [Server thread/INFO]: Preparing spawn area: 91%
[01:31:00] [Server thread/INFO]: Preparing spawn area: 91%
[01:31:01] [Server thread/INFO]: Preparing spawn area: 92%
[01:31:02] [Server thread/INFO]: Preparing spawn area: 93%
[01:31:03] [Server thread/INFO]: Preparing spawn area: 94%
[01:31:04] [Server thread/INFO]: Preparing spawn area: 95%
[01:31:05] [Server thread/INFO]: Preparing spawn area: 96%
[01:31:07] [Server thread/INFO]: Preparing spawn area: 97%
[01:31:08] [Server thread/INFO]: Preparing spawn area: 98%
[01:31:09] [Server thread/INFO]: Preparing spawn area: 99%
[01:31:10] [Server thread/INFO]: Changing view distance to 2, from 10
[01:31:15] [Server thread/INFO]: TheRuning[local:E:5f00ba6a] logged in with entity id 512 at (-0.5, 67.0, 16.5)
[01:31:15] [Server thread/INFO]: TheRuning joined the game
Killed


jdonald
Posts: 413
Joined: Fri Nov 03, 2017 4:36 pm

Re: How to setup Minecraft 1.12.2 on Pi3 or Pi4

Wed Aug 14, 2019 4:06 am

"Killed" when not preceded with another error is typically due to running out of memory. You can keep the top program open while loading the single-player world to confirm.

To remedy an out-of-memory problem you need to either add more swap, enable zram, reduce gpu_mem to 16, or anything else that frees up RAM.

@SupaTailsBros a broken pipe will happen because if a program crashes it breaks and pipe it's sending too. Scroll up in the log to find and provide more detail about the error before that point.

User avatar
laughingbiscuit
Posts: 1
Joined: Wed Aug 14, 2019 6:30 pm
Location: Manchester, UK
Contact: Website

Re: How to setup Minecraft 1.12.2 on Pi3 or Pi4

Wed Aug 14, 2019 7:20 pm

Hi rpimike,

Thanks for the instructions. I have successfully run these in the latest Raspbian as of today.

There are a few things that would make this process a little nicer. I don’t feel super comfortable downloading files from Dropbox without being able to validate the integrity of them or have some visibility of what you intended to publish. One approach to this would be to publish the files in GitHub, or at least publish the hashes of the files to ensure they haven’t been tampered with.

Secondly, it would be great to understand if we could fully automate the installation process, along with having some automated tests to check whether the instructions continue to work over time (rather than you having to manually check!). I am happy to help contribute to this, and currently do this for very every tool on my machine (https://github.com/laughingbiscuit/lbdk). The only blocker I have to starting this is to understand exactly where the various .jar files required by the installation have been obtained from and if they required any modification by yourself. For example is the Minecraft.jar from https://s3.amazonaws.com/Minecraft.Download/ an official Mojang asset?

Finally there are some dependencies/class path differences between a Raspbian Full Desktop install and a minimal install that haven’t currently been documented. I am currently figuring out what these are and will try to post them here for users that have a raspbian minimal installation.

Many thanks,

Sean

EDIT:
One more question - given that these instructions specify release 1.12.2, are there also some manual steps you perform to allow newer versions? or is it just that you happened to use this version for the instructions?

EDIT2:
For anybody seeing a problem such as

Code: Select all

Error: Could not find or load main class net.minecraft.launchwrapper.Launch
or a similar classpath related error. The script runMC1_12_2_OptifineE3.sh assumes that you have run all of the steps as the user *pi*. If you have run it as a different user, you will need to edit this file and replace instances of /home/pi with your directory. These are on the long line beginning with CP=

jdonald
Posts: 413
Joined: Fri Nov 03, 2017 4:36 pm

Re: How to setup Minecraft 1.12.2 on Pi3 or Pi4

Thu Aug 15, 2019 8:29 pm

Welcome to the forums, laughingbiscuit.

It would be great if you could take the initiative to fix all these issues. Using pi instead of $USER or $HOME has long been bothersome, as is the lack of set -e that allows things to run through when things fail from the start.

I think half of your questions can be answered by taking a look at the code for mmlpi. The reason the most popular tutorials stop at 1.12.2 is this was the last version of Minecraft Java Edition to use LWJGL2. armhf binaries for LWJGL3 became available fairly recently, but so far the 1.13 build crashes in 32-bit, and 1.14 randomly freezes enough that it's not yet quite playable.

Minecraft.Download is an official Mojang bucket as I gather from all its references in Mojang's bug ticket system, but I believe it's now deprecated. mmlpi seems to use the newer endpoints. I saw it included at least one instance using http instead of https so it would be nice to fix that too.

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

Re: How to setup Minecraft 1.12.2 on Pi3 or Pi4

Fri Aug 16, 2019 1:34 pm

jdonald wrote:
Thu Aug 15, 2019 8:29 pm
It would be great if you could take the initiative to fix all these issues. Using pi instead of $USER or $HOME has long been bothersome, as is the lack of set -e that allows things to run through when things fail from the start.
I have added the -e

Xwing1O1
Posts: 4
Joined: Fri Aug 16, 2019 10:15 pm

Re: How to setup Minecraft 1.12.2 on Pi3 or Pi4

Fri Aug 16, 2019 10:28 pm

First post on the forum, haha!
Using Pi 3B+, standard issue Raspbian
I am sort of having a few different problems. First, my internet died for a few days, and so did minecraft. At least with single player. I did set it as 128 mb for the GPU, since I was realistically only going to use for games (someone else did that and had the same problem, so I made it 64 again). When loading a world it would say something like:

Code: Select all

loading
loading, etc
Player joined
Error, Broken Pipe
Killed
Plus the installer/launcher occasionally gets stuck on "Launching" after the screen falls asleep

So when the internet came back, I deleted all traces, now I am stuck at the Optifine installation step, it either says "you must open game once first" or gives me a code dump of sorts.

Just wondering if there is a fix or if I should start over all again?
P.S I do have slow internet so maybe one of the first downloads screwed up?

edit:
So, I was locked out of my pi, so i reset raspbian (thankfully nothing too important), I have mostly reinstalled, but I am stuck in the launcher where it says "launching", and will not proceed to crash. Help with this would be, well... Helpful, lol. Optifine did install, though, so that's good.
"Then the girl from the small town, took off the Old Town, put on a little hank Junior (Thank God)"
-Blake Sheldon and Trace Atkins, 2019
"He's a high-tech, redneck; Mayfield, meets Star Trek"
-George Jones, 1993

nightbolt
Posts: 1
Joined: Sat Aug 17, 2019 11:45 pm

Re: How to setup Minecraft 1.12.2 on Pi3 or Pi4

Tue Aug 20, 2019 1:05 am

not having much luck connecting to servers I'm on a pi4 and whenever I try and connect to hypixel / hypixel.net I get this https://imgur.com/JddJsla Help me smart ones!

bunklung
Posts: 82
Joined: Tue Jun 25, 2019 12:10 pm

Re: How to setup Minecraft 1.12.2 on Pi3 or Pi4

Sat Aug 31, 2019 11:37 am

rpiMike wrote:
Fri Aug 16, 2019 1:34 pm
jdonald wrote:
Thu Aug 15, 2019 8:29 pm
It would be great if you could take the initiative to fix all these issues. Using pi instead of $USER or $HOME has long been bothersome, as is the lack of set -e that allows things to run through when things fail from the start.
I have added the -e
Thanks for your help on the guide.

I followed the instructions and I found that I still had to change the username from pi to the regular user in the "./runMC1_12_2_OptifineE3.sh" script.

Regardless, I am getting a null pointer exception. Anyone else have this? It seems GL related.

Code: Select all

---- Minecraft Crash Report ----
// Why did you do that?

Time: 8/31/19 7:31 AM
Description: Initializing game

java.lang.ExceptionInInitializerError
	at Config.getDisplayModes(Config.java:1854)
	at bid$a.<clinit>(GameSettings.java:3569)
	at bid.<init>(GameSettings.java:331)
	at bib.aq(SourceFile:443)
	at bib.a(SourceFile:404)
	at net.minecraft.client.main.Main.main(SourceFile:123)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
	at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
Caused by: java.lang.RuntimeException: org.lwjgl.LWJGLException: No modes available
	at org.lwjgl.opengl.Display.<clinit>(Display.java:141)
	... 12 more
Caused by: org.lwjgl.LWJGLException: No modes available
	at org.lwjgl.opengl.LinuxDisplay.init(LinuxDisplay.java:740)
	at org.lwjgl.opengl.Display.<clinit>(Display.java:138)
	... 12 more


A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------

-- Head --
Thread: Client thread
Stacktrace:
	at Config.getDisplayModes(Config.java:1854)
	at bid$a.<clinit>(GameSettings.java:3569)
	at bid.<init>(GameSettings.java:331)
	at bib.aq(SourceFile:443)

-- Initialization --
Details:
Stacktrace:
	at bib.a(SourceFile:404)
	at net.minecraft.client.main.Main.main(SourceFile:123)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
	at net.minecraft.launchwrapper.Launch.main(Launch.java:28)

-- System Details --
Details:
	Minecraft Version: 1.12.2
	Operating System: Linux (arm) version 4.19.69-v7l+
	Java Version: 1.8.0_211, Oracle Corporation
	Java VM Version: Java HotSpot(TM) Server VM (mixed mode), Oracle Corporation
	Memory: 97802440 bytes (93 MB) / 169078784 bytes (161 MB) up to 1060372480 bytes (1011 MB)
	JVM Flags: 5 total; -Xmn128M -Xmx1024M -XX:+UseConcMarkSweepGC -XX:+CMSIncrementalMode -XX:-UseAdaptiveSizePolicy
	IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0
	Launched Version: 1.12
	LWJGL: 2.9.4
	OpenGL: ~~ERROR~~ RuntimeException: No OpenGL context found in the current thread.
	GL Caps: 
	Using VBOs: ~~ERROR~~ NullPointerException: null
	Is Modded: Very likely; Jar signature invalidated
	Type: Client (map_client.txt)
	Resource Packs: ~~ERROR~~ NullPointerException: null
	Current Language: ~~ERROR~~ NullPointerException: null
	Profiler Position: N/A (disabled)
	CPU: <unknown>
#@!@# Game crashed! Crash report saved to: #@!@# /home/pi/.minecraft/crash-reports/crash-2019-08-31_07.31.49-client.txt

Baspberry Ri
Posts: 1
Joined: Sat Aug 31, 2019 2:19 pm

Re: How to setup Minecraft 1.12.2 on Pi3 or Pi4

Sat Aug 31, 2019 2:28 pm

If you get an error at the final stage saying something like: "MINECRAFT USERNA
ME unavailable" it means you have to remove the space between ME and USERNA. Hope this helps!

jdonald
Posts: 413
Joined: Fri Nov 03, 2017 4:36 pm

Re: How to setup Minecraft 1.12.2 on Pi3 or Pi4

Sat Aug 31, 2019 3:16 pm

Thanks for adding the -e checks, rpiMike. Sorry, I should have looked at your latest script before mentioning that again.
bunklung wrote:
Sat Aug 31, 2019 11:37 am
It seems GL related.

Code: Select all

java.lang.ExceptionInInitializerError
	at Config.getDisplayModes(Config.java:1854)
	at bid$a.<clinit>(GameSettings.java:3569)
...
Caused by: org.lwjgl.LWJGLException: No modes available
	at org.lwjgl.opengl.LinuxDisplay.init(LinuxDisplay.java:740)
	at org.lwjgl.opengl.Display.<clinit>(Display.java:138)
In the first post rpiMike mentioned The OpenGL drivers may not work with all screens. There's a discussion on page 2 to specifically troubleshoot this. Running xrandr -q and posting the output here would be the first step.

The LWJGL forums post I linked above is currently timing out, but basically it says the real solution is to install a newer version of Minecraft with LWJGL3. You could try rpiMike's 1.14.4 tutorial although it requires a 64-bit OS. Also, MamiyaOtaru got 1.14.4 running on 32-bit but there isn't yet a step-by-step tutorial.

@Xwing101, welcome to the forums and if you scroll up a bit you'll see multiple mentions of dealing with "Killed". Both this and hanging on startup tend to be symptoms of running out of memory. The reason it happens sometimes but not others is that the current how-to may be right on the 1 GB edge and we can't know if someone is running chromium-browser or something else in the background. You should keep top open while walking through the tutorial to diagnose. If confirmed to be the problem, try reducing gpu_mem further, closing RAM-hogging programs, or adding more swap space.

Return to “Gaming”