over by 1000 then i decimated and triangulated and walla back in business other thna it messed up the position of my nos sticker :) a few more picture of the improvements i added mirros and of course i figured out what i had forgot before. a blower scoop on the blower. plus now it has most of the decals. i think im going to go with the colored minetest logo.2015-12-14 09:10:59: [MeshUpdate]: FIXME: MeshCollector::append() called with numIndices=66456 (limit 65535)












2015-12-21 07:19:14: ERROR[Main]: ServerError: Lua: Runtime error from mod 'mck' in callback node_on_construct(): ...n/Downloads/minetest-master/bin/../mods/mck/init.lua:251: attempt to index global 'player' (a nil value)
ive googled and found a few things but the result is always the same
if deployable == 0 then
mck.placedozer(pos)
else
minetest.remove_node(pos)
placer:get_inventory():add_item("main", "mck:dozer")
--minetest.remove_node(pos)
minetest.chat_send_all("Cannot deploy Dozer here; Insufficeint Space "..deployable.." Obstructions")
end
after_place_node = function(pos, placer)
local Xmin = -3 --depth in back and back of machine
local Xmax = 2 --depth in front of machine
local Ymin = 0 --machine height
local Ymax = 6 --machine height
local Zmin = -2 --left W of machine
local Zmax = 2 --right W of machine
local b = 1
local c = 1
local d = 1
local b1 = 0
local deployable = 0
local bpos
local facing = minetest.env:get_node(pos).param2 or 0
local playername = placer:get_player_name()
local playerinv = minetest.get_inventory({type="player", name=playername})
b1=b*-1
for b = Xmin, Xmax do --loop for len at once
for c = Ymin, Ymax do -- loop for height at once
for d = Zmin, Zmax do -- loop for width at once
if facing == 0 then
bpos = {x = pos.x + d, y = pos.y + c, z = pos.z + b}
elseif facing == 1 then
bpos = {x = pos.x + b, y = pos.y + c, z = pos.z + d}
elseif facing == 2 then
bpos = {x = pos.x + d, y = pos.y + c, z = pos.z + b1}
elseif facing == 3 then
bpos = {x = pos.x + b1, y = pos.y + c, z = pos.z + d}
end
local currentblock = minetest.get_node(bpos)
if currentblock.name ~= 'air' and currentblock.name ~= 'mck:dozer' then
deployable = deployable + 1
end
end --/// loop one end
end --/// loop two end
end --/// loop 3 end
if deployable == 0 then
mck.placedozer(pos)
else
minetest.remove_node(pos)
placer:get_inventory():add_item("main", "mck:dozer")
--minetest.remove_node(pos)
minetest.chat_send_all("Cannot deploy Dozer here; Insufficeint Space "..deployable.." Obstructions")
end
end,also when you read the documentation and you are coding procedurally a secondary call back still sounds like something that will get done later rather than sooner and really if i could not deploy it at all unless there is space it would be much more ideal.You certainly would have found it with a correct reading.
after_place_node = function(pos, placer, itemstack)
local Xmin = -3 --depth in back and back of machine
local Xmax = 2 --depth in front of machine
local Ymin = 0 --machine height
local Ymax = 6 --machine height
local Zmin = -2 --left W of machine
local Zmax = 2 --right W of machine
local b = 1
local c = 1
local d = 1
local b1 = 0
local deployable = 0
local bpos
local facing = minetest.env:get_node(pos).param2 or 0
local playername = placer:get_player_name()
local playerinv = minetest.get_inventory({type="player", name=playername})
b1=b*-1
for b = Xmin, Xmax do --loop for len at once
for c = Ymin, Ymax do -- loop for height at once
for d = Zmin, Zmax do -- loop for width at once
if facing == 0 then
bpos = {x = pos.x + d, y = pos.y + c, z = pos.z + b}
elseif facing == 1 then
bpos = {x = pos.x + b, y = pos.y + c, z = pos.z + d}
elseif facing == 2 then
bpos = {x = pos.x + d, y = pos.y + c, z = pos.z + b1}
elseif facing == 3 then
bpos = {x = pos.x + b1, y = pos.y + c, z = pos.z + d}
end
local currentblock = minetest.get_node(bpos)
if currentblock.name ~= 'air' and currentblock.name ~= 'mck:dozer' then
deployable = deployable + 1
end
end --/// loop one end
end --/// loop two end
end --/// loop 3 end
if deployable == 0 then
mck.placedozer(pos)
return false
else
minetest.chat_send_all("Cannot deploy Dozer here; Insufficeint Space "..deployable.." Obstructions")
minetest.env:remove_node(pos)
return true
end
end,







clicker:set_properties({visual_size = {x=0, y=0}})


tbillion wrote:i am disappointed that you cant use a mesh node for a tool in minetest
Users browsing this forum: No registered users and 35 guests