[0.15.30] Map seed not working

This subforum contains all the issues which we already resolved.
Post Reply
JadeSpider
Burner Inserter
Burner Inserter
Posts: 17
Joined: Mon Sep 26, 2016 7:04 pm
Contact:

[0.15.30] Map seed not working

Post 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.

Rseding91
Factorio Staff
Factorio Staff
Posts: 13171
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [0.15.30] Map seed not working

Post by Rseding91 »

Can you please post the json file you're using and the command line arguments you're using?
If you want to get ahold of me I'm almost always on Discord.

JadeSpider
Burner Inserter
Burner Inserter
Posts: 17
Joined: Mon Sep 26, 2016 7:04 pm
Contact:

Re: [0.15.30] Map seed not working

Post 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.

Rseding91
Factorio Staff
Factorio Staff
Posts: 13171
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [0.15.30] Map seed not working

Post by Rseding91 »

Thanks for the report. I found the problem and it's now fixed for the next version of 0.15.
If you want to get ahold of me I'm almost always on Discord.

JadeSpider
Burner Inserter
Burner Inserter
Posts: 17
Joined: Mon Sep 26, 2016 7:04 pm
Contact:

Re: [0.15.30] Map seed not working

Post by JadeSpider »

That was fast! Thank you.

MrGoodbits
Inserter
Inserter
Posts: 25
Joined: Mon Jun 27, 2016 9:33 pm
Contact:

Re: [0.15.30] Map seed not working

Post 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

Post Reply

Return to “Resolved Problems and Bugs”