kilbith
Posts: 8
Joined: Thu Nov 20, 2014 4:08 pm

Minetest on Raspberry Pi

Thu Nov 20, 2014 4:26 pm

Hello ;)

Minetest is a free, open-source inspirated clone of Minecraft : http://minetest.net

Minetest is far superior to Minecraft for its limitless modularity and speedness (C++ instead of Java).

I really would like to port this game on Raspberry Pi. A build has been released there : https://github.com/Megaf/MinetestPi-Raspbian

It was compiled for work with OpenGL ES. Unfortunally, I get this error when I'm trying to run the program (tried many things with the libs, though) :

Code: Select all

pi@raspberrypi ~/Minetest/bin $ ./minetest
Irrlicht log: Irrlicht Engine version 1.9.0
Irrlicht log: Linux 3.12.32+ #721 PREEMPT Fri Nov 7 16:50:31 GMT 2014 armv6l
Irrlicht log: Creating X window...
Irrlicht log: Using plain X visual
libEGL warning: DRI2: failed to authenticate
Irrlicht log: EGL version: 1.400000
If you want to try, add this line in your minetest.conf :

Code: Select all

video_driver = ogles1
I'm waiting for any help, thanks for your attention :)

dan3008
Posts: 1172
Joined: Wed Aug 15, 2012 1:05 pm

Re: Minetest on Raspberry Pi

Sat Nov 22, 2014 12:23 am

I'm without pi at the moment (Its running a blog that I want to keep up) can you try backing up your sd card (incase this doesnt work) and installing maynard and see if that works?

Code: Select all

wget http://raspberrypi.collabora.co.uk/setup-maynard.sh
bash ./setup-maynard.sh
(easyer than doing it manually)
I've seen a few reports that will install some libaries that fix (some) of the libEGL issues.

Might not work, but worth a try
dan3008 wrote:Pays your money, takes your choice

kilbith
Posts: 8
Joined: Thu Nov 20, 2014 4:08 pm

Re: Minetest on Raspberry Pi

Sat Nov 22, 2014 8:50 am

I'd prefer the names of those libs that fix EGL, instead of backing up & replace my window manager...

Thanks !

kilbith
Posts: 8
Joined: Thu Nov 20, 2014 4:08 pm

Re: Minetest on Raspberry Pi

Sat Nov 22, 2014 9:37 am

OK I installed Maynard. Same result with libEGL... and stucked in a black-screen when I'm running Maynard :(

Hiradur
Posts: 96
Joined: Fri Mar 01, 2013 10:59 am

Re: Minetest on Raspberry Pi

Wed Feb 11, 2015 10:11 am

Has somebody tried Minetest on RPi2? How does it perform?

kilbith
Posts: 8
Joined: Thu Nov 20, 2014 4:08 pm

Re: Minetest on Raspberry Pi

Wed Feb 11, 2015 10:23 am

Hiradur wrote:Has somebody tried Minetest on RPi2? How does it perform?
Not tested but it'd encounter the same issue since we can't run it with OpenGL ES (unless on Android).

Hiradur
Posts: 96
Joined: Fri Mar 01, 2013 10:59 am

Re: Minetest on Raspberry Pi

Wed Feb 11, 2015 10:47 am

I once ran the unmodified source from the official repos on a RPi1 with glshim to translate OpenGL calls to OpenGL ES calls. It worked but was very slow (3-10FPS).
Tutorial: http://www.raspberrypi.org/forums/viewt ... 4&p=479445

amartires
Posts: 1
Joined: Tue Jul 02, 2013 4:35 pm

Re: Minetest on Raspberry Pi

Sat Feb 28, 2015 1:52 am

Hiradur wrote:Has somebody tried Minetest on RPi2? How does it perform?
I compiled it from source and it runs sluggish on my RPi2. But it's using Open GL, I will try to change the config file, if it doesn't work I'll try the RPi port.

super213
Posts: 50
Joined: Sat Jul 04, 2015 7:00 pm
Location: USA

Re: Minetest on Raspberry Pi

Mon Aug 10, 2015 8:31 pm

i know this is a old post. buuuut lets start er up. i can compile with opengles but i cant find the headers or the library for the opengles 2. minetest uses opengl 2.1 where glshim can not run that it can only run 1.x

User avatar
xranby
Posts: 539
Joined: Sat Mar 03, 2012 10:02 pm
Contact: Website

Re: Minetest on Raspberry Pi

Mon Aug 17, 2015 10:47 am

I get between 11-15fps when I am running minetest from Raspbian using the new Mesa3d vc4 OpenGL 2 driver on a RaspberryPi 2
You can read more about this new driver here: viewtopic.php?p=802205#p802205
Last edited by xranby on Mon Aug 17, 2015 10:51 am, edited 2 times in total.
Xerxes Rånby @xranby I once had two, then I gave one away. Now both are in use every day!
twitter.com/xranby

kilbith
Posts: 8
Joined: Thu Nov 20, 2014 4:08 pm

Re: Minetest on Raspberry Pi

Mon Aug 17, 2015 10:50 am

xranby wrote:I get between 11-15fps when I am running minetest from Raspbian using the new Mesa3d vc4 OpenGL 2 driver on a RaspberryPi 2
Are you sure you're not using OpenGL ES 2 ? This would be way more efficient on a ARM board.

User avatar
xranby
Posts: 539
Joined: Sat Mar 03, 2012 10:02 pm
Contact: Website

Re: Minetest on Raspberry Pi

Mon Aug 17, 2015 10:54 am

kilbith wrote:
xranby wrote:I get between 11-15fps when I am running minetest from Raspbian using the new Mesa3d vc4 OpenGL 2 driver on a RaspberryPi 2
Are you sure you're not using OpenGL ES 2 ? This would be way more efficient on a ARM board.
Yes i am sure. I am not using the /opt/vc binary OpenGL ES 2 driver all, this folder is deleted on my test system.

The idea why this new Mesa3D vc4 drivers is developed is to make all OpenGL 2 applications work, and it do make the pi more compatible with all the opengl 2 applications packaged in Raspbian.
Xerxes Rånby @xranby I once had two, then I gave one away. Now both are in use every day!
twitter.com/xranby

kilbith
Posts: 8
Joined: Thu Nov 20, 2014 4:08 pm

Re: Minetest on Raspberry Pi

Mon Aug 17, 2015 11:22 am

Some tips to optimize the game performances. Set that in minetest.conf to your root folder.

Code: Select all

enable_3d_clouds = false
enable_particles = false
enable_shaders = false
leaves_style = opaque
viewing_range_nodes_min = 48
viewing_range_nodes_max = 48
It's important to set the same value on viewing_range min and max. It prevents the map being rendered by round trips far away.
Also don't use filters, mipmapping and antialiasing.

And to optimize the RAM usage in the nearly-released 0.4.13 version :

Code: Select all

client_mapblock_limit = 1000

super213
Posts: 50
Joined: Sat Jul 04, 2015 7:00 pm
Location: USA

Re: Minetest on Raspberry Pi

Mon Aug 17, 2015 8:51 pm

kilbith wrote:
xranby wrote:I get between 11-15fps when I am running minetest from Raspbian using the new Mesa3d vc4 OpenGL 2 driver on a RaspberryPi 2
Are you sure you're not using OpenGL ES 2 ? This would be way more efficient on a ARM board.
how do i get this driver?

kilbith
Posts: 8
Joined: Thu Nov 20, 2014 4:08 pm

Re: Minetest on Raspberry Pi

Mon Aug 17, 2015 10:48 pm

Your ARM board natively supports OpenGL ES 1.x and 2.x.

Minetest supports these drivers as well, but you must compile the 3D engine (Irrlicht) with its OpenGL ES branch, and then compile Minetest with your custom Irrlicht library.

super213
Posts: 50
Joined: Sat Jul 04, 2015 7:00 pm
Location: USA

Re: Minetest on Raspberry Pi

Tue Aug 18, 2015 1:56 am

kilbith wrote:Your ARM board natively supports OpenGL ES 1.x and 2.x.

Minetest supports these drivers as well, but you must compile the 3D engine (Irrlicht) with its OpenGL ES branch, and then compile Minetest with your custom Irrlicht library.
how well does this run on rpi 2 using opengles

User avatar
mrpi64
Posts: 931
Joined: Sat Feb 16, 2013 5:13 pm

Re: Minetest on Raspberry Pi

Wed Aug 19, 2015 3:06 pm

so do we have a "working" WIP port to the Pi as such?
I'm happy to help.
https://www.raspberrypi.org/forums/viewtopic.php?f=78&t=51794 - List of games that work on the Pi.

ktb
Posts: 1380
Joined: Fri Dec 26, 2014 7:53 pm

Re: Minetest on Raspberry Pi

Sun Sep 06, 2015 5:44 am

xranby wrote:I get between 11-15fps when I am running minetest from Raspbian using the new Mesa3d vc4 OpenGL 2 driver on a RaspberryPi 2
You can read more about this new driver here: viewtopic.php?p=802205#p802205
Boot your Pi2B with cma=512M in cmdline.txt. I get 18-32 FPS running the wheezy version of minetest on the 20150808-1312-vc4 build image.

AgentNagel42
Posts: 2
Joined: Mon Sep 07, 2015 12:57 am

Re: Minetest on Raspberry Pi

Mon Sep 07, 2015 2:34 am

Hey so me and the people over at the minetest forums are attempting to make an official port version, can u explain how u got this working?
I'm on the Minetest Forum as AgentNagel42.
I'm on YouTube as AgentNagel42 on the NoobsPlayGames channel.
RETROGAMIN BEATS GABEN!!! lol

julienrat
Posts: 5
Joined: Fri Dec 06, 2013 12:46 pm

Re: Minetest on Raspberry Pi

Fri Sep 25, 2015 8:32 am

Hi ktb ! i have try your tips with cma=512M, but i get 8-13 fps in minetest .....
- 20150919-1903-vc4-image build
- wheezy version

could you give us the content of your cmdline.txt file ?
THX

ktb
Posts: 1380
Joined: Fri Dec 26, 2014 7:53 pm

Re: Minetest on Raspberry Pi

Fri Sep 25, 2015 12:00 pm

julienrat wrote:Hi ktb ! i have try your tips with cma=512M, but i get 8-13 fps in minetest .....
- 20150919-1903-vc4-image build
- wheezy version

could you give us the content of your cmdline.txt file ?
THX
Well, I have upgraded the 20150808-1312-vc4 build image to Jessie (with minetest 0.4.10) and I've recompiled Mesa a few times, but here's some info...

~/.minetest/minetest.conf:

Code: Select all

address =
creative_mode = false
enable_3d_clouds = false
enable_particles = false
enable_shaders = false
leaves_style = opaque
viewing_range_nodes_min = 48
viewing_range_nodes_max = 48
enable_damage = true
name = KTB
new_style_leaves = false
opaque_water = false
port = 30000
smooth_lighting = true
/boot/cmdline.txt:

Code: Select all

dwc_otg.lpm_enable=0 dwc_otg.fiq_fsm_mask=0xF cma=512M console=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline rootwait
/boot/config.txt:

Code: Select all

# For more options and information see 
# http://www.raspberrypi.org/documentation/configuration/config-txt.md
# 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

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

# 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 the lirc-rpi module
#dtoverlay=lirc-rpi

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

# added for vc4 driver
mask_gpu_interrupt0=0x400
avoid_warnings=2
disable_overscan=1

arm_freq=1000
sdram_freq=483
core_freq=500
h264_freq=500
isp_freq=500
v3d_freq=500

over_voltage=4
#over_voltage_min=0
over_voltage_sdram=2
over_voltage_sdram_c=0
over_voltage_sdram_i=0
over_voltage_sdram_p=0

avoid_pwm_pll=1

#current_limit_override=0x5A000020
#force_turbo=1
#initial_turbo=1
max_usb_current=1
temp_limit=83

#gpu_mem=256
#cma_lwm=16
#cma_hwm=32
#cma_offline_start=16

# Prevent VideoCore from registering the v3d interrupt.  Our GL stack
# causes the interrupt to be triggered, but it sends the VC off into
# the weeds and it stops responding to some RPCs.
#mask_gpu_interrupt0=0x400

#hvs_priority=0x32ff

#dispmanx_offline=1

# 2B video codec license keys
decode_MPG2=0x80f8bb6f
decode_WVC1=0x67e83499

# B+ video codec license keys
#decode_MPG2=0xeee74410
#decode_WVC1=0xed7332b0

#kernel=kernel7.img
#kernel=kernel-vc4-3.19.0-v7+.img
#kernel=kernel-vc4-1360x768-3.19.0-v7+.img
#kernel=kernel-vc4-kms-v3d-rpi2-irq-4.0.0-v7+.img
#initramfs initrd.img-4.0.0-v7+ followkernel
#kernel=kernel-3.18.11.img
#kernel=kernel-3.18.11-v7+.img
#kernel=kernel-3.18.12-v7+.img
#initramfs initrd.img-3.18.12-v7+ followkernel
#kernel=kernel-vc4-kms-v3d-4.0.0-rc1+.img

dtdebug=on
#device_tree=

# Uncomment some or all of these to enable the optional hardware interfaces
dtparam=i2c0=on
dtparam=i2c1=on
#dtparam=i2s=on
dtparam=spi=on
#dtparam=i2c_arm=on,i2c_arm_baudrate=32000

# Uncomment one of these lines to enable an audio interface
#dtoverlay=hifiberry-amp
#dtoverlay=hifiberry-dac
#dtoverlay=hifiberry-dacplus
#dtoverlay=hifiberry-digi
#dtoverlay=iqaudio-dac
#dtoverlay=iqaudio-dacplus

# Uncomment this to enable the lirc-rpi module
#dtoverlay=lirc-rpi

# Uncomment this to override the defaults for the lirc-rpi module
#dtparam=gpio_out_pin=17
#dtparam=gpio_in_pin=18
#dtparam=gpio_in_pull=down

# Uncomment this to enable the UPS Pico IR receiver
dtoverlay=lirc-rpi:gpio_in_pin=18,gpio_in_pull=down

# Uncomment this to enable the UPS Pico RTC
dtoverlay=i2c-rtc,ds1307
Last edited by ktb on Fri Sep 25, 2015 12:59 pm, edited 1 time in total.

kilbith
Posts: 8
Joined: Thu Nov 20, 2014 4:08 pm

Re: Minetest on Raspberry Pi

Fri Sep 25, 2015 12:33 pm

@ktb : there are errors in your minetest.conf. The settings are boolean type (true / false), not binary (0 or 1).

ktb
Posts: 1380
Joined: Fri Dec 26, 2014 7:53 pm

Re: Minetest on Raspberry Pi

Fri Sep 25, 2015 12:50 pm

kilbith wrote:@ktb : there are errors in your minetest.conf. The settings are boolean type (true / false), not binary (0 or 1).
Interesting. I can't say for sure, but I seem to remember copying and pasting the exact config you suggested in this thread. Either I did and minetest updated it to 0's and 1's or the config file initially contained 0's and 1's and I simply continued that convention. I can't remember exactly. I'll try updating my config file. Thank you.

julienrat
Posts: 5
Joined: Fri Dec 06, 2013 12:46 pm

Re: Minetest on Raspberry Pi

Wed Feb 10, 2016 7:42 am

Minetest work like a charm with the newest version of RASPBIAN JESSIE https://www.raspberrypi.org/blog/anothe ... an-release
  • 2 - Enable openGL acceleration in raspi-config Advanced Options->GL Driver
  • 3 - Install Minetest

Code: Select all

sudo apt-get install minetest
  • 4 - Enjoy !

mob-i-l
Posts: 272
Joined: Sat Dec 29, 2012 2:45 am
Location: Lund, Skåne/Scania, Sweden
Contact: Website Facebook Google+ Twitter YouTube

Re: Minetest on Raspberry Pi

Sun Feb 21, 2016 3:08 pm

julienrat wrote:Minetest work like a charm with the newest version of RASPBIAN JESSIE https://www.raspberrypi.org/blog/anothe ... an-release
  • 2 - Enable openGL acceleration in raspi-config Advanced Options->GL Driver
  • 3 - Install Minetest

Code: Select all

sudo apt-get install minetest
  • 4 - Enjoy !
I have enabled OpenGL on a Raspberry Pi 2 and the clouds move toward me, and I create a world with:
World name: qwe
Seed: 123
Mapgen: v6
Then I clicked on one of the texts at Game and the world got created and I can play! Before I clicked these texts I got some error.
Have Pi0&1A&1B&1B+&2B&3B&4B w/ Raspbian. Started w/ BASIC on ABC80&ZX81 then Forth, Z80… https://scratch.mit.edu/users/mobluse/ https://github.com/mobluse/ https://twitter.com/mobluse/ https://YouTube.com/MOBiL4u/

Return to “Gaming”