[0.14.7] [Oxyd] Inconsistent cmd parameters --load-game/--benchmark
Posted: Mon Sep 19, 2016 7:16 pm
Apparently --load-game requires a path to a safe file including the zip extension (e.g.
results in a GUI notice "Opening zip TEST failed: No such file or directory". Or:
In conjunction with --until-tick.
Correct is
On the other hand:
results in:
The correct form being
That is midly annoying.
Suggested fix: Unify opening of save games using
1) Try to open the parameter as file open({param})
2) Try to open({write-data}/saves/{param}.zip)
3) Fail
Code: Select all
./factorio --load-game TEST
Code: Select all
Error Util.cpp:57: Opening zip TEST_BASELINE failed: No such file or directory
Correct is
Code: Select all
./factorio --load-game path/to/saves/TEST.zip
Code: Select all
./factorio --benchmark path/to/saves/TEST.zip
Code: Select all
Error Util.cpp:57: Opening zip /path/to/saves/path/to/saves/TEST.zip.zip failed: No such file or directory
Code: Select all
./factorio --benchmark TEST
Suggested fix: Unify opening of save games using
1) Try to open the parameter as file open({param})
2) Try to open({write-data}/saves/{param}.zip)
3) Fail