[0.13][Oxyd] headless --create requires path

This subforum contains all the issues which we already resolved.
Kovus
Inserter
Inserter
Posts: 23
Joined: Sat Feb 27, 2016 5:25 pm
Contact:

[0.13][Oxyd] headless --create requires path

Post by Kovus »

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).

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.
Without a path specified, you get an error:

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
Unic
Inserter
Inserter
Posts: 32
Joined: Sun Jul 05, 2015 10:39 am
Contact:

Re: [0.13.0] --create giving No such file or directory

Post by Unic »

Fixed by entering the full path to the new savegame.
patvdleer
Burner Inserter
Burner Inserter
Posts: 11
Joined: Mon Feb 22, 2016 1:46 pm
Contact:

Re: [0.13.0] --create giving No such file or directory

Post by patvdleer »

Can confirm but the full path isn't required, saves/ is enough

Code: Select all

factorio@fe3:~/factorio$ ./bin/x64/factorio --map-gen-settings data/map-gen-settings.json --create 0x43
   0.001 2016-06-27 22:17:50; Factorio 0.13.0 (Build 22782, linux64, headless)
   0.058 Operating system: Linux (Ubuntu 14.04)
   0.058 Program arguments: "./bin/x64/factorio" "--map-gen-settings" "data/map-gen-settings.json" "--create" "0x43" 
   0.058 Read data path: /home/factorio/factorio_headless_x64_0.13.0/data
   0.058 Write data path: /home/factorio/factorio_headless_x64_0.13.0
   0.058 Binaries path: /home/factorio/factorio_headless_x64_0.13.0/bin
   0.067 Running in headless mode
   0.069 Loading mod core 0.0.0 (data.lua)
   0.072 Loading mod base 0.13.0 (data.lua)
   0.157 Checksum for core: 1399339455
   0.157 Checksum for mod base: 2039900801
   0.467 Custom inputs active: 0
   0.467 Factorio initialised
   0.468 Info Main.cpp:557: Creating new map 0x43
   5.533 Info Scenario.cpp:129: Map version 0.13.0-93
   5.617 Checksum for script /home/factorio/factorio_headless_x64_0.13.0/temp/currently-playing/control.lua: 900459546
   5.617 Error Util.cpp:57: boost::filesystem::create_directory: No such file or directory

Code: Select all

factorio@fe3:~/factorio$ ./bin/x64/factorio --map-gen-settings data/map-gen-settings.json --create saves/0x43
   0.000 2016-06-27 22:18:58; Factorio 0.13.0 (Build 22782, linux64, headless)
   0.074 Operating system: Linux (Ubuntu 14.04)
   0.074 Program arguments: "./bin/x64/factorio" "--map-gen-settings" "data/map-gen-settings.json" "--create" "saves/0x43" 
   0.074 Read data path: /home/factorio/factorio_headless_x64_0.13.0/data
   0.074 Write data path: /home/factorio/factorio_headless_x64_0.13.0
   0.074 Binaries path: /home/factorio/factorio_headless_x64_0.13.0/bin
   0.087 Running in headless mode
   0.090 Loading mod core 0.0.0 (data.lua)
   0.094 Loading mod base 0.13.0 (data.lua)
   0.191 Checksum for core: 1399339455
   0.191 Checksum for mod base: 2039900801
   0.497 Custom inputs active: 0
   0.497 Factorio initialised
   0.498 Info Main.cpp:557: Creating new map saves/0x43
   5.338 Info Scenario.cpp:129: Map version 0.13.0-93
   5.431 Checksum for script /home/factorio/factorio_headless_x64_0.13.0/temp/currently-playing/control.lua: 900459546
Done.
Oxyd
Former Staff
Former Staff
Posts: 1428
Joined: Thu May 07, 2015 8:42 am
Contact:

Re: [0.13][Oxyd] headless --create requires path

Post by Oxyd »

Fixed in 0.13.1, thanks.
Post Reply

Return to “Resolved Problems and Bugs”