Page 1 of 1

[15.37 Headless Server] Map gen wont add new ore if not conf

Posted: Wed Oct 18, 2017 12:02 am
by Deadmeatgames
I have docker factorio server running on 15.37 i ran into a issue where new ore from yuoki and darkstar utilities would not spawn using RSO or the default game generator.
The mod pack i have does spawn the ores corectly on my desktop but fails to do so on my server.
I figured out that i have to add the config lines for the ore into the map-gen-setting.json before they would spawn.

https://drive.google.com/file/d/0Bx5nh9 ... sp=sharing a zip of the server files and i use

Code: Select all

dtandersen/factorio:latest
as the docker image

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": false,
"autoplace_controls":
{
"coal": {"frequency": "normal", "size": "normal", "richness": "normal"},
"copper-ore": {"frequency": "normal", "size": "normal", "richness": "normal"},
"crude-oil": {"frequency": "normal", "size": "normal", "richness": "normal"},
"enemy-base": {"frequency": "normal", "size": "normal", "richness": "normal"},
"iron-ore": {"frequency": "normal", "size": "normal", "richness": "normal"},
"stone": {"frequency": "normal", "size": "normal", "richness": "normal"},
"uranium-ore": {"frequency": "normal", "size": "normal", "richness": "normal"},
# Ores that had to manually added
"gold-ore": {"frequency": "normal", "size": "normal", "richness": "normal"},
"lead-ore": {"frequency": "normal", "size": "normal", "richness": "normal"},
"y-res1": {"frequency": "normal", "size": "normal", "richness": "normal"},
"y-res2": {"frequency": "normal", "size": "normal", "richness": "normal"}
},

"_comment_seed": "Use null for a random seed, number for a specific seed.",
"seed": null
}

Re: [15.37 Headless Server] Map gen wont add new ore if not conf

Posted: Wed Oct 18, 2017 1:40 am
by Rseding91
Thanks for the report. That's working as intended: if you don't include an ore in the map gen settings it's not generated.

Re: [15.37 Headless Server] Map gen wont add new ore if not conf

Posted: Wed Oct 18, 2017 6:52 am
by orzelek
This seems very counterintuitive.
Desktop version does know what ores are there and sets them up with default values.
And on headless after every mod change user would need to validate that there are no new ores added by looking through mods and then go and revise the map gen settings.
This kind of dicrepancy between two working modes of game leads to user confusion.

Re: [15.37 Headless Server] Map gen wont add new ore if not conf

Posted: Wed Oct 18, 2017 7:15 am
by Deadmeatgames
I couldnt find any documentation anywhere about that. i would just expect the server to just pick defaults and and add them to the config on first run.

Re: [15.37 Headless Server] Map gen wont add new ore if not conf

Posted: Wed Oct 18, 2017 3:49 pm
by Rseding91
The desktop and headless are the same code. The headless just doesn't need graphics or audio to run. You get the same results on all game binaries.

Anyway, as I said: that's working as intended. In 0.15 it's the only way to say "don't generate other ores". In 0.16 the system has changed slightly so there are some additional properties to determine how missing ores are treated and additional controls to let you specify how any autoplaceable entity is generated - not just the ores that show up on the generate map GUI.