Page 1 of 1

map-gen-settings.json

Posted: Sun Feb 26, 2017 10:58 am
by Zplinter
I got myself a dedicated server, but messing around in the map-gen-settings.json, i have no clue what i can do here. or how to use it.

Code: Select all

{
  "_comment": "Sizes can be specified as none, very-low, low, normal, high, very-high",

  "terrain_segmentation": "normal",
  "water": "normal",
  "width": 0,
  "height": 0,
  "starting_area": "normal",
  "peaceful_mode": false,
  "autoplace_controls":
  {
    "coal": {"frequency": "normal", "size": "normal", "richness": "normal"},
    "copper-ore": {"frequency": "normal", "size": "normal", "richness": "normal"},
    "crude-oil": {"frequency": "normal", "size": "normal", "richness": "normal"},
    "enemy-base": {"frequency": "normal", "size": "normal", "richness": "normal"},
    "iron-ore": {"frequency": "normal", "size": "normal", "richness": "normal"},
    "stone": {"frequency": "normal", "size": "normal", "richness": "normal"}
  }
}
So where can i put my string? We need more info on this on wiki or somewhere,i cant find a link about it.

Thanks

Re: map-gen-settings.json

Posted: Mon Feb 27, 2017 4:18 pm
by SyncViews
You following these instructions? https://wiki.factorio.com/Multiplayer#D ... ess_server

Its one of the command line parameters, relative to the directory you are running from.

Code: Select all

factorio --create saves/my-save.zip --map-gen-settings path-to-file-with-desired-map-generation-settings.json
Its the same for the server settings file (use --server-settings).

Re: map-gen-settings.json

Posted: Sat Dec 14, 2019 7:05 pm
by gacekssj4
It's an old topic, i know. But first one in google when looking for map gen settings.

I thought it not everyone like console commands etc. So alternative solution to generate a map is to create game in-game (you can use preview and sliders in game )
Then save map and supply it when starting a dedicated server. If you do it not frequently it's faster than learning json settings. Hope it helps!

Re: map-gen-settings.json

Posted: Wed Oct 23, 2024 3:08 pm
by 0elek
With 2.0 a new helpers class have been introduced to the in-game /c

the command now looks like this:

Code: Select all

 /c helpers.write_file("export-map-gen-settings.json", helpers.table_to_json(helpers.parse_map_exchange_string(">>>eNp1VEFrE0EUnmkMrW2jQYIglDaHXiNYPXiQ7CiIiOhfWCebSRzc7KSzM5EqaA69CIoXPejFXq3QmwdvAUUUFIriwVvViweViKIXIc7sZDazaRx4L2+/78333pudzRQAYFoZWCjiVUlD5gdc1onPaAhA17M2HeAwoIK42J6AYZUEkAEAmg1Yu014hXHyeHPT06bhvYliRSkaZJhMItJaq9RwnBEtNELJOI2I3yGRyDIybDKO/SCkjYbL7LcMjUMc1WOXm2uGpDZhT9HgSRP+eBPzhmwrNTFJLRYsIhPwK1gQ7uIzlLNo/DwKIRWXqGz5NT1npm6EZYfGu7vNcxZcHnaCDBIHHLfdnIOxwFzQqOljTrDfYjQWkmf080njbi+lWIYNyWng44DW/SZZi7MT5AUnJHMG80JGzViQyGdZ9TnJcaTmqmTwnlfoyDDAkVRzJRfGMLqDAynTYTqgcStT2zlPMzWAq59uXu+uLwJtgxugPBhoU9GOGkcbgF2zAyrQXeWTyk6l+hDCa6WtMx+v3vWgSTiMhkF/iPRqFjlrgwvov9SyDY45OkeT9dMJTFGhSgyzZtAoMOS6JiG8/e3Jxp8X21X499GPt+drFz145HTpe39lq6pI/c3CqdQ9uK/XUzsKsJo73pD64ME3r/X66sG83lHSDh1XrncuB2Bxn4o2bilXXgC2taqVKSHYSNZvO8lnG7zzxudQB3FCiy9q91K7pGDaGTQhuoMgWrLsoVGK2r8C3B7qowlf2bLPnPpjjex+Ee4cY8gymvAaZnXBeuq+5NJu1HluT9sn9BDBnA501i+FmSfzl2ikzG8RJcedS+9i38veNB1okXvvl57/A2diQDQ=<<<")))