specify island size (or map type settings in general)

Things that already exist in the current mod API
CaveGrinder
Inserter
Inserter
Posts: 35
Joined: Fri Aug 24, 2018 7:42 pm
Contact:

specify island size (or map type settings in general)

Post by CaveGrinder »

Hi,

i really love what the "island" map type is generating! So i was playing around with it a bit.
Unless i overlooked, i don't think that it is currently possible to specify the island size property when creating a surface with create_surface.
since adding island_size directly to the MapGenSettings would be messy since it is not used in general, the proposal is to specify it as such:

Code: Select all

game.create_surface("surface_name", {
    map_type_settings = { --optional, if missing use defaults
        name = "island" --which map type to use on this surface
        settings = { --each map type has a different settings element
            island_size = 0.33 --or however it is modelled
        }
    }
}
CaveGrinder
Inserter
Inserter
Posts: 35
Joined: Fri Aug 24, 2018 7:42 pm
Contact:

Re: specify island size (or map type settings in general)

Post by CaveGrinder »

as it turns out, this is already possible by modifying terrain_segmentation which is taken as island size :) so this request is obsolete
Post Reply

Return to “Already exists”