Spawn "we" and "mts" files

User avatar
DevynCJohnson
Member
 
Posts: 37
Joined: Sat Jun 28, 2014 00:42
GitHub: DevynCJohnson
In-game: Collier

Spawn "we" and "mts" files

by DevynCJohnson » Tue Jul 08, 2014 14:19

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.
 

Sokomine
Member
 
Posts: 2980
Joined: Sun Sep 09, 2012 17:31

Re: Spawn "we" and "mts" files

by Sokomine » Tue Jul 08, 2014 14:26

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.
A list of my mods can be found here.
 

User avatar
Chinchow
Member
 
Posts: 683
Joined: Tue Sep 18, 2012 21:37

Re: Spawn "we" and "mts" files

by Chinchow » Tue Jul 08, 2014 15:40

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.
 

User avatar
DevynCJohnson
Member
 
Posts: 37
Joined: Sat Jun 28, 2014 00:42
GitHub: DevynCJohnson
In-game: Collier

Re: Spawn "we" and "mts" files

by DevynCJohnson » Wed Jul 09, 2014 13:48

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.
 

User avatar
DevynCJohnson
Member
 
Posts: 37
Joined: Sat Jun 28, 2014 00:42
GitHub: DevynCJohnson
In-game: Collier

Re: Spawn "we" and "mts" files

by DevynCJohnson » Wed Jul 09, 2014 13:55

I will try using the full path. Thanks.
 


Return to WIP Mods

Who is online

Users browsing this forum: No registered users and 7 guests

cron