{
  "panel": {
    "console": {
      "send": "rcon",
      "regex": "\\w+ \\d+ (\\d+:\\d+:\\d+)\\s+\\d+.\\d+ (\\w+) (.*)",
      "levels": {
        "map": [
          {
            "name": "Info",
            "match": "Info",
            "type": "string",
            "colour": "white"
          },
          {
            "name": "Error",
            "match": "Error",
            "type": "string",
            "colour": "red"
          },
          {
            "name": "Debug",
            "match": "(.*)",
            "type": "regex",
            "colour": "cyan"
          }
        ],
        "replace": false
      },
      "map": {
        "timestamp": 1,
        "level": 2,
        "message": 3
      }
    },
    "connectPort": "",
    "license": {
      "config": "config/token",
      "required": false,
      "wiki": "/books/factorio/page/making-your-server-public-adding-token",
      "description": "Token used to make your Factorio server public"
    }
  },
  "files": [
    {
      "name": "config",
      "path": "factorio/data/server-settings.json",
      "handler": "json",
      "default": true
    },
    {
      "name": "map_settings",
      "path": "factorio/data/map-gen-settings.json",
      "handler": "json"
    }
  ],
  "categories": [
    {
      "title": "General",
      "name": "general"
    },
    {
      "title": "Map Settings",
      "name": "map_settings"
    }
  ],
  "title": "Factorio config",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "title": "Server name",
      "description": "Name of the game as it will appear in the game listing",
      "category": "general",
      "file": "config"
    },
    "description": {
      "type": "string",
      "title": "Server description",
      "description": "Description of the game that will appear in the listing",
      "category": "general",
      "file": "config"
    },
    "max_players": {
      "type": "number",
      "title": "Maximum players",
      "default": 2,
      "category": "general",
      "file": "config"
    },
    "visibility": {
      "type": "object",
      "title": "Server visibility",
      "category": "general",
      "file": "config",
      "properties": {
        "public": {
          "title": "Public",
          "type": "boolean",
          "default": "true"
        },
        "lan": {
          "title": "LAN",
          "type": "boolean",
          "default": "false"
        }
      }
    },
    "username": {
      "type": "string",
      "title": "Username",
      "description": "Your factorio.com username. Required for games with visibility public",
      "default": "",
      "category": "general",
      "file": "config"
    },
    "token": {
      "type": "string",
      "title": "Token",
      "description": "Authentication token. Used instead of your factorio.com password.",
      "default": "",
      "category": "general",
      "file": "config"
    },
    "game_password": {
      "type": "string",
      "title": "Server password",
      "default": "",
      "category": "general",
      "file": "config"
    },
    "verify_user_identity": {
      "type": "boolean",
      "title": "Verify Users",
      "description": "When set to true, the server will only allow clients that have a valid Factorio.com account",
      "default": true,
      "category": "general",
      "file": "config"
    },
    "--rcon-port": {
      "type": "string",
      "title": "RCON Port",
      "description": "Port for RCON connections",
      "default": "25575",
      "category": "general",
      "file": "config"
    },
    "--rcon-password": {
      "type": "string",
      "title": "RCON Password",
      "description": "Password for RCON connections",
      "default": "creeper123",
      "category": "general",
      "file": "config"
    },
    "mapName": {
      "title": "Map Name",
      "description": "The name of your chosen map",
      "type": "string",
      "default": "TehWorld",
      "propertyOrder": 0,
      "category": "map_settings",
      "file": "map_settings"
    },
    "seed": {
      "title": "Seed",
      "description": "Use null for a random seed, number for a specific seed.",
      "type": "number",
      "default": null,
      "propertyOrder": 1,
      "category": "map_settings",
      "file": "map_settings"
    },
    "water": {
      "title": "Water Quantity",
      "description": "Multiplier for water 'coverage' - higher increases the water level.",
      "type": "number",
      "default": 3,
      "enum": [
        0,
        1,
        2,
        3,
        4,
        5
      ],
      "options": {
        "enum_titles": [
          "None",
          "Very Low",
          "Low",
          "Normal",
          "High",
          "Very High"
        ]
      },
      "propertyOrder": 3,
      "category": "map_settings",
      "file": "map_settings"
    },
    "terrain_segmentation": {
      "title": "Terrain Segmentation",
      "type": "number",
      "default": 3,
      "enum": [
        0,
        1,
        2,
        3,
        4,
        5
      ],
      "options": {
        "enum_titles": [
          "None",
          "Very Low",
          "Low",
          "Normal",
          "High",
          "Very High"
        ]
      },
      "propertyOrder": 3,
      "category": "map_settings",
      "file": "map_settings"
    },
    "width": {
      "title": "Map Width",
      "type": "number",
      "default": 0,
      "propertyOrder": 1,
      "category": "map_settings",
      "file": "map_settings"
    },
    "height": {
      "title": "Map Height",
      "type": "number",
      "default": 0,
      "propertyOrder": 2,
      "category": "map_settings",
      "file": "map_settings"
    },
    "starting_area": {
      "title": "Spawn Protection",
      "description": "Multiplier for 'biter free zone radius'.",
      "type": "number",
      "default": 3,
      "enum": [
        0,
        1,
        2,
        3,
        4,
        5
      ],
      "options": {
        "enum_titles": [
          "None",
          "Very Low",
          "Low",
          "Normal",
          "High",
          "Very High"
        ]
      },
      "propertyOrder": 3,
      "category": "map_settings",
      "file": "map_settings"
    },
    "peaceful_mode": {
      "title": "Peaceful mode",
      "type": "boolean",
      "default": false,
      "propertyOrder": 4,
      "category": "map_settings",
      "file": "map_settings"
    },

    
    "autoplace_controls": {
      "type": "object",
      "title": "Map generation",
      "category": "map_settings",
      "file": "map_settings",
      "properties": {
        "copper-ore": {
          "type": "object",
          "title": "Copper generation",
          "category": "map_settings",
          "file": "map_settings",
          "properties": {
            "frequency": {
              "type": "number",
              "default": 3,
              "enum": [
                0,
                1,
                2,
                3,
                4,
                5
              ],
              "options": {
                "enum_titles": [
                  "None",
                  "Very Low",
                  "Low",
                  "Normal",
                  "High",
                  "Very High"
                ]
              }
            },
            "size": {
              "type": "number",
              "default": 3,
              "category": "map_settings",
              "file": "map_settings",
              "enum": [
                0,
                1,
                2,
                3,
                4,
                5
              ],
              "options": {
                "enum_titles": [
                  "None",
                  "Very Low",
                  "Low",
                  "Normal",
                  "High",
                  "Very High"
                ]
              }
            },
            "richness": {
              "type": "number",
              "default": 3,
              "category": "map_settings",
              "file": "map_settings",
              "enum": [
                0,
                1,
                2,
                3,
                4,
                5
              ],
              "options": {
                "enum_titles": [
                  "None",
                  "Very Low",
                  "Low",
                  "Normal",
                  "High",
                  "Very High"
                ]
              }
            }
          },
          "required": [
            "frequency",
            "size",
            "richness"
          ]
        },
        "coal": {
          "type": "object",
          "title": "Coal generation",
          "category": "map_settings",
          "file": "map_settings",
          "properties": {
            "frequency": {
              "type": "number",
              "default": 3,
              "enum": [
                0,
                1,
                2,
                3,
                4,
                5
              ],
              "options": {
                "enum_titles": [
                  "None",
                  "Very Low",
                  "Low",
                  "Normal",
                  "High",
                  "Very High"
                ]
              }
            },
            "size": {
              "type": "number",
              "default": 3,
              "category": "map_settings",
              "file": "map_settings",
              "enum": [
                0,
                1,
                2,
                3,
                4,
                5
              ],
              "options": {
                "enum_titles": [
                  "None",
                  "Very Low",
                  "Low",
                  "Normal",
                  "High",
                  "Very High"
                ]
              }
            },
            "richness": {
              "type": "number",
              "default": 3,
              "category": "map_settings",
              "file": "map_settings",
              "enum": [
                0,
                1,
                2,
                3,
                4,
                5
              ],
              "options": {
                "enum_titles": [
                  "None",
                  "Very Low",
                  "Low",
                  "Normal",
                  "High",
                  "Very High"
                ]
              }
            }
          },
          "required": [
            "frequency",
            "size",
            "richness"
          ]
        },
        "crude-oil": {
          "type": "object",
          "title": "Oil generation",
          "category": "map_settings",
          "file": "map_settings",
          "properties": {
            "frequency": {
              "type": "number",
              "default": 3,
              "enum": [
                0,
                1,
                2,
                3,
                4,
                5
              ],
              "options": {
                "enum_titles": [
                  "None",
                  "Very Low",
                  "Low",
                  "Normal",
                  "High",
                  "Very High"
                ]
              }
            },
            "size": {
              "type": "number",
              "default": 2,
              "category": "map_settings",
              "file": "map_settings",
              "enum": [
                0,
                1,
                2,
                3,
                4,
                5
              ],
              "options": {
                "enum_titles": [
                  "None",
                  "Very Low",
                  "Low",
                  "Normal",
                  "High",
                  "Very High"
                ]
              }
            },
            "richness": {
              "type": "number",
              "default": 3,
              "category": "map_settings",
              "file": "map_settings",
              "enum": [
                0,
                1,
                2,
                3,
                4,
                5
              ],
              "options": {
                "enum_titles": [
                  "None",
                  "Very Low",
                  "Low",
                  "Normal",
                  "High",
                  "Very High"
                ]
              }
            }
          },
          "required": [
            "frequency",
            "size",
            "richness"
          ]
        },
        "enemy-base": {
          "type": "object",
          "title": "Hostile base generation",
          "category": "map_settings",
          "file": "map_settings",
          "properties": {
            "frequency": {
              "type": "number",
              "default": 3,
              "enum": [
                0,
                1,
                2,
                3,
                4,
                5
              ],
              "options": {
                "enum_titles": [
                  "None",
                  "Very Low",
                  "Low",
                  "Normal",
                  "High",
                  "Very High"
                ]
              }
            },
            "size": {
              "type": "number",
              "default": 3,
              "category": "map_settings",
              "file": "map_settings",
              "enum": [
                0,
                1,
                2,
                3,
                4,
                5
              ],
              "options": {
                "enum_titles": [
                  "None",
                  "Very Low",
                  "Low",
                  "Normal",
                  "High",
                  "Very High"
                ]
              }
            },
            "richness": {
              "type": "number",
              "default": 3,
              "category": "map_settings",
              "file": "map_settings",
              "enum": [
                0,
                1,
                2,
                3,
                4,
                5
              ],
              "options": {
                "enum_titles": [
                  "None",
                  "Very Low",
                  "Low",
                  "Normal",
                  "High",
                  "Very High"
                ]
              }
            }
          },
          "required": [
            "frequency",
            "size",
            "richness"
          ]
        },
        "uranium-ore": {
          "type": "object",
          "title": "Uranium generation",
          "category": "map_settings",
          "file": "map_settings",
          "properties": {
            "frequency": {
              "type": "number",
              "default": 3,
              "enum": [
                0,
                1,
                2,
                3,
                4,
                5
              ],
              "options": {
                "enum_titles": [
                  "None",
                  "Very Low",
                  "Low",
                  "Normal",
                  "High",
                  "Very High"
                ]
              }
            },
            "size": {
              "type": "number",
              "default": 3,
              "category": "map_settings",
              "file": "map_settings",
              "enum": [
                0,
                1,
                2,
                3,
                4,
                5
              ],
              "options": {
                "enum_titles": [
                  "None",
                  "Very Low",
                  "Low",
                  "Normal",
                  "High",
                  "Very High"
                ]
              }
            },
            "richness": {
              "type": "number",
              "default": 3,
              "category": "map_settings",
              "file": "map_settings",
              "enum": [
                0,
                1,
                2,
                3,
                4,
                5
              ],
              "options": {
                "enum_titles": [
                  "None",
                  "Very Low",
                  "Low",
                  "Normal",
                  "High",
                  "Very High"
                ]
              }
            }
          },
          "required": [
            "frequency",
            "size",
            "richness"
          ]
        },
        "iron-ore": {
          "type": "object",
          "title": "Iron generation",
          "category": "map_settings",
          "file": "map_settings",
          "properties": {
            "frequency": {
              "type": "number",
              "default": 3,
              "enum": [
                0,
                1,
                2,
                3,
                4,
                5
              ],
              "options": {
                "enum_titles": [
                  "None",
                  "Very Low",
                  "Low",
                  "Normal",
                  "High",
                  "Very High"
                ]
              }
            },
            "size": {
              "type": "number",
              "default": 3,
              "category": "map_settings",
              "file": "map_settings",
              "enum": [
                0,
                1,
                2,
                3,
                4,
                5
              ],
              "options": {
                "enum_titles": [
                  "None",
                  "Very Low",
                  "Low",
                  "Normal",
                  "High",
                  "Very High"
                ]
              }
            },
            "richness": {
              "type": "number",
              "default": 3,
              "category": "map_settings",
              "file": "map_settings",
              "enum": [
                0,
                1,
                2,
                3,
                4,
                5
              ],
              "options": {
                "enum_titles": [
                  "None",
                  "Very Low",
                  "Low",
                  "Normal",
                  "High",
                  "Very High"
                ]
              }
            }
          },
          "required": [
            "frequency",
            "size",
            "richness"
          ]
        },
        "stone": {
          "type": "object",
          "title": "Stone generation",
          "category": "map_settings",
          "file": "map_settings",
          "properties": {
            "frequency": {
              "type": "number",
              "default": 3,
              "enum": [
                0,
                1,
                2,
                3,
                4,
                5
              ],
              "options": {
                "enum_titles": [
                  "None",
                  "Very Low",
                  "Low",
                  "Normal",
                  "High",
                  "Very High"
                ]
              }
            },
            "size": {
              "type": "number",
              "default": 3,
              "category": "map_settings",
              "file": "map_settings",
              "enum": [
                0,
                1,
                2,
                3,
                4,
                5
              ],
              "options": {
                "enum_titles": [
                  "None",
                  "Very Low",
                  "Low",
                  "Normal",
                  "High",
                  "Very High"
                ]
              }
            },
            "richness": {
              "type": "number",
              "default": 3,
              "category": "map_settings",
              "file": "map_settings",
              "enum": [
                0,
                1,
                2,
                3,
                4,
                5
              ],
              "options": {
                "enum_titles": [
                  "None",
                  "Very Low",
                  "Low",
                  "Normal",
                  "High",
                  "Very High"
                ]
              }
            }
          },
          "required": [
            "frequency",
            "size",
            "richness"
          ]
        }
      }
    }
  }
}
