Factorio Prototype DocsVersion 2.0.26

MapGenPresets 'map-gen-presets' Example code

The available map gen presets.

Prototype limited to 1 total instances.

Properties

type :: "map-gen-presets"
name :: string

Name of the map gen presets. [...]

Name of the map gen presets. [...]

Custom properties :: stringMapGenPreset

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  :: stringMapGenPreset

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
        }
      }
    }
  }
}

Prototypes

Types

Defines