[2.0.72] seed not used from map-gen-settings.json

Gweneph
Long Handed Inserter
Long Handed Inserter
Posts: 79
Joined: Thu Nov 14, 2019 11:51 pm
Contact:

[2.0.72] seed not used from map-gen-settings.json

Post by Gweneph »

Steps to reproduce:
  1. Edit the map-get-settings-example.json file to set the seed to a uint32
  2. Create two maps with factorio --map-gen-settings map-gen-settings.example.json --create test(1|2) (adapt to your desired folder stucture)
  3. Compare the maps
  4. (optional) run /seed to see the seeds
Expected result:

Two identical maps (with the seed from the json file apearing when running /seed).

Actual result:
Two random maps with random seeds.

Related: 129006
Attachments
factorio-previous.log
(2.32 KiB) Downloaded 15 times
factorio-current.log
(2.32 KiB) Downloaded 15 times
Rseding91
Factorio Staff
Factorio Staff
Posts: 16451
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [2.0.72] seed not used from map-gen-settings.json

Post by Rseding91 »

Thanks for the report however I cannot reproduce any such issue. When I test: it makes the save and uses the exact seed provided in the example.json.

Are you sure you're loading the correct save(s)? The log shows it's putting them in C:\Users\gweneph.doering\Downloads\Factorio_2.0.72\bin\x64\test1 and C:\Users\gweneph.doering\Downloads\Factorio_2.0.72\bin\x64\test2
If you want to get ahold of me I'm almost always on Discord.
Gweneph
Long Handed Inserter
Long Handed Inserter
Posts: 79
Joined: Thu Nov 14, 2019 11:51 pm
Contact:

Re: [2.0.72] seed not used from map-gen-settings.json

Post by Gweneph »

Here are the saves it generated and the .json file I used
Attachments
map-gen-settings.example.json
(2.34 KiB) Downloaded 17 times
test2.zip
(697.55 KiB) Downloaded 9 times
test1.zip
(705.06 KiB) Downloaded 8 times
Gweneph
Long Handed Inserter
Long Handed Inserter
Posts: 79
Joined: Thu Nov 14, 2019 11:51 pm
Contact:

Re: [2.0.72] seed not used from map-gen-settings.json

Post by Gweneph »

Just tested on Linux steam version with the same json file, with the same result. Am I just doing something wrong in the json file?
Rseding91
Factorio Staff
Factorio Staff
Posts: 16451
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [2.0.72] seed not used from map-gen-settings.json

Post by Rseding91 »

So.... seed "1" is treated as "default" internally which signals to use a random seed.

Using literally any other seed value will get you the result you're looking for.

I've changed it for 2.1 so it will detect if the player explicitly put "1" in the field and not treat it as generate random seed.
If you want to get ahold of me I'm almost always on Discord.
Post Reply

Return to “Fixed for 2.1”