Page 1 of 1

Failure: Not allowing to place CONTENT_IGNORE ???

PostPosted: Fri Jul 06, 2012 13:14
by tkerwel
Map::setNode(): Not allowing to place CONTENT_IGNORE while trying to replace "air" at (-66,25,102) (block (-5,1,6))

can somebody explain what this mean's ?
i try to create a tree with a experimental function,

so the trunk is placed without error...

minetest.env:add_node({x=pos.x,y=pos.y,z=pos.z},{type="node",name="default:fence_wood"})
minetest.env:add_node({x=pos.x,y=pos.y+1,z=pos.z},{type="node",name="default:fence_wood"})
minetest.env:add_node({x=pos.x,y=pos.y+2,z=pos.z},{type="node",name="default:fence_wood"})
minetest.env:add_node({x=pos.x,y=pos.y+3,z=pos.z},{type="node",name="default:fence_wood"})
minetest.env:add_node({x=pos.x+1,y=pos.y+3,z=pos.z},{type="node",name="deko:deko_birch_leaves"})

the first mistake comes where the leaves should be set, whats wrong ?

PostPosted: Fri Jul 06, 2012 14:21
by Calinou
You're trying to replace air with an unknown block; define it, or fix the name.

PostPosted: Fri Jul 06, 2012 15:50
by sfan5
...or the Chunk is not loaded

PostPosted: Fri Jul 06, 2012 16:51
by redcrab
strange I have same issue with tv mod (from jordach) ...
but all tv nodes exist and are registered ..
and it does the error with block loaded (be close to the tv node)
... I ask myself if this error occurs if we try to change a node with the same node ....
add node tv:screen_5 on at location of a tv:screen_5 node ..
Stupid ?

PostPosted: Fri Jul 06, 2012 17:11
by Keriz
Hi, I had the same problem but I made a lot of try and I found it. http://minetest.net/forum/viewtopic.php?pid=29758#p29758

PostPosted: Sat Jul 07, 2012 05:59
by tkerwel
thx for the help,
its like Calinou said, i wrote the block defenition wrong, missed a letter, realy need new glases, cause i did not see that a long time

PostPosted: Sat Jul 07, 2012 11:31
by Keriz
Ye the game may tell us which block it is trying to place.

PostPosted: Sat Jul 07, 2012 13:18
by mauvebic
if youre using abm's make sure they're not acting on unloaded chunks

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
if node.name == 'ignore' then return end


or use

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
node = get_node_or_nil(pos)
if node then
  -- do stuff
end

PostPosted: Mon Jul 09, 2012 10:23
by tkerwel
@mauvebic

thx for the tip and advice...