[0.15.31] Linux headless server random map generation
Posted: Wed Jul 26, 2017 12:12 am
I am running Ubuntu 16.04 Linux headless and have found some issues generating maps. I get the same map under several condition including when "seed": null is set as per the example mag-gen-settings.json
"_comment_seed": "Use null for a random seed, number for a specific seed.",
"seed": null
Command line I used to generate worlds:
./bin/x64/factorio --map-gen-settings map-gen-settings.json --create saves/world.zip
What I have found (below is the seed line from the .json file, and the results on server from the /seed command:
"seed": null
/seed
1
"seed": ""
/seed
1
"seed": 1
/seed
1
^ This is actually correct
by removing the seed line completely
/seed
1
"seed":
0.000 Error Util.cpp:62: Unexpected character at map-gen-settings.json:23
^ Error from syntax incorrect
"seed": "123"
/seed
1
"seed": 123
/seed
4040535837
^ seed didn't match what I requested
ran again
"seed": 123
/seed
3000332189
^ a different seed was used
Summary:
Anytime I generate a map with null or a quoted number, I get a map with seed = 1.
Anytime I generate a map with a specific seed number, I get a random map.
I hope my notes are clear and this is helpful.
Thank you,
Mr Goodbits
"_comment_seed": "Use null for a random seed, number for a specific seed.",
"seed": null
Command line I used to generate worlds:
./bin/x64/factorio --map-gen-settings map-gen-settings.json --create saves/world.zip
What I have found (below is the seed line from the .json file, and the results on server from the /seed command:
"seed": null
/seed
1
"seed": ""
/seed
1
"seed": 1
/seed
1
^ This is actually correct
by removing the seed line completely
/seed
1
"seed":
0.000 Error Util.cpp:62: Unexpected character at map-gen-settings.json:23
^ Error from syntax incorrect
"seed": "123"
/seed
1
"seed": 123
/seed
4040535837
^ seed didn't match what I requested
ran again
"seed": 123
/seed
3000332189
^ a different seed was used
Summary:
Anytime I generate a map with null or a quoted number, I get a map with seed = 1.
Anytime I generate a map with a specific seed number, I get a random map.
I hope my notes are clear and this is helpful.
Thank you,
Mr Goodbits