Page 1 of 1

[1.1.2] cli parameters dont throw errors when they should

Posted: Mon Nov 30, 2020 11:51 am
by proicop
Hello

when running:
./factorio --generate-map-preview --map-gen-settings ./speed-gen.json --map-settings ./speed-settings.json --map-gen-seed 1063559207
factorio instead of throwing an error because no image file name was provided, generates image named "--map-gen-settings" (the parameter after "--generate-map-preview")

(used headless linux)

Re: [1.1.2] cli parameters dont throw errors when they should

Posted: Mon Nov 30, 2020 11:52 am
by posila
That's not a bug, you literally passed it image name --map-gen-settings

Re: [1.1.2] cli parameters dont throw errors when they should

Posted: Mon Nov 30, 2020 12:09 pm
by proicop
Shouldn't the game then throw error since "./speed-gen.json" doesn't make sense if "--map-gen-settings" is value for "--generate-map-preview"?