Page 1 of 1

[Solved] Doors loaded form schematic crash

PostPosted: Mon Apr 11, 2016 17:14
by AiTechEye
The game crashed when I tryed to open a door that was loaded from a schematic.

I used sfan5's newest windows build

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
ERROR[Main]: ServerError: Lua: Runtime error from mod '' in callback item_OnPlace(): ...\minetest\bin\..\games\minetest_game\mods\doors\init.lua:159: attempt to perform arithmetic on local 'state' (a string value)
ERROR[Main]: stack traceback:
ERROR[Main]:    ...\minetest\bin\..\games\minetest_game\mods\doors\init.lua:159: in function 'door_toggle'
ERROR[Main]:    ...\minetest\bin\..\games\minetest_game\mods\doors\init.lua:360: in function 'on_rightclick'
ERROR[Main]:    ...n\Desktop\minetest\minetest\bin\..\builtin\game\item.lua:333: in function <...n\Desktop\minetest\minetest\bin\..\builtin\game\item.lua:326>

Re: Doors loaded form schematic crash

PostPosted: Mon Apr 11, 2016 19:16
by sofar
File bugs in github please.

In this case, how did you load the schematic, and, can you post the schematic somehwere as well?

Re: Doors loaded form schematic crash

PostPosted: Mon Apr 11, 2016 19:39
by AiTechEye
its loaded from a mod i made "sunshinesurvive"

https://forum.minetest.net/viewtopic.php?f=9&t=14168

it randomly spawns boats from schematics, where the doors is included.

It did not crash like this in the older releases.

Im pretty sure this happens because the node is inactivated / no metadata after load.

Re: Doors loaded form schematic crash

PostPosted: Mon Apr 11, 2016 21:33
by sofar