THIS DOES NOT WORK YET! Scroll down to the bottom if you would like to help.
For this tutorial I am assuming you already have linux set up with the KDE + graphics acceleration rootfs.
If you haven't set it up. Check out how to do that in this thread: https://gbatemp.net/threads/quick-tuto-how-to-boot-linux-on-your-switch.501918/
This tutorial is based off an existing tutorial for the raspberry pi: https://www.raspberrypi.org/forums/viewtopic.php?t=186547
The run script isn't mine and was written by rogerallen, i have adapted it to work on the nintendo switch.
On SSH, run:
On the Switch, run:
Now you should see the Minecraft launcher, log in with your e-mail and password and press play (just be sure to select 1.12.2 as the version). It should download all the files it needs and crash, that's fine for now.
On SSH, run:
On the switch, open a browser, go to https://optifine.net/downloads and download OptiFine 1.12.2 HD U D2.
On the Switch, run:
It should open the installer, click "install" and wait for it to complete.
On the Switch, run:
Press play (make sure the "OptiFine" profile is selected) it should download all the necessary files and crash.
On SSH, run:
Edit runOptifine1_12_2.sh with the required information (dont forget the clienttoken and uuid which you can get from ~/.minecraft/launcher_profiles.json).
What you need to edit:
This should be everything you need to run Minecraft: Java Edition on the Nintendo Switch!
On the Switch, run:
This is the part where i need your help:
When running minecraft after it has loaded everything and the window pops up, i get an error saying:
Full error log: https://gist.github.com/Seddigirl/f3f673cc3f3bc5b198019e37564595f9
I think this might have something to do with the way i compiled LWJGL, for more info on how to compile lwjgl yourself for the nintendo switch check here: https://github.com/LWJGL/lwjgl/issues/74 and here: http://rogerallen.github.io/jetson/2014/07/31/minecraft-on-jetson-tk1/
Just clone this: https://github.com/Seddigirl/lwjgl and symlink libjawt.so like this:
LWJGL2 should now compile properly on the nintendo switch.
Just run:
And it should compile properly
We need to figure out what's causing the X Error on launch. I think it might have something to do with how lwjgl is compiled but i'm not sure. It could have something to do with the graphics drivers too.
For this tutorial I am assuming you already have linux set up with the KDE + graphics acceleration rootfs.
If you haven't set it up. Check out how to do that in this thread: https://gbatemp.net/threads/quick-tuto-how-to-boot-linux-on-your-switch.501918/
This tutorial is based off an existing tutorial for the raspberry pi: https://www.raspberrypi.org/forums/viewtopic.php?t=186547
The run script isn't mine and was written by rogerallen, i have adapted it to work on the nintendo switch.
On SSH, run:
Code:
sudo pacman -Syu freealut jre9-openjdk jre8-openjdk wget jdk8-openjdk apache-ant base-devel
mkdir ~/Minecraft
mkdir ~/Minecraft/Natives
cd ~/Minecraft
wget https://s3.amazonaws.com/Minecraft.Download/launcher/Minecraft.jar
sudo archlinux-java set java-9-openjdk
On the Switch, run:
Code:
cd ~/Minecraft
java -jar Minecraft.jar
Now you should see the Minecraft launcher, log in with your e-mail and password and press play (just be sure to select 1.12.2 as the version). It should download all the files it needs and crash, that's fine for now.
On SSH, run:
Code:
cd ~/Minecraft/Natives
wget https://gist.github.com/Seddigirl/05f2a409c014ee4b245d94cb21168923/raw/9129f2ab262199c30305a9d00714fb683100c54c/liblwjgl.so
wget https://gist.github.com/Seddigirl/05f2a409c014ee4b245d94cb21168923/raw/d11ce3b1794f25bb63e31887000c8eb578ec51d2/libopenal.so
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
On the switch, open a browser, go to https://optifine.net/downloads and download OptiFine 1.12.2 HD U D2.
On the Switch, run:
Code:
cd ~/Downloads
java -jar OptiFine_1.12.2_HD_U_D2.jar
It should open the installer, click "install" and wait for it to complete.
On the Switch, run:
Code:
cd ~/Minecraft
java -jar Minecraft.jar
Press play (make sure the "OptiFine" profile is selected) it should download all the necessary files and crash.
On SSH, run:
Code:
cd ~/Minecraft
wget https://gist.githubusercontent.com/Seddigirl/036a578a070b85dd15775434746d8204/raw/1872a835cd2d36d51a79f142997307f760009538/runOptifine1_12_2.sh
sudo chmod +x runOptifine1_12_2.sh
sudo archlinux-java set java-8-openjdk
Edit runOptifine1_12_2.sh with the required information (dont forget the clienttoken and uuid which you can get from ~/.minecraft/launcher_profiles.json).
What you need to edit:
Code:
# !!! YOU MUST PERSONALIZE ALL OF THIS INFO !!!
# your personal login/password. chmod 700 to keep this private
[email protected]
MINECRAFT_USERNAME=abcdefghi
MINECRAFT_PASSWORD=xxxxxxxx
# 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
This should be everything you need to run Minecraft: Java Edition on the Nintendo Switch!
On the Switch, run:
Code:
cd ~/Minecraft
./runOptifine1_12_2.sh
This is the part where i need your help:
When running minecraft after it has loaded everything and the window pops up, i get an error saying:
Code:
X Error - disp: 0xffffaca68080 serial: 79 error: BadPixmap (invalid Pixmap parameter) request_code: 54 minor_code: 0
Full error log: https://gist.github.com/Seddigirl/f3f673cc3f3bc5b198019e37564595f9
I think this might have something to do with the way i compiled LWJGL, for more info on how to compile lwjgl yourself for the nintendo switch check here: https://github.com/LWJGL/lwjgl/issues/74 and here: http://rogerallen.github.io/jetson/2014/07/31/minecraft-on-jetson-tk1/
Just clone this: https://github.com/Seddigirl/lwjgl and symlink libjawt.so like this:
Code:
ln -s /usr/lib/jvm/java-8-openjdk/lib/aarch64/libjawt.so /usr/lib/libjawt.so
LWJGL2 should now compile properly on the nintendo switch.
Just run:
Code:
ant generate-all
ant compile
ant compile_native
And it should compile properly
We need to figure out what's causing the X Error on launch. I think it might have something to do with how lwjgl is compiled but i'm not sure. It could have something to do with the graphics drivers too.
Last edited by NekoNoor,