Page 1 of 1

specify island size (or map type settings in general)

Posted: Sun Mar 10, 2019 11:01 am
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
        }
    }
}

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

Posted: Mon Mar 11, 2019 7:15 am
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