Page 1 of 1

Spawn "we" and "mts" files

PostPosted: Tue Jul 08, 2014 14:19
by DevynCJohnson
Is there a better way to make "mts" and "we" files spawn than using the code below?

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
minetest.register_decoration({
   deco_type = "schematic",
   schematic = "small_wooden_home.mts",
   place_on = {"default:desert_sand", "default:dirt_with_grass"},
   fill_ratio = 5.00,
})


I used the latest version of WorldEdit to make the mts file, but the code above triggers an "invalid schematic file" error. The code above does not use "we" files.

Re: Spawn "we" and "mts" files

PostPosted: Tue Jul 08, 2014 14:26
by Sokomine
Ethereal, which seems to work just fine, uses
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
schematic = minetest.get_modpath("ethereal").."/schematics/frosttrees.mts",

So perhaps you'll have to supply the path to your schematic.

There are also at least two versions of schematics out there (v1 and v2). Perhaps your WorldEdit is newer than your Minetest build? Try the latest of everything.

Apart from that, you can also place schematics manually with place_schematic. Worldedit (.we) files can be placed using the code from WorldEdit.

There seems to be a bug in schematics regarding 6d facedir and rotation. Nodes with param2 < 4 do not get rotated correctly.

Re: Spawn "we" and "mts" files

PostPosted: Tue Jul 08, 2014 15:40
by Chinchow
By the way if I remember correctly your fill ratio is going to spawn a lot of houses. I would suggest something like 0.05.

Re: Spawn "we" and "mts" files

PostPosted: Wed Jul 09, 2014 13:48
by DevynCJohnson
Chinchow wrote:By the way if I remember correctly your fill ratio is going to spawn a lot of houses. I would suggest something like 0.05.


I know many houses will be made. Since I am still testing the code, I wanted to very quickly find a house so I know it all works.

I have the latest stable build (0.4.9). My WorldEdit came from the master GitHub repo.

Re: Spawn "we" and "mts" files

PostPosted: Wed Jul 09, 2014 13:55
by DevynCJohnson
I will try using the full path. Thanks.