Page 1 of 1

Leafdecay.lua error

PostPosted: Sat Apr 07, 2012 15:10
by hijera
I tried to play old 0.3.1 world on last build (0.4dev-20120326-24953ba-win32), and when world is loading, i got an error:
ERROR[main]: ServerError: LuaError: error: ...in\..\games\minetest_gam
e\mods\default/leafdecay.lua:75: attempt to index local 'reg' (a nil value)

fixed by add (reg ~=nil) clause in 75'th string:
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
75: if (reg ~= nil) or n.name == "ignore" or (reg.groups.tree and reg.groups.tree ~= 0) then

PostPosted: Sat Apr 07, 2012 15:12
by bgsmithjr
This happens when you add certain mods and then remove them. You have to delete your map and then make a new one.

PostPosted: Sun Apr 08, 2012 16:29
by jn
Wait, wait.
What is the error message you get? Judging from the little information you gave us, It might also be that a part of the map is accessed while not being loaded yet.

PostPosted: Sun Apr 08, 2012 18:24
by neko259
I think this appears for node that don't have any group. Don't know if this is a bug or not (cause all nodes must have groups for now). Maybe you use old mods?

PostPosted: Mon Apr 09, 2012 23:03
by hijera
i tried to play map that i played on december 0.4dev version. And it causes that error when i tried to move at region which hadn't loaded. Seems like it really could be a problem with gorups.