[0.13][Oxyd] headless --create requires path
Posted: Mon Jun 27, 2016 7:51 pm
In the headless server, the --create parameter now requires a path as part of the parameter, instead of assuming current working directory (when no path is included). This problem seems limited to the --create command, as "--start-server test.zip" uses the CWD just fine.
With a path specified (such as ./ - which puts it into the CWD).
Without a path specified, you get an error:
With a path specified (such as ./ - which puts it into the CWD).
Code: Select all
kovus@prefect ~/factorio/factorio > bin/x64/factorio --create ./test.zip
0.000 2016-06-27 14:36:32; Factorio 0.13.0 (Build 22782, linux64, headless)
0.060 Operating system: Linux (CentOS 7.1.1503)
0.060 Program arguments: "bin/x64/factorio" "--create" "./test.zip"
0.060 Read data path: /usr/home/kovus/factorio/factorio/data
0.060 Write data path: /usr/home/kovus/factorio/factorio
0.060 Binaries path: /usr/home/kovus/factorio/factorio/bin
0.076 Running in headless mode
0.080 Loading mod core 0.0.0 (data.lua)
0.085 Loading mod base 0.13.0 (data.lua)
0.226 Checksum for core: 1399339455
0.226 Checksum for mod base: 2039900801
0.686 Custom inputs active: 0
0.687 Factorio initialised
0.687 Info Main.cpp:557: Creating new map ./test.zip
6.869 Info Scenario.cpp:129: Map version 0.13.0-93
6.951 Checksum for script /usr/home/kovus/factorio/factorio/temp/currently-playing/control.lua: 900459546
Done.
Code: Select all
kovus@prefect ~/factorio/factorio > bin/x64/factorio --create test.zip
0.000 2016-06-27 14:36:19; Factorio 0.13.0 (Build 22782, linux64, headless)
0.061 Operating system: Linux (CentOS 7.1.1503)
0.061 Program arguments: "bin/x64/factorio" "--create" "test.zip"
0.061 Read data path: /usr/home/kovus/factorio/factorio/data
0.061 Write data path: /usr/home/kovus/factorio/factorio
0.061 Binaries path: /usr/home/kovus/factorio/factorio/bin
0.078 Running in headless mode
0.081 Loading mod core 0.0.0 (data.lua)
0.087 Loading mod base 0.13.0 (data.lua)
0.229 Checksum for core: 1399339455
0.229 Checksum for mod base: 2039900801
0.692 Custom inputs active: 0
0.693 Factorio initialised
0.693 Info Main.cpp:557: Creating new map test.zip
6.874 Info Scenario.cpp:129: Map version 0.13.0-93
6.956 Checksum for script /usr/home/kovus/factorio/factorio/temp/currently-playing/control.lua: 900459546
6.956 Error Util.cpp:57: boost::filesystem::create_directory: No such file or directory