Factorio Prototype DocsVersion 1.1.107

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 =
      {
        recipe_difficulty = defines.difficulty_settings.recipe_difficulty.expensive,
        technology_difficulty = defines.difficulty_settings.technology_difficulty.expensive,
        technology_price_multiplier = 4
      }
    }
  },
  ["island"] =
  {
    order = "g",
    basic_settings =
    {
      property_expression_names =
      {
        elevation = "0_17-island",
      },
      autoplace_controls = {},
      terrain_segmentation = 1,
    }
  }
}

Prototypes

Types