Page 1 of 1

MAINMENU ERROR (I killed minetest!)

PostPosted: Thu May 15, 2014 05:17
by Kilarin
I've never played multiplayer minetest, so I thought I would give it a try. So I tried clicking on the server tab, figured out that was for starting a server yourself? Tried clicking on the client tab, and I was going to enter the info for the Xanadu server, then I'm not certain what I hit, but suddenly minetest got the following error. it wouldn't go away, every click shows the error again. So I killed minetest and started it up again.

oops, now it flashes up the main menu for just a moment, then goes directly to this:
Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
00:11:41: ERROR[main]: MAINMENU ERROR: /usr/share/minetest/builtin/mainmenu/init.lua:911: attempt to get length of field 'favorites' (a nil value)
00:11:41: ERROR[main]: stack traceback:
00:11:41: ERROR[main]:    /usr/share/minetest/builtin/mainmenu/init.lua:911: in function 'buildfunc'
00:11:41: ERROR[main]:    /usr/share/minetest/builtin/mainmenu/init.lua:368: in function 'gettab'
00:11:41: ERROR[main]:    /usr/share/minetest/builtin/mainmenu/init.lua:177: in function 'update_menu'
00:11:41: ERROR[main]:    /usr/share/minetest/builtin/mainmenu/init.lua:1305: in function 'event_handler'
00:11:41: ERROR[main]:    /usr/share/minetest/builtin/mainmenu/init.lua:226: in function </usr/share/minetest/builtin/mainmenu/init.lua:224>
00:11:41: ERROR[main]:    /usr/share/minetest/builtin/common/async_event.lua:7: in function </usr/share/minetest/builtin/common/async_event.lua:4>


What did I do?

Re: MAINMENU ERROR (I killed minetest!)

PostPosted: Thu May 15, 2014 05:39
by HeroOfTheWinds
Looks like an engine error, not your fault.
For now, to get your Minetest back working, open minetest.conf, scroll until you find main_menu_tab, and set it to
main_menu_tab = singleplayer

Then refrain from clicking Client.

Re: MAINMENU ERROR (I killed minetest!)

PostPosted: Thu May 15, 2014 07:53
by Calinou
Latest Git builds should fix this, so use it.

Alternatively, you could create a placebo favorites.txt file in client/serverlist/.

Re: MAINMENU ERROR (I killed minetest!)

PostPosted: Thu May 15, 2014 09:44
by Amaz
Calinou wrote:Latest Git builds should fix this, so use it.

Alternatively, you could create a placebo favorites.txt file in client/serverlist/.

I'm using the latest git version, and it happens to me. This is the first time I got the error...

Re: MAINMENU ERROR (I killed minetest!)

PostPosted: Thu May 15, 2014 10:02
by BlockMen
Calinou, no its not fixed yet and you also cant fix it by creating that file.

Here i already wrote what to do: viewtopic.php?p=141552#p141552

Re: MAINMENU ERROR (I killed minetest!)

PostPosted: Thu May 15, 2014 12:09
by Kilarin
Calinou wrote:Alternatively, you could create a placebo favorites.txt file in client/serverlist/.

Didn't work, but thanks for the attempt. :)

HeroOfTheWinds wrote: open minetest.conf, scroll until you find main_menu_tab, and set it to
main_menu_tab = singleplayer

Worked! I'm back to being able to play single player again! Thanks!

Calinou wrote:Calinou, no its not fixed yet and you also cant fix it by creating that file.

And that fixed it. I think what I did that "broke" it was checking the "public server list" box. But now I can click on the client tab and it doesn't crash and the public server list is populated.

Unfortunately, I still can't join most multiplayer games because my old xubuntu 12.04 machine has some problem that won't let it run most mods without locking up minetest. And that apparently applies even when running as a client. I tried upgrading xubuntu to 14.04, and got "could not calculate the upgrade". Apparenlty I've got too many broken packages. I'll need to do 14.04 as a clean install and then try to restore all of my data. AND, thats a LOT of work. And SCARY work. So I've been putting it off... :)

Thank you very much everyone! The Minetest community is very helpful!!!