Can you please run a simple test to see the output:
my_mod/init.lua
- Code: Select all
print("HOME is: "..os.getenv('HOME'))
print("home is: "..os.getenv('home'))
print("HOME is: "..os.getenv('HOME'))
print("home is: "..os.getenv('home'))
-- get_files
deploy_building.get_files = function(size)
local directory = minetest.get_modpath("deploy_building").."/buildings/"..size
local command = 'dir "'..directory..'\\*.we" /b' -- windows
if os.getenv('home')~=nil then
command = 'ls -a "'..directory..'/*.we"' -- linux/mac
end
local i, t, popen = 0, {}, io.popen
for filename in popen(command):lines() do
i = i + 1
t[i] = filename
end
return t
end
BZab wrote:Now it works, but i can't choose building...
Neuromancer wrote:I had an idea that I thought I'd run by you. What if when you placed a cylinder node, sphere node, etc, that they did nothing, until you placed a block on top of the special node. So if you placed a sand node on top of the pyramid node, it would build a sand pyramid. That way you would only need 1 special node for each shape, and the users could build out of whatever node they wanted, from any mod.
For cylinders, if a cactus node was placed on the right of the cylinder node, a cactus cylinder would be generated to the right. If the brick was placed on top of the cylinder node, a brick cylinder would grow upward. Thus a cylinder could grow in 5 directions.
alakemega wrote:says failed to load and run E:mine.test 1\bin\..\mods\minetest\cornernote-minetest-deploy_nodes-47c2e9b\ir
JPRuehmann wrote:Hello
like to try it out but unfortunately it is not working.
the deploy_nodes loads fine but all the other mods for these pack are not working.
Love to see it fixed.
thanks,
JPR
//p set
//save myawesomething
Users browsing this forum: No registered users and 48 guests