Page 1 of 1
Furnace trouble

Posted:
Fri Jul 27, 2012 23:43
by Nubelite
When someone fills the 4 boxes with items then tries to make something in the furnace with the other 2 boxes the game will crash and the map will no longer be usable. For servers it will crash the server and not let someone enter the server map when started again.

Posted:
Sat Jul 28, 2012 00:02
by Menche
I tested this and exactly what Nubelite described happened. The error message is 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
17:00:38: ERROR[main]: ServerError: LuaError: error: ...est/bin/../games/minetest_game/mods/default/init.lua:1410: attempt to concatenate field 'item' (a userdata value)

Posted:
Sat Jul 28, 2012 00:30
by Nubelite
if you replace ln 1410 with print("Furnace is to full.") then the issue is resolved. The player just looses the fuel, but everything else stays.
Orginal line: print("Could not insert '"..cooked.item.."'")
Issue is cooked.item. I think when it tries to add it to the string in this instance it is trying to add a nil value. If that is the case i don't believe a nil value can be added to a string.
Optional replacement line: print("Furnace is to full.")

Posted:
Sat Aug 04, 2012 11:53
by sdzen
i just removed the message completely :)