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 3:39 pm

jdonald wrote:
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.
Thanks. It was due to the FIXED MODE from config.txt

hdmi_group:0=2
hdmi_mode:0=87
hdmi_timings:0=1920 0 48 32 80 1080 0 3 5 31 0 0 0 75 0 174500000 3

I removed my mode and let X deal with resolution naturally.

It's working now. Hope this helps others.

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

Re: How to setup Minecraft 1.12.2 on Pi3 or Pi4

Wed Sep 11, 2019 12:29 am

jdonald wrote:
Sat Aug 31, 2019 3:16 pm
@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.
Okay. Yeah I did have a chrome tab open in the background (the tutorial), so that probably was the problem.

Either way my pi4 came in (desktop kit, 4 GB ram), and it's stuck at the launcher saying "installing". The command line says:

Code: Select all

[15:55:16 ERROR]: Couldn't unpack natives!
java.util.zip.ZipException: zip END header not found
	at java.base/java.util.zip.ZipFile$Source.zerror(ZipFile.java:1535) ~[?:?]
	at java.base/java.util.zip.ZipFile$Source.findEND(ZipFile.java:1436) ~[?:?]
	at java.base/java.util.zip.ZipFile$Source.initCEN(ZipFile.java:1443) ~[?:?]
	at java.base/java.util.zip.ZipFile$Source.<init>(ZipFile.java:1274) ~[?:?]
	at java.base/java.util.zip.ZipFile$Source.get(ZipFile.java:1237) ~[?:?]
	at java.base/java.util.zip.ZipFile$CleanableResource.<init>(ZipFile.java:727) ~[?:?]
	at java.base/java.util.zip.ZipFile$CleanableResource.get(ZipFile.java:844) ~[?:?]
	at java.base/java.util.zip.ZipFile.<init>(ZipFile.java:247) ~[?:?]
	at java.base/java.util.zip.ZipFile.<init>(ZipFile.java:177) ~[?:?]
	at java.base/java.util.zip.ZipFile.<init>(ZipFile.java:191) ~[?:?]
	at net.minecraft.launcher.game.MinecraftGameRunner.unpackNatives(MinecraftGameRunner.java:369) ~[launcher.jar:1.6.89-j]
	at net.minecraft.launcher.game.MinecraftGameRunner.launchGame(MinecraftGameRunner.java:115) [launcher.jar:1.6.89-j]
	at com.mojang.launcher.game.runner.AbstractGameRunner.onDownloadJobFinished(AbstractGameRunner.java:186) [launcher.jar:1.6.89-j]
	at com.mojang.launcher.updater.download.DownloadJob.popAndDownload(DownloadJob.java:122) [launcher.jar:1.6.89-j]
	at com.mojang.launcher.updater.download.DownloadJob.access$000(DownloadJob.java:12) [launcher.jar:1.6.89-j]
	at com.mojang.launcher.updater.download.DownloadJob$1.run(DownloadJob.java:86) [launcher.jar:1.6.89-j]
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) [?:?]
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) [?:?]
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [?:?]
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [?:?]
	at java.base/java.lang.Thread.run(Thread.java:834) [?:?]

If that makes sense. Also for when Optifine gives me an error (much like the Wii "error DSi" message), then what? sorry I am still embarrassingly new to this lol.

P.S. I set the gpu_mem to 512, so that it loads quicker, and I thought I had some to spare with 4 gigs


Edit: well, this is kinda funny(ish), finally got working since I moved it closer to the router, got xscreensaver and set it to stay awake for 12 hours, and redid everything
"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

User avatar
pi-tastic
Posts: 151
Joined: Mon Jul 29, 2019 6:34 pm

Re: How to setup Minecraft 1.12.2 on Pi3 or Pi4

Tue Sep 17, 2019 8:16 pm

tested with 4B works in 4k, little more sluggish then in 1080.

question when is minecraft going to be officially supported with buster?
like:
sudo apt install minecraft - and it just works?

thanks for the write up!.
maccaps.com - bringing life to dead electronics.

Snapwhiz914
Posts: 7
Joined: Sat Sep 14, 2019 5:38 pm

Re: How to setup Minecraft 1.12.2 on Pi3 or Pi4

Sat Sep 21, 2019 11:37 pm

Hi all,
I can't play any servers because it just keeps giving me an error:

Code: Select all

 Java.lang.NullPointerExecption
Is it something wrong with Minecraft or something wrong with the raspberry pi itself?

WillTheWA
Posts: 1
Joined: Thu Oct 03, 2019 3:23 am

Re: How to setup Minecraft 1.12.2 on Pi3 or Pi4

Thu Oct 03, 2019 3:29 am

Help. When ever I try to load into a world I am met by this message:

AL lib: (EE) ALCplaybackAlsa_mixerProc: available update failed: Broken pipe
Killed

I know it has something to do with audio drivers but I'm not sure how to fix it. I have followed the instructions to the letter and have reinstalled Minecraft several times to no avail. My Pi is a B+. All help is appreciated.

warhound40k
Posts: 1
Joined: Sun Oct 06, 2019 2:19 pm

Re: How to setup Minecraft 1.12.2 on Pi3 or Pi4

Sun Oct 06, 2019 2:21 pm

Hello, I am on step 5, but do not get an error. The launcher just says "Preparing..." and never finishes, see below. If I try to move to the next step Optifine says I don't have 1.12 and that I should start the game manually. Any advice?

Here is my log if that is helpful. Also, I am using a Rpi 4.

Code: Select all

pi@raspberrypi:~/Minecraft $ cd ~/Minecraft && java -jar Minecraft.jar
Bootstrap (v5)
Current time is Oct 6, 2019, 9:12:12 AM
System.getProperty('os.name') == 'Linux'
System.getProperty('os.version') == '4.19.66-v7l+'
System.getProperty('os.arch') == 'arm'
System.getProperty('java.version') == '11.0.3'
System.getProperty('java.vendor') == 'Raspbian'
System.getProperty('sun.arch.data.model') == '32'

Looking for update
Downloading: https://s3.amazonaws.com/Minecraft.Download/launcher/launcher.pack.lzma
Got reply in: 885ms
No update found.
Reversing LZMA on /home/pi/.minecraft/launcher.pack.lzma to /home/pi/.minecraft/launcher.pack
Unpacking /home/pi/.minecraft/launcher.pack to /home/pi/.minecraft/launcher.jar
Cleaning up /home/pi/.minecraft/launcher.pack
Starting launcher.
[09:12:27 INFO]: Minecraft Launcher 1.6.89-j (through bootstrap 5) started on linux...
[09:12:27 INFO]: Current time is Oct 6, 2019, 9:12:27 AM
[09:12:27 INFO]: System.getProperty('os.name') == 'Linux'
[09:12:27 INFO]: System.getProperty('os.version') == '4.19.66-v7l+'
[09:12:27 INFO]: System.getProperty('os.arch') == 'arm'
[09:12:27 INFO]: System.getProperty('java.version') == '11.0.3'
[09:12:27 INFO]: System.getProperty('java.vendor') == 'Raspbian'
[09:12:27 INFO]: System.getProperty('sun.arch.data.model') == '32'
[09:12:27 INFO]: proxy == DIRECT
[09:12:28 INFO]: Refreshing local version list...
[09:12:28 INFO]: Refreshing remote version list...
[09:12:29 INFO]: Refresh complete.
[09:12:29 INFO]: Loaded 1 profile(s); selected 'warhound40k'
[09:12:29 INFO]: Refreshing auth...
[09:12:29 INFO]: Logging in with access token
[09:15:56 INFO]: Getting syncinfo for selected version
[09:15:56 INFO]: Queueing library & version downloads
[09:15:57 FATAL]: Unhandled exception in thread Thread[pool-2-thread-1,5,main]
com.google.gson.JsonSyntaxException: duplicate key: null
	at com.google.gson.internal.bind.MapTypeAdapterFactory$Adapter.read(MapTypeAdapterFactory.java:191) ~[Minecraft.jar:?]
	at com.google.gson.internal.bind.MapTypeAdapterFactory$Adapter.read(MapTypeAdapterFactory.java:146) ~[Minecraft.jar:?]
	at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$1.read(ReflectiveTypeAdapterFactory.java:93) ~[Minecraft.jar:?]
	at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:172) ~[Minecraft.jar:?]
	at com.google.gson.Gson.fromJson(Gson.java:795) ~[Minecraft.jar:?]
	at com.google.gson.Gson.fromJson(Gson.java:761) ~[Minecraft.jar:?]
	at com.google.gson.Gson.fromJson(Gson.java:710) ~[Minecraft.jar:?]
	at com.google.gson.Gson.fromJson(Gson.java:682) ~[Minecraft.jar:?]
	at net.minecraft.launcher.updater.RemoteVersionList.getCompleteVersion(RemoteVersionList.java:32) ~[launcher.jar:1.6.89-j]
	at net.minecraft.launcher.updater.MinecraftVersionManager.getLatestCompleteVersion(MinecraftVersionManager.java:213) ~[launcher.jar:1.6.89-j]
	at net.minecraft.launcher.updater.MinecraftVersionManager.getLatestCompleteVersion(MinecraftVersionManager.java:37) ~[launcher.jar:1.6.89-j]
	at com.mojang.launcher.game.runner.AbstractGameRunner.playGame(AbstractGameRunner.java:67) ~[launcher.jar:1.6.89-j]
	at net.minecraft.launcher.game.GameLaunchDispatcher$1.run(GameLaunchDispatcher.java:111) ~[launcher.jar:1.6.89-j]
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) ~[?:?]
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) ~[?:?]
	at java.base/java.lang.Thread.run(Thread.java:834) [?:?]

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

Re: How to setup Minecraft 1.12.2 on Pi3 or Pi4

Sun Oct 06, 2019 3:36 pm

This guide was very useful and worked on my Pi 4, so thank you. Do you think that it will ever be possible to play 1.14 etc on a Pi?

sneazzy95
Posts: 2
Joined: Mon Oct 07, 2019 8:33 pm

Re: How to setup Minecraft 1.12.2 on Pi3 or Pi4

Mon Oct 07, 2019 8:41 pm

Thank you so much for the instructions, it was hard for me at first but thanks to your guide it worked great.


Mini Militia App Lock 7Zip
Last edited by sneazzy95 on Tue Oct 15, 2019 8:11 pm, edited 1 time in total.

driva
Posts: 5
Joined: Wed Mar 07, 2018 8:18 am

Re: How to setup Minecraft 1.12.2 on Pi3 or Pi4

Sun Oct 13, 2019 12:04 pm

Thanks for the tutorial.

I had one problem as the path to the users home directory is hard coded.

Code: Select all

./runMC1_12_2_OptifineE3.sh
...
Java HotSpot(TM) Server 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.launchwrapper.Launch
To fix this I replaced /home/pi with ~ for every occurrence in runMC1_12_2_OptifineE3.sh on line 27.

Thanks laughingbiscuit for the pointer in https://www.raspberrypi.org/forums/view ... 0#p1519167

Snapwhiz914
Posts: 7
Joined: Sat Sep 14, 2019 5:38 pm

Re: How to setup Minecraft 1.12.2 on Pi3 or Pi4

Sun Oct 13, 2019 5:20 pm

Warhound40K,
Have you tried deleting both /Minecraft and /.minecraft directories and re-downloading Minecraft? Also, I would check your internet connection.

Snapwhiz914
Posts: 7
Joined: Sat Sep 14, 2019 5:38 pm

Re: How to setup Minecraft 1.12.2 on Pi3 or Pi4

Mon Oct 14, 2019 1:31 am

WillTheWA,
I suggest that you reimage your SD card and start fresh. Below is a link to do just that:
https://www.raspberrypi.org/documentati ... ng-images/
You'll need an SD card reader and another computer.
Good Luck!

FlexNiko
Posts: 1
Joined: Wed Oct 16, 2019 8:26 am

Re: How to setup Minecraft 1.12.2 on Pi3 or Pi4

Wed Oct 16, 2019 8:36 am

Hello,
so i got a Pi4 with Raspbian Pi Stretch with Desktop. Everything worked fine until the last point like in the tutorial (except i needed to install Java) but i cant start the game.

Maybe it has to do something with teamviewer?
I am using Teamviewer because i dont have a Monitor setup for the PI and i just want to access it remotely.

I basically wanted to use the PI to AFK my minecraft account on servers, so i dont have to let my PC be running so loudly in my room.
And i need to access it remotely to rejoin if the player disconnects due to some unexpected event. Thats why teamviewer is installed and running.

I tried changing hdmi_mode in the boot/config.txt, changing my GPU memory allocated, and probably many more stuff i cant remember but i found on google lol.

And sry its my first time using PI and im not very familiar with linux. Therefore maybe its just something obvious im doing wrong.

And yes OpenGL Fake KMS is enabled in the Boot menu

Crash Log:

Code: Select all

---- Minecraft Crash Report ----
// Hi. I'm Minecraft, and I'm a crashaholic.

Time: 10/16/19 10:24 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.75-v7l+
	Java Version: 1.8.0_211, Oracle Corporation
	Java VM Version: Java HotSpot(TM) Server VM (mixed mode), Oracle Corporation
	Memory: 88050176 bytes (83 MB) / 167505920 bytes (159 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>
Thats my client.txt

Code: Select all

 For more options and information see
# http://rpf.io/configtxt
# Some settings may impact device functionality. See link above for details

# uncomment if you get no picture on HDMI for a default "safe" mode
#hdmi_safe=1

# uncomment this if your display has a black border of unused pixels visible
# and your display can output without overscan
disable_overscan=1

# uncomment the following to adjust overscan. Use positive numbers if console
# goes off screen, and negative if there is too much border
#overscan_left=16
#overscan_right=16
#overscan_top=16
#overscan_bottom=16

# uncomment to force a console size. By default it will be display's size minus
# overscan.
framebuffer_width=1280
framebuffer_height=720

# uncomment if hdmi display is not detected and composite is being output
hdmi_force_hotplug=1
hdmi_ignore_edid=0xa5000080

# uncomment to force a specific HDMI mode (this will force VGA)
#hdmi_group=1
#hdmi_mode=4

# uncomment to force a HDMI mode rather than DVI. This can make audio work in
# DMT (computer monitor) modes
#hdmi_drive=2

 uncomment to increase signal to HDMI, if you have interference, blanking, or
# no display
#config_hdmi_boost=4

# uncomment for composite PAL
#sdtv_mode=2

#uncomment to overclock the arm. 700 MHz is the default.
#arm_freq=800

# Uncomment some or all of these to enable the optional hardware interfaces
#dtparam=i2c_arm=on
#dtparam=i2s=on
#dtparam=spi=on

# Uncomment this to enable infrared communication.
#dtoverlay=gpio-ir,gpio_pin=17
#dtoverlay=gpio-ir-tx,gpio_pin=18

# Additional overlays and parameters are documented /boot/overlays/README

# Enable audio (loads snd_bcm2835)
dtparam=audio=on

[pi4]
# Enable DRM VC4 V3D driver on top of the dispmanx display stack
dtoverlay=vc4-fkms-v3d
max_framebuffers=2
enable_tvout=1

[all]
dtoverlay=vc4-fkms-v3d
gpu_mem=64


Return to “Gaming”