Page 1 of 1

lua main menu bug

PostPosted: Mon May 12, 2014 02:13
by stormchaser3000
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
21:09:51: ERROR[main]: MAINMENU ERROR: ...00/Desktop/minetest/bin/../builtin/mainmenu/init.lua:911: attempt to get length of field 'favorites' (a nil value)
21:09:51: ERROR[main]: stack traceback:
21:09:51: ERROR[main]:    ...00/Desktop/minetest/bin/../builtin/mainmenu/init.lua:911: in function 'buildfunc'
21:09:51: ERROR[main]:    ...00/Desktop/minetest/bin/../builtin/mainmenu/init.lua:368: in function 'gettab'
21:09:51: ERROR[main]:    ...00/Desktop/minetest/bin/../builtin/mainmenu/init.lua:177: in function 'update_menu'
21:09:51: ERROR[main]:    ...00/Desktop/minetest/bin/../builtin/mainmenu/init.lua:1305: in function 'event_handler'
21:09:51: ERROR[main]:    ...00/Desktop/minetest/bin/../builtin/mainmenu/init.lua:226: in function '?'
21:09:51: ERROR[main]:    ...sktop/minetest/bin/../builtin/common/async_event.lua:7: in function <...sktop/minetest/bin/../builtin/common/async_event.lua:4>
Loaded texture: /home/stormchaser3000/Desktop/minetest/textures/base/pack/menu_header.png


i just wanted to make sure that the devs knew about this

i am using ubuntu 14.04

Re: lua main menu bug

PostPosted: Mon May 12, 2014 19:43
by Krock
Using ubuntu 14.04 and minetest 0.4.1.
----------
Is it the newest minetest version/dev?

Re: lua main menu bug

PostPosted: Mon May 12, 2014 20:27
by stormchaser3000
yeah i think

Re: lua main menu bug

PostPosted: Tue May 13, 2014 14:39
by TenPlus1
I've had the same error appear with my Ubuntu 14.04 install and using the last 3 dev versions... I keep having to remove and re-install 2736 which works ok...

Re: lua main menu bug

PostPosted: Tue May 13, 2014 17:19
by BlockMen
Its gonna be fixed within other changes, so until its merged you can fix it by just removing "--" here: https://github.com/minetest/minetest/bl ... t.lua#L221

So it has to look like this (Line 221)
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
         return core.get_favorites("online")

Re: lua main menu bug

PostPosted: Fri May 16, 2014 18:24
by Hybrid Dog
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
19:38:02: ERROR[main]:    /usr/share/minetest/builtin/common/async_event.lua:7: in function </usr/share/minetest/builtin/common/async_event.lua:4>
AL lib: FreeContext: (0xa4e01b8) Deleting 1 Source(s)
Loaded texture: /home/.minetest/textures/server/menu_header.png
AL lib: FreeContext: (0xa4e1ad0) Deleting 1 Source(s)
Why don't you get the AL lib: FreeContext message?

EDIT: Sorry, I use main menu music and I can't delete posts.