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.
[0.15.30] Map seed not working
-
- Burner Inserter
- Posts: 17
- Joined: Mon Sep 26, 2016 7:04 pm
- Contact:
Re: [0.15.30] Map seed not working
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.
-
- Burner Inserter
- Posts: 17
- Joined: Mon Sep 26, 2016 7:04 pm
- Contact:
Re: [0.15.30] Map seed not working
Command line
map-gen-settings.json
Other things in the file seem to be used when generating the map, but not the seed.
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
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
}
Re: [0.15.30] Map seed not working
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.
-
- Burner Inserter
- Posts: 17
- Joined: Mon Sep 26, 2016 7:04 pm
- Contact:
Re: [0.15.30] Map seed not working
That was fast! Thank you.
-
- Inserter
- Posts: 25
- Joined: Mon Jun 27, 2016 9:33 pm
- Contact:
Re: [0.15.30] Map seed not working
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
(Testing on Linux dedicated host)
MrGoodbits