Page 1 of 1

[0.15.30] Map seed not working

Posted: Sun Jul 23, 2017 2:13 am
by JadeSpider
Generating a map from the command line using a map-gen-settings.json file is ignoring the seed specified in the file. Generating a map over and over with the same file produces a different map each time.

This was working the last time I generated maps, which was some time around 0.15.10.

I can work around the issue by passing the seed on the command line directly. The help text claims that the command line seed will override the file, which implies that the file is supposed to still work if the command line does not override it.

Re: [0.15.30] Map seed not working

Posted: Sun Jul 23, 2017 2:37 am
by Rseding91
Can you please post the json file you're using and the command line arguments you're using?

Re: [0.15.30] Map seed not working

Posted: Sun Jul 23, 2017 4:33 am
by JadeSpider
Command line

Code: Select all

bin\x64\factorio.exe --map-gen-settings config/map-gen-settings.json --map-settings config/map-settings.json --create saves/Test.zip
map-gen-settings.json

Code: Select all

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

  "terrain_segmentation": "low",
  "water": "normal",
  "width": 0,
  "height": 0,
  "starting_area": "very-high",
  "peaceful_mode": false,
  "autoplace_controls":
  {
    "coal": {"frequency": "very-low", "size": "very-high", "richness": "very-high"},
    "copper-ore": {"frequency": "very-low", "size": "very-high", "richness": "very-high"},
    "crude-oil": {"frequency": "very-low", "size": "very-high", "richness": "very-high"},
    "enemy-base": {"frequency": "low", "size": "normal", "richness": "normal"},
    "iron-ore": {"frequency": "very-low", "size": "very-high", "richness": "very-high"},
    "stone": {"frequency": "very-low", "size": "very-high", "richness": "very-high"},
    "uranium-ore": {"frequency": "very-low", "size": "very-high", "richness": "very-high"}
  },

  "_comment_seed": "Use null for a random seed, number for a specific seed.",
  "seed": 5154
}
Other things in the file seem to be used when generating the map, but not the seed.

Re: [0.15.30] Map seed not working

Posted: Sun Jul 23, 2017 11:56 am
by Rseding91
Thanks for the report. I found the problem and it's now fixed for the next version of 0.15.

Re: [0.15.30] Map seed not working

Posted: Sun Jul 23, 2017 1:12 pm
by JadeSpider
That was fast! Thank you.

Re: [0.15.30] Map seed not working

Posted: Tue Jul 25, 2017 6:35 pm
by MrGoodbits
Now it seems like "null" in the map-gen-setting.json file isn't random... always the same map.

(Testing on Linux dedicated host)

MrGoodbits