Page 1 of 1

[1.1.85] --dump-data command line parameter not working when script-output directory does not exist

Posted: Thu Aug 17, 2023 6:48 pm
by SWeini
Basically, what the subject says. When I tried to dump all the prototype data with --dump-data command line parameter no file was created, and the logfile included this line.

Code: Select all

Error Util.cpp:86: Error when opening C:\Users\...\AppData\Roaming\Factorio\script-output\data-raw-dump.json for writing: No such file or directory
It should be simple to reproduce, just delete your script-output folder (or fresh install) and start Factorio with the dump parameter

Regarding the other command line parameters:
--dump-icon-sprites works as expected (probably because it creates some directories)
--dump-prototype-locale doesn't work with a similar error

Code: Select all

Error Util.cpp:86: Error when opening C:\Users\...\AppData\Roaming\Factorio\script-output\item-locale.json for writing: No such file or directory

Re: [1.1.85] --dump-data command line parameter not working when script-output directory does not exist

Posted: Mon Sep 04, 2023 4:22 pm
by Rseding91
Thanks for the report. It's now fixed for the next release.