Factorio.com|Forums|Wiki|Mod Portal|API Docs

# Factorio Prototype Docs Version 2.0.77

# MapGenPresets - Prototype Docs

## MapGenPresets 'map-gen-presets' Example code

The available map gen presets.

Prototype limited to 1 total instances.

## Properties

- default
- sorted

type | :: `"map-gen-presets"` |
name | :: string | Name of the map gen presets. [...]
Name of the map gen presets. [...]

Custom properties | :: string → MapGenPreset | Presets are defined as uniquely named MapGenPreset properties of the prototype. [...]
Presets are defined as uniquely named MapGenPreset properties of the prototype. [...]

name | :: string | Name of the map gen presets. [...]
Name of the map gen presets. [...]
type | :: `"map-gen-presets"` |

Custom properties | :: string → MapGenPreset | Presets are defined as uniquely named MapGenPreset properties of the prototype. [...]
Presets are defined as uniquely named MapGenPreset properties of the prototype. [...]

## Properties

### type :: `"map-gen-presets"`

### name :: string

Name of the map gen presets. Base game uses "default".

### Custom properties :: string → MapGenPreset

Presets are defined as uniquely named MapGenPreset properties of the prototype. Zero or more named presets can be specified within the prototype.

## Example

    {
      type = "map-gen-presets",
      name = "default",
      ["marathon"] =
      {
        order = "c",
        basic_settings =
        {
          property_expression_names = {},
        },
        advanced_settings =
        {
          difficulty_settings =
          {
            technology_price_multiplier = 4
          }
        }
      },
      ["island"] =
      {
        order = "h",
        basic_settings =
        {
          property_expression_names =
          {
            elevation = "elevation_island",
            moisture = "moisture_basic",
            aux = "aux_basic",
            cliffiness = "cliffiness_basic",
            cliff_elevation = "cliff_elevation_from_elevation",
            trees_forest_path_cutout = 1
          },
          cliff_settings =
          {
            cliff_smoothing = 1
          },
          autoplace_controls =
          {
            ["trees"] =
            {
              frequency = 1,
              size = 0.5
            }
          }
        }
      }
    }