Page 1 of 1

Failing to load map setting [Linux]

Posted: Thu Apr 13, 2017 8:14 am
by notaduck
Hi guys. I'm trying to setup a Factorio server on a CentOS 7 System. But it doesn't like when I try to specify a map-settings-file when I'm trying to generate a new game.
So if you have any idea what is going wrong here plz let me know!

Terminal Output

Code: Select all

[factorio@Factorio saves]$ factorio --create /opt/factorio/thisgame.zip --map-gen-settings /opt/factorio/data/map-gen-settings.json 
   0.000 2017-04-13 08:07:43; Factorio 0.14.22 (build 25342, linux64, headless)
   0.000 Operating system: Linux
   0.000 Program arguments: "/opt/factorio/bin/x64/factorio" "--create" "/opt/factorio/thisgame.zip" "--map-gen-settings" "/opt/factorio/data/map-gen-settings.json" 
   0.000 Read data path: /opt/factorio/data
   0.000 Write data path: /opt/factorio
   0.000 Binaries path: /opt/factorio/bin
   0.008 System info: [CPU: Intel(R) Xeon(R) CPU E3-1240L v3 @ 2.00GHz, 8 cores, RAM: 2094MB]
   0.009 Running in headless mode
   0.010 Error Util.cpp:57: Failed to load mod --map-gen-settings
No such node (version)
<-settings /opt/factorio/data/map-gen-settings.json --create /opt/factorio/saves/thisgame1.zip                                        
   0.000 2017-04-13 08:08:31; Factorio 0.14.22 (build 25342, linux64, headless)
   0.000 Operating system: Linux
   0.000 Program arguments: "/opt/factorio/bin/x64/factorio" "--map-gen-settings" "/opt/factorio/data/map-gen-settings.json" "--create" "/opt/factorio/saves/thisgame1.zip" 
   0.000 Read data path: /opt/factorio/data
   0.000 Write data path: /opt/factorio
   0.000 Binaries path: /opt/factorio/bin
   0.009 System info: [CPU: Intel(R) Xeon(R) CPU E3-1240L v3 @ 2.00GHz, 8 cores, RAM: 2094MB]
   0.009 Running in headless mode
   0.010 Error Util.cpp:57: Failed to load mod --map-gen-settings
No such node (version)
standat map file

Code: Select all

[factorio@Factorio saves]$ cat ../data/map-gen-settings.json 
{
  "_comment": "Sizes can be specified as none, very-low, low, normal, high, very-high",

  "terrain_segmentation": "normal",
  "water": "normal",
  "width": 0,
  "height": 0,
  "starting_area": "normal",
  "peaceful_mode": false,
  "autoplace_controls":
  {
    "coal": {"frequency": "normal", "size": "normal", "richness": "normal"},
    "copper-ore": {"frequency": "normal", "size": "normal", "richness": "normal"},
    "crude-oil": {"frequency": "normal", "size": "normal", "richness": "normal"},
    "enemy-base": {"frequency": "normal", "size": "normal", "richness": "normal"},
    "iron-ore": {"frequency": "normal", "size": "normal", "richness": "normal"},
    "stone": {"frequency": "normal", "size": "normal", "richness": "normal"}
  }
}

Re: Failing to load map setting [Linux]

Posted: Thu Apr 13, 2017 8:21 am
by Loewchen
Moved to technical help.

Re: Failing to load map setting [Linux]

Posted: Thu Apr 13, 2017 9:22 am
by prg
notaduck wrote:

Code: Select all

   0.010 Error Util.cpp:57: Failed to load mod --map-gen-settings
No such node (version)
Uh... did you somehow end up with a directory that happens to be named something like --map-gen-settings_1.2.3 in the mods directory that happens to contain an info.json that's not completely empty but is missing the version key?

Re: Failing to load map setting [Linux]

Posted: Thu Apr 13, 2017 9:26 am
by daniel34
Your map-gen-settings.json file looks fine, since it's an exact copy of the example file. But for some reason Factorio tries to load your map-gen-settings file as a mod, which is very strange.

Check that your data directory only contains two folders, base and core. Anything else in that directory should be files with .txt or .json ending. I suspect you accidentally created a folder named --map-gen-settings in there and Factorio tries to load it as a mod. If that folder is fine then check that your mod folder is empty or only contains valid mods and the mod-list.json file.

If you still can't get it to work then post the ls -la output of your mods and data directory.

Re: Failing to load map setting [Linux]

Posted: Thu Apr 13, 2017 9:56 am
by notaduck
prg wrote:
notaduck wrote:

Code: Select all

   0.010 Error Util.cpp:57: Failed to load mod --map-gen-settings
No such node (version)
Uh... did you somehow end up with a directory that happens to be named something like --map-gen-settings_1.2.3 in the mods directory that happens to contain an info.json that's not completely empty but is missing the version key?
I actually somehow ended up creating a --map-gen-settings file in the data folder :oops:
Thanks for the quick response to both of you!