Failing to load map setting [Linux]

Anything that prevents you from playing the game properly. Do you have issues playing for the game, downloading it or successfully running it on your computer? Let us know here.
Post Reply
notaduck
Burner Inserter
Burner Inserter
Posts: 7
Joined: Thu Apr 13, 2017 8:11 am
Contact:

Failing to load map setting [Linux]

Post 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"}
  }
}

Loewchen
Global Moderator
Global Moderator
Posts: 8363
Joined: Wed Jan 07, 2015 5:53 pm
Contact:

Re: Failing to load map setting [Linux]

Post by Loewchen »

Moved to technical help.

User avatar
prg
Filter Inserter
Filter Inserter
Posts: 947
Joined: Mon Jan 19, 2015 12:39 am
Contact:

Re: Failing to load map setting [Linux]

Post 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?
Automatic Belt (and pipe) Planner—Automate yet another aspect of constructing your factory!

daniel34
Global Moderator
Global Moderator
Posts: 2761
Joined: Thu Dec 25, 2014 7:30 am
Contact:

Re: Failing to load map setting [Linux]

Post 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.
quick links: log file | graphical issues | wiki

notaduck
Burner Inserter
Burner Inserter
Posts: 7
Joined: Thu Apr 13, 2017 8:11 am
Contact:

Re: Failing to load map setting [Linux]

Post 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!

Post Reply

Return to “Technical Help”