Enable/Disable Autoplace For Surfaces
Posted: Sun Aug 21, 2016 5:42 pm
Currently all surfaces autogenerate similar "worlds". It would be nice if one could disable certain things on different surfaces. AFAIK tiles, trees, resources, biters(+spawner and worms) and doodads are autoplaced.
The specifications for a surface must be defined before the surface is generates, so I'd suggest an additional table as optional argument for the create_surface() function. I'd imagine something like this:
So if I want to create a peaceful forest surface I'd disable desert-y tiles, enemies, dead trees, maybe even change resources.
I think the ability to change autoplace settings for different surfaces would be too much to ask for, but this should do it.
The specifications for a surface must be defined before the surface is generates, so I'd suggest an additional table as optional argument for the create_surface() function. I'd imagine something like this:
Code: Select all
game.create_surface("tatooine",game.surfaces["nauvis"].map_gen_settings,
{
{
to_set=game.tile_prototype["grass"]
enable=false
},
{
to_set=game.tile_prototype["grass-medium"]
enable=false
},
{
to_set=game.entity_prototype["tree-01"]
enable=false
},
{
to_set=game.entity_prototype["tree-02"]
enable=false
}
}
)
I think the ability to change autoplace settings for different surfaces would be too much to ask for, but this should do it.