Problem - I am trying to generate a map with peaceful mode activated by editing the map-gen-settings.json file, but the map is not generated with the changes active.
I am running a headless server on a t2.micro AWS instance.
I downloaded the server from the headless experimental release here https://www.factorio.com/get-download/l ... ss/linux64
It's been extracted, and I am using winscp to edit some of the settings.json files.
I am trying to create a save and apply some --map-gen-settings in the map-gen-settings.json file. Specifically, I am trying to create a map with peaceful mode ON.
Here is the contents of my map-gen-settings.json file (named "map-gen-settings.seventeen.json" for reference.)
Code: Select all
{
"_comment": "Sizes can be specified as none, very-low, low, normal, high, very-high",
"terrain_segmentation": "normal",
"water": "normal",
"width": 0,
"height": 0,
"starting_area": "normal",
"peaceful_mode": true,
"autoplace_controls":
{
"coal": {"frequency": "normal", "size": "normal", "richness": "normal"},
"stone": {"frequency": "normal", "size": "normal", "richness": "normal"},
"copper-ore": {"frequency": "normal", "size": "normal","richness": "normal"},
"iron-ore": {"frequency": "normal", "size": "normal", "richness": "normal"},
"uranium-ore": {"frequency": "normal", "size": "normal", "richness": "normal"},
"crude-oil": {"frequency": "normal", "size": "normal", "richness": "normal"},
"trees": {"frequency": "normal", "size": "normal", "richness": "normal"},
"enemy-base": {"frequency": "normal", "size": "normal", "richness": "normal"}
},
"cliff_settings":
{
"name": "cliff",
"cliff_elevation_0": 10,
"cliff_elevation_interval": 10
},
"_comment_seed": "Use null for a random seed, number for a specific seed.",
"seed": null
}
I yield the following result:./bin/x64/factorio --create saves/tbagame.zip --map-gen-settings map-gen-settings.seventeen.json
Code: Select all
[ec2-user@ip-172-31-41-41 factorio]$ ./bin/x64/factorio --create saves/tbagame.zip --map-gen-settings map-gen-settings.seventeen.json
0.000 2019-03-02 20:45:55; Factorio 0.17.4 (build 43174, linux64, headless)
0.000 Operating system: Linux
0.000 Program arguments: "./bin/x64/factorio" "--create" "saves/tbagame.zip" "--map-gen-settings" "map-gen-settings.seventeen.json"
0.000 Read data path: /home/ec2-user/factorio/data
0.000 Write data path: /home/ec2-user/factorio [6491/8179MB]
0.000 Binaries path: /home/ec2-user/factorio/bin
0.006 System info: [CPU: Intel(R) Xeon(R) CPU E5-2676 v3 @ 2.40GHz, 1 core, RAM: 985 MB]
0.006 Environment: DISPLAY=<unset>, WAYLAND_DISPLAY=<unset>
0.006 Running in headless mode
0.009 Loading mod core 0.0.0 (data.lua)
0.052 Loading mod base 0.17.4 (data.lua)
0.246 Loading mod base 0.17.4 (data-updates.lua)
0.333 Checksum for core: 3928040144
0.333 Checksum of base: 60305742
0.858 Info PlayerData.cpp:69: Local player-data.json unavailable
0.858 Info PlayerData.cpp:74: Cloud player-data.json unavailable
0.859 Custom inputs active: 0
0.861 Factorio initialised
0.862 Info GlobalContext.cpp:678: Waiting for child processes to exit:
0.881 Goodbye
0.000 Error Util.cpp:83: filesystem error: file_size(p): unknown error: No such file or directory [map-gen-settings.seventeen.json]
The file does exist on the server here:
I can't seem to find any info online what can help me avoid or fix this error. I'm hoping someone here might be able to help./home/ec2-user/factorio/data
Just some additional info - I can run the following command and the server starts up just fine with all the settings in the server-settings.seventeen.json file active:
Please let me know if have any ideas, or if you need any additional info../bin/x64/factorio --start-server-load-latest --server-settings ./data/server-settings.seventeen.json
Thanks!