User avatar
mikesome13
Posts: 16
Joined: Sun Jul 23, 2017 6:26 pm
Contact: Twitter YouTube

Re: How to setup Minecraft 1.12.1 on Raspberry Pi 3

Wed Oct 04, 2017 10:39 pm

Zeusxl60 wrote:
Wed Oct 04, 2017 3:48 am
mikesome13 wrote:
Wed Oct 04, 2017 12:16 am
I GOT FORGE WORKING!!!
That's right! I got forge working! You need the 1.12.2 version of forge for this. You can change the cp= path to the forge version you need. Heres the code:

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
MINECRAFT_LOGIN=abc@123.xxx
MINECRAFT_USERNAME=xxxxxx
MINECRAFT_PASSWORD=xxxxxx


# 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=b61fb8e9-97bf-435f-8354-1feaba0ce734
MINECRAFT_UUID=12345678-1234-1234-1234-123456789abc
MINECRAFT_VERSION=1.12

# SHOULD NOT NEED TO EDIT BELOW THIS LINE

# long list of paths from the minecraft logged commandline
CP=/home/pi/.minecraft/libraries/net/minecraftforge/forge/1.12.2-14.23.0.2501/forge-1.12.2-14.23.0.2501.jar:/home/pi/.minecraft/libraries/net/minecraft/launchwrapper/1.12/launchwrapper-1.12.jar:/home/pi/.minecraft/libraries/org/ow2/asm/asm-all/5.2/asm-all-5.2.jar:/home/pi/.minecraft/libraries/jline/jline/2.13/jline-2.13.jar:/home/pi/.minecraft/libraries/com/typesafe/akka/akka-actor_2.11/2.3.3/akka-actor_2.11-2.3.3.jar:/home/pi/.minecraft/libraries/com/typesafe/config/1.2.1/config-1.2.1.jar:/home/pi/.minecraft/libraries/org/scala-lang/scala-actors-migration_2.11/1.1.0/scala-actors-migration_2.11-1.1.0.jar:/home/pi/.minecraft/libraries/org/scala-lang/scala-compiler/2.11.1/scala-compiler-2.11.1.jar:/home/pi/.minecraft/libraries/org/scala-lang/plugins/scala-continuations-library_2.11/1.0.2/scala-continuations-library_2.11-1.0.2.jar:/home/pi/.minecraft/libraries/org/scala-lang/plugins/scala-continuations-plugin_2.11.1/1.0.2/scala-continuations-plugin_2.11.1-1.0.2.jar:/home/pi/.minecraft/libraries/org/scala-lang/scala-library/2.11.1/scala-library-2.11.1.jar:/home/pi/.minecraft/libraries/org/scala-lang/scala-parser-combinators_2.11/1.0.1/scala-parser-combinators_2.11-1.0.1.jar:/home/pi/.minecraft/libraries/org/scala-lang/scala-reflect/2.11.1/scala-reflect-2.11.1.jar:/home/pi/.minecraft/libraries/org/scala-lang/scala-swing_2.11/1.0.1/scala-swing_2.11-1.0.1.jar:/home/pi/.minecraft/libraries/org/scala-lang/scala-xml_2.11/1.0.2/scala-xml_2.11-1.0.2.jar:/home/pi/.minecraft/libraries/lzma/lzma/0.0.1/lzma-0.0.1.jar:/home/pi/.minecraft/libraries/net/sf/jopt-simple/jopt-simple/5.0.3/jopt-simple-5.0.3.jar:/home/pi/.minecraft/libraries/java3d/vecmath/1.5.2/vecmath-1.5.2.jar:/home/pi/.minecraft/libraries/net/sf/trove4j/trove4j/3.0.3/trove4j-3.0.3.jar:/home/pi/.minecraft/libraries/com/mojang/patchy/1.1/patchy-1.1.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/4.4.0/jna-4.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/5.0.3/jopt-simple-5.0.3.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.1.9.Final/netty-all-4.1.9.Final.jar:/home/pi/.minecraft/libraries/com/google/guava/guava/21.0/guava-21.0.jar:/home/pi/.minecraft/libraries/org/apache/commons/commons-lang3/3.5/commons-lang3-3.5.jar:/home/pi/.minecraft/libraries/commons-io/commons-io/2.5/commons-io-2.5.jar:/home/pi/.minecraft/libraries/commons-codec/commons-codec/1.10/commons-codec-1.10.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.8.0/gson-2.8.0.jar:/home/pi/.minecraft/libraries/com/mojang/authlib/1.5.25/authlib-1.5.25.jar:/home/pi/.minecraft/libraries/com/mojang/realms/1.10.17/realms-1.10.17.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.1.0/fastutil-7.1.0.jar:/home/pi/.minecraft/libraries/org/apache/logging/log4j/log4j-api/2.8.1/log4j-api-2.8.1.jar:/home/pi/.minecraft/libraries/org/apache/logging/log4j/log4j-core/2.8.1/log4j-core-2.8.1.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/libraries/com/mojang/text2speech/1.10.3/text2speech-1.10.3.jar:/home/pi/.minecraft/versions/1.12.2/1.12.2.jar
TWEAK_CLASS=net.minecraftforge.fml.common.launcher.FMLTweaker

# 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

MINECRAFT_UUID="$(\
curl -X POST -H 'Content-Type: application/json' https://api.mojang.com/profiles/minecraft --data '"'$MINECRAFT_USERNAME'"' \
| sed '/id":"/!d;s//&\n/;s/.*\n//;:a;/",/bb;$!{n;ba};:b;s//\n&/;P;D' \
)"

echo "MINECRAFT_UUID="$MINECRAFT_UUID

# run minecraft with all the right commandline options
/usr/lib/jvm/jdk-8-oracle-arm32-vfp-hflt/jre/bin/java \
    -Xmn128M -Xmx550M \
    -XX:+UseConcMarkSweepGC \
    -XX:+CMSIncrementalMode \
    -XX:-UseAdaptiveSizePolicy \
    -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

I am getting this error

Code: Select all

[23:37:33] [main/INFO] [STDERR]: [optifine.OptiFineClassTransformer:getOptiFineResourcePatched:236]: 	at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
[23:37:33] [main/INFO] [STDERR]: [optifine.OptiFineClassTransformer:getOptiFineResourcePatched:236]: 	at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
[23:37:34] [main/ERROR] [LaunchWrapper]: Unable to launch
java.lang.reflect.InvocationTargetException: null
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_65]
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_65]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_65]
	at java.lang.reflect.Method.invoke(Method.java:497) ~[?:1.8.0_65]
	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.VerifyError: Inconsistent stackmap frames at branch target 13
Exception Details:
  Location:
    Config.getWorldServer()Lnet/minecraft/world/BossInfoServer; @13: getstatic
  Reason:
    Type 'net/minecraft/client/network/NetHandlerPlayClient' (current frame, locals[0]) is not assignable to 'net/minecraft/world/GameType' (stack map, locals[0])
  Current Frame:
    bci: @8
    flags: { }
    locals: { 'net/minecraft/client/network/NetHandlerPlayClient' }
    stack: { 'net/minecraft/client/network/NetHandlerPlayClient' }
  Stackmap Frame:
    bci: @13
    flags: { }
    locals: { 'net/minecraft/world/GameType' }
    stack: { }
  Bytecode:
    0x0000000: b202 d3b4 056c 4b2a c700 0501 b0b2 02d3
    0x0000010: b605 709a 0005 01b0 b202 d3b6 0573 4c2b
    0x0000020: c700 0501 b02a b405 784d 2cc7 0005 01b0
    0x0000030: 2cb6 057e 4e2b 2db6 0582 b605 853a 0419
    0x0000040: 04b0 3a04 01b0                         
  Exception Handler Table:
    bci [53, 65] => handler: 66
  Stackmap Table:
    append_frame(@13,Object[#1390])
    same_frame(@24)
    append_frame(@37,Object[#1397])
    append_frame(@48,Object[#1402])
    full_frame(@66,{Object[#1390],Object[#1397],Object[#1402],Object[#1408]},{Object[#1384]})

	at Reflector.logEntry(Reflector.java:1207) ~[Reflector.class:?]
	at Reflector.<clinit>(Reflector.java:109) ~[Reflector.class:?]
	at net.minecraft.crash.CrashReport.func_71504_g(CrashReport.java:138) ~[b.class:?]
	at net.minecraft.crash.CrashReport.<init>(CrashReport.java:54) ~[b.class:?]
	at net.minecraft.crash.CrashReport.func_85055_a(CrashReport.java:425) ~[b.class:?]
	at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:381) ~[bib.class:?]
	at net.minecraft.client.main.Main.main(SourceFile:123) ~[Main.class:?]
	... 6 more
Exception in thread "Client thread" [23:37:34] [main/INFO] [STDERR]: [java.lang.ThreadGroup:uncaughtException:1052]: net.minecraftforge.fml.relauncher.FMLSecurityManager$ExitTrappedException
[23:37:34] [main/INFO] [STDERR]: [java.lang.ThreadGroup:uncaughtException:1052]: 	at net.minecraftforge.fml.relauncher.FMLSecurityManager.checkPermission(FMLSecurityManager.java:49)
[23:37:34] [main/INFO] [STDERR]: [java.lang.ThreadGroup:uncaughtException:1052]: 	at java.lang.SecurityManager.checkExit(SecurityManager.java:761)
[23:37:34] [main/INFO] [STDERR]: [java.lang.ThreadGroup:uncaughtException:1052]: 	at java.lang.Runtime.exit(Runtime.java:107)
[23:37:34] [main/INFO] [STDERR]: [java.lang.ThreadGroup:uncaughtException:1052]: 	at java.lang.System.exit(System.java:971)
[23:37:34] [main/INFO] [STDERR]: [java.lang.ThreadGroup:uncaughtException:1052]: 	at net.minecraft.launchwrapper.Launch.launch(Launch.java:138)
[23:37:34] [main/INFO] [STDERR]: [java.lang.ThreadGroup:uncaughtException:1052]: 	at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
Does anyone know how to fix this?? I was trying to make forge work myself,and I forgot about the tweaker. Thanks for the code.
IDK, man. I installed it the way the tutorial says, ran the forge installer, then made a new run.sh file, and it worked. I don't know what to tell you, as I know nothing about java. And also, minecraft crashes whenever opening a world with forge on.
YES!

User avatar
mikesome13
Posts: 16
Joined: Sun Jul 23, 2017 6:26 pm
Contact: Twitter YouTube

Re: How to setup Minecraft 1.12.1 on Raspberry Pi 3

Thu Oct 05, 2017 12:13 am

actually, I figured out why it was crashing when I entered worlds for me. I forgot step 2 or 3, theone where I install OpenAL and stuff. And also, to run optifine with forge, you put the Optifne installer from your ~/Downloads folder into the /.minecraft/mods/ folder.
YES!

Zeusxl60
Posts: 7
Joined: Wed Jul 19, 2017 3:02 pm

Re: How to setup Minecraft 1.12.1 on Raspberry Pi 3

Thu Oct 05, 2017 1:53 am

mikesome13 wrote:
Wed Oct 04, 2017 10:39 pm
Zeusxl60 wrote:
Wed Oct 04, 2017 3:48 am
mikesome13 wrote:
Wed Oct 04, 2017 12:16 am
I GOT FORGE WORKING!!!
That's right! I got forge working! You need the 1.12.2 version of forge for this. You can change the cp= path to the forge version you need. Heres the code:

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
MINECRAFT_LOGIN=abc@123.xxx
MINECRAFT_USERNAME=xxxxxx
MINECRAFT_PASSWORD=xxxxxx


# 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=b61fb8e9-97bf-435f-8354-1feaba0ce734
MINECRAFT_UUID=12345678-1234-1234-1234-123456789abc
MINECRAFT_VERSION=1.12

# SHOULD NOT NEED TO EDIT BELOW THIS LINE

# long list of paths from the minecraft logged commandline
CP=/home/pi/.minecraft/libraries/net/minecraftforge/forge/1.12.2-14.23.0.2501/forge-1.12.2-14.23.0.2501.jar:/home/pi/.minecraft/libraries/net/minecraft/launchwrapper/1.12/launchwrapper-1.12.jar:/home/pi/.minecraft/libraries/org/ow2/asm/asm-all/5.2/asm-all-5.2.jar:/home/pi/.minecraft/libraries/jline/jline/2.13/jline-2.13.jar:/home/pi/.minecraft/libraries/com/typesafe/akka/akka-actor_2.11/2.3.3/akka-actor_2.11-2.3.3.jar:/home/pi/.minecraft/libraries/com/typesafe/config/1.2.1/config-1.2.1.jar:/home/pi/.minecraft/libraries/org/scala-lang/scala-actors-migration_2.11/1.1.0/scala-actors-migration_2.11-1.1.0.jar:/home/pi/.minecraft/libraries/org/scala-lang/scala-compiler/2.11.1/scala-compiler-2.11.1.jar:/home/pi/.minecraft/libraries/org/scala-lang/plugins/scala-continuations-library_2.11/1.0.2/scala-continuations-library_2.11-1.0.2.jar:/home/pi/.minecraft/libraries/org/scala-lang/plugins/scala-continuations-plugin_2.11.1/1.0.2/scala-continuations-plugin_2.11.1-1.0.2.jar:/home/pi/.minecraft/libraries/org/scala-lang/scala-library/2.11.1/scala-library-2.11.1.jar:/home/pi/.minecraft/libraries/org/scala-lang/scala-parser-combinators_2.11/1.0.1/scala-parser-combinators_2.11-1.0.1.jar:/home/pi/.minecraft/libraries/org/scala-lang/scala-reflect/2.11.1/scala-reflect-2.11.1.jar:/home/pi/.minecraft/libraries/org/scala-lang/scala-swing_2.11/1.0.1/scala-swing_2.11-1.0.1.jar:/home/pi/.minecraft/libraries/org/scala-lang/scala-xml_2.11/1.0.2/scala-xml_2.11-1.0.2.jar:/home/pi/.minecraft/libraries/lzma/lzma/0.0.1/lzma-0.0.1.jar:/home/pi/.minecraft/libraries/net/sf/jopt-simple/jopt-simple/5.0.3/jopt-simple-5.0.3.jar:/home/pi/.minecraft/libraries/java3d/vecmath/1.5.2/vecmath-1.5.2.jar:/home/pi/.minecraft/libraries/net/sf/trove4j/trove4j/3.0.3/trove4j-3.0.3.jar:/home/pi/.minecraft/libraries/com/mojang/patchy/1.1/patchy-1.1.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/4.4.0/jna-4.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/5.0.3/jopt-simple-5.0.3.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.1.9.Final/netty-all-4.1.9.Final.jar:/home/pi/.minecraft/libraries/com/google/guava/guava/21.0/guava-21.0.jar:/home/pi/.minecraft/libraries/org/apache/commons/commons-lang3/3.5/commons-lang3-3.5.jar:/home/pi/.minecraft/libraries/commons-io/commons-io/2.5/commons-io-2.5.jar:/home/pi/.minecraft/libraries/commons-codec/commons-codec/1.10/commons-codec-1.10.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.8.0/gson-2.8.0.jar:/home/pi/.minecraft/libraries/com/mojang/authlib/1.5.25/authlib-1.5.25.jar:/home/pi/.minecraft/libraries/com/mojang/realms/1.10.17/realms-1.10.17.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.1.0/fastutil-7.1.0.jar:/home/pi/.minecraft/libraries/org/apache/logging/log4j/log4j-api/2.8.1/log4j-api-2.8.1.jar:/home/pi/.minecraft/libraries/org/apache/logging/log4j/log4j-core/2.8.1/log4j-core-2.8.1.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/libraries/com/mojang/text2speech/1.10.3/text2speech-1.10.3.jar:/home/pi/.minecraft/versions/1.12.2/1.12.2.jar
TWEAK_CLASS=net.minecraftforge.fml.common.launcher.FMLTweaker

# 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

MINECRAFT_UUID="$(\
curl -X POST -H 'Content-Type: application/json' https://api.mojang.com/profiles/minecraft --data '"'$MINECRAFT_USERNAME'"' \
| sed '/id":"/!d;s//&\n/;s/.*\n//;:a;/",/bb;$!{n;ba};:b;s//\n&/;P;D' \
)"

echo "MINECRAFT_UUID="$MINECRAFT_UUID

# run minecraft with all the right commandline options
/usr/lib/jvm/jdk-8-oracle-arm32-vfp-hflt/jre/bin/java \
    -Xmn128M -Xmx550M \
    -XX:+UseConcMarkSweepGC \
    -XX:+CMSIncrementalMode \
    -XX:-UseAdaptiveSizePolicy \
    -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

I am getting this error

Code: Select all

[23:37:33] [main/INFO] [STDERR]: [optifine.OptiFineClassTransformer:getOptiFineResourcePatched:236]: 	at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
[23:37:33] [main/INFO] [STDERR]: [optifine.OptiFineClassTransformer:getOptiFineResourcePatched:236]: 	at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
[23:37:34] [main/ERROR] [LaunchWrapper]: Unable to launch
java.lang.reflect.InvocationTargetException: null
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_65]
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_65]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_65]
	at java.lang.reflect.Method.invoke(Method.java:497) ~[?:1.8.0_65]
	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.VerifyError: Inconsistent stackmap frames at branch target 13
Exception Details:
  Location:
    Config.getWorldServer()Lnet/minecraft/world/BossInfoServer; @13: getstatic
  Reason:
    Type 'net/minecraft/client/network/NetHandlerPlayClient' (current frame, locals[0]) is not assignable to 'net/minecraft/world/GameType' (stack map, locals[0])
  Current Frame:
    bci: @8
    flags: { }
    locals: { 'net/minecraft/client/network/NetHandlerPlayClient' }
    stack: { 'net/minecraft/client/network/NetHandlerPlayClient' }
  Stackmap Frame:
    bci: @13
    flags: { }
    locals: { 'net/minecraft/world/GameType' }
    stack: { }
  Bytecode:
    0x0000000: b202 d3b4 056c 4b2a c700 0501 b0b2 02d3
    0x0000010: b605 709a 0005 01b0 b202 d3b6 0573 4c2b
    0x0000020: c700 0501 b02a b405 784d 2cc7 0005 01b0
    0x0000030: 2cb6 057e 4e2b 2db6 0582 b605 853a 0419
    0x0000040: 04b0 3a04 01b0                         
  Exception Handler Table:
    bci [53, 65] => handler: 66
  Stackmap Table:
    append_frame(@13,Object[#1390])
    same_frame(@24)
    append_frame(@37,Object[#1397])
    append_frame(@48,Object[#1402])
    full_frame(@66,{Object[#1390],Object[#1397],Object[#1402],Object[#1408]},{Object[#1384]})

	at Reflector.logEntry(Reflector.java:1207) ~[Reflector.class:?]
	at Reflector.<clinit>(Reflector.java:109) ~[Reflector.class:?]
	at net.minecraft.crash.CrashReport.func_71504_g(CrashReport.java:138) ~[b.class:?]
	at net.minecraft.crash.CrashReport.<init>(CrashReport.java:54) ~[b.class:?]
	at net.minecraft.crash.CrashReport.func_85055_a(CrashReport.java:425) ~[b.class:?]
	at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:381) ~[bib.class:?]
	at net.minecraft.client.main.Main.main(SourceFile:123) ~[Main.class:?]
	... 6 more
Exception in thread "Client thread" [23:37:34] [main/INFO] [STDERR]: [java.lang.ThreadGroup:uncaughtException:1052]: net.minecraftforge.fml.relauncher.FMLSecurityManager$ExitTrappedException
[23:37:34] [main/INFO] [STDERR]: [java.lang.ThreadGroup:uncaughtException:1052]: 	at net.minecraftforge.fml.relauncher.FMLSecurityManager.checkPermission(FMLSecurityManager.java:49)
[23:37:34] [main/INFO] [STDERR]: [java.lang.ThreadGroup:uncaughtException:1052]: 	at java.lang.SecurityManager.checkExit(SecurityManager.java:761)
[23:37:34] [main/INFO] [STDERR]: [java.lang.ThreadGroup:uncaughtException:1052]: 	at java.lang.Runtime.exit(Runtime.java:107)
[23:37:34] [main/INFO] [STDERR]: [java.lang.ThreadGroup:uncaughtException:1052]: 	at java.lang.System.exit(System.java:971)
[23:37:34] [main/INFO] [STDERR]: [java.lang.ThreadGroup:uncaughtException:1052]: 	at net.minecraft.launchwrapper.Launch.launch(Launch.java:138)
[23:37:34] [main/INFO] [STDERR]: [java.lang.ThreadGroup:uncaughtException:1052]: 	at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
Does anyone know how to fix this?? I was trying to make forge work myself,and I forgot about the tweaker. Thanks for the code.
IDK, man. I installed it the way the tutorial says, ran the forge installer, then made a new run.sh file, and it worked. I don't know what to tell you, as I know nothing about java. And also, minecraft crashes whenever opening a world with forge on.
I got it. You cant have mods in the mods folder until you've played it once (At least for me). I got 1.7.10 working to changing the cp, and the tweaker is different. It is...

Code: Select all

cpw.mods.fml.common.launcher.FMLTweaker

User avatar
mikesome13
Posts: 16
Joined: Sun Jul 23, 2017 6:26 pm
Contact: Twitter YouTube

Re: How to setup Minecraft 1.12.1 on Raspberry Pi 3

Sat Oct 07, 2017 6:35 pm

Is that for forge, or some other launcher?
YES!

Glitch_head
Posts: 4
Joined: Mon Mar 16, 2015 12:03 am

Re: How to setup Minecraft 1.12.1 on Raspberry Pi 3

Mon Oct 09, 2017 2:52 am

xXRoboBoyXx wrote:
Mon Oct 02, 2017 1:36 pm
Glitch_head wrote:
Sun Sep 24, 2017 12:38 pm
It seems exiting to console and running this command helps boost some fps. All it does is only start the minecraft in X and nothing else.

Code: Select all

startx ./runOptifine1_12_1.sh
I can't get into the game! Minecraft launches fine, I get a bit more FPS, But the game pauses when i go to my singleplayer world! I can't unpause. Any help?
Apparently you cannot exit the pause menu unless your in fullscreen mode. This is not a problem for me because i'm using a small hdmi touchscreen display. You should be able to fix the no mouse cursor problem and the pause menu problem by starting the window manager with minecraft but i forgot how i did it a long time ago :(

xXRoboBoyXx
Posts: 38
Joined: Sat Feb 04, 2017 3:22 pm

Re: How to setup Minecraft 1.12.1 on Raspberry Pi 3

Mon Oct 09, 2017 1:13 pm

Glitch_head wrote:
Mon Oct 09, 2017 2:52 am
xXRoboBoyXx wrote:
Mon Oct 02, 2017 1:36 pm
Glitch_head wrote:
Sun Sep 24, 2017 12:38 pm
It seems exiting to console and running this command helps boost some fps. All it does is only start the minecraft in X and nothing else.

Code: Select all

startx ./runOptifine1_12_1.sh
I can't get into the game! Minecraft launches fine, I get a bit more FPS, But the game pauses when i go to my singleplayer world! I can't unpause. Any help?

Apparently you cannot exit the pause menu unless your in fullscreen mode. This is not a problem for me because i'm using a small hdmi touchscreen display. You should be able to fix the no mouse cursor problem and the pause menu problem by starting the window manager with minecraft but i forgot how i did it a long time ago :(
I got the cursor by going into Options, Texture Packs, And clicking "Open Texture Pack Folder". It opened a window, so i closed it, and i got a cursor that looked like a X
I got into the game, Went fullscreen, And everything worked! Thanks!
3.141592653589...

User avatar
mikesome13
Posts: 16
Joined: Sun Jul 23, 2017 6:26 pm
Contact: Twitter YouTube

Re: How to setup Minecraft 1.12.1 on Raspberry Pi 3

Wed Oct 11, 2017 5:04 pm

I do startx ./runOptifine1_12_1.sh, but it doesn't work, it ends with

Code: Select all

xinit: giving up
xinit: unable to connect to X server: Connection refused
xinit: server error
Any help?
YES!

Qesterius
Posts: 2
Joined: Wed Oct 18, 2017 7:21 pm

Re: How to setup Minecraft 1.12.1 on Raspberry Pi 3

Wed Oct 18, 2017 7:39 pm

Code: Select all

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   263  100   107  100   156    109    160 --:--:-- --:--:-- --:--:--   161
todays access token = 
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100    11  100     2  100     9      2      9  0:00:01 --:--:--  0:00:01     9
MINECRAFT_UUID=
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.launchwrapper.Launch
I'm trying to run this minecraft on Kano OS, but on cracked launcher Shiginima and it's not working.
Any ideas?
(Im just using illegal version to see how it works, if it will I'll buy legally)

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

Re: How to setup Minecraft 1.12.1 on Raspberry Pi 3

Wed Oct 18, 2017 9:12 pm

I don't believe this method of running Minecraft will work without a valid legal Minecraft login.

We also won't help with illegal usage.

Qesterius
Posts: 2
Joined: Wed Oct 18, 2017 7:21 pm

Re: How to setup Minecraft 1.12.1 on Raspberry Pi 3

Thu Oct 19, 2017 8:57 am

I've figured that out. I had wrong path in run.sh.
Changing /pi/ to username solved problem, but minecraft runs at 1fps.
Glxgears are blinking and stays at 22fps.

Im using Kano Os and Im not sure if gl drivers are enabled, because it doesnt have such thing as rasp-config

Return to “Gaming”

Who is online

Users browsing this forum: No registered users and 9 guests