Bad file format, ignoring :(

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
Tazerbot
Manual Inserter
Manual Inserter
Posts: 1
Joined: Mon May 29, 2017 9:57 pm
Contact:

Bad file format, ignoring :(

Post by Tazerbot »

I have made some changes to my server config file and now it just doesn't accept my file, i have replaced it with the example file and only have changes some falses to trues and added passwords and logins, not sure where its getting problems here.

Code: Select all

 2:54PM in ~/.factorio 
➜ factorio --start-server ROBITS.zip --config /home/arch/.factorio/server-settings.example.json 
   0.000  Error GlobalContext.cpp:836: /home/arch/.factorio/server-settings.example.json: Bad file format; ignoring
   0.000 2017-05-29 14:55:06; Factorio 0.15.16 (build 30063, linux64, headless)
   0.000 Operating system: Linux
   0.000 Program arguments: "factorio" "--start-server" "ROBITS.zip" "--config" "/home/arch/.factorio/server-settings.example.json" 
   0.000 Read data path: /usr/share/factorio
   0.000 Write data path: /home/arch/.factorio
   0.000 Binaries path: /home/arch
   0.007 System info: [CPU: Intel(R) Core(TM) i7-6800K CPU @ 3.40GHz, 12 cores, RAM: 16015MB]
   0.008 Running in headless mode
   0.013 Loading mod core 0.0.0 (data.lua)
   0.017 Loading mod base 0.15.16 (data.lua)
   0.092 Loading mod base 0.15.16 (data-updates.lua)
   0.147 Checksum for core: 2224076952
   0.147 Checksum of base: 2355693671
   0.241 Info PlayerData.cpp:56: Local player-data.json available, timestamp 1496094713
   0.241 Info PlayerData.cpp:63: Cloud player-data.json unavailable
   0.241 Info GlobalContext.cpp:883: Resetting config.
   0.242 Custom inputs active: 0
   0.242 Info Updater.cpp:751: Downloading https://updater.factorio.com/get-available-versions?username=Tazerbot&token=<private>&apiVersion=2
   1.017 0 packages available to download (experimental updates disabled).
   1.019 Factorio initialised

Code: Select all

 3:02PM in ~/.factorio 
➜ cat server-settings.example.json 
{
  "name": "Name of the game as it will appear in the game listing",
  "description": "Description of the game that will appear in the listing",
  "tags": ["game", "tags"],

  "_comment_max_players": "Maximum number of players allowed, admins can join even a full server. 0 means unlimited.",
  "max_players": 0,

  "_comment_visibility": ["public: Game will be published on the official Factorio matching server",
                          "lan: Game will be broadcast on LAN"],
  "visibility":
  {
    "public": true,
    "lan": true
  },

  "_comment_credentials": "Your factorio.com login credentials. Required for games with visibility public",
  "username": "Tazerbot",
  "password": "**********",

  "_comment_token": "Authentication token. May be used instead of 'password' above.",
  "token": "",

  "game_password": "********",

  "_comment_require_user_verification": "When set to true, the server will only allow clients that have a valid Factorio.com account",
  "require_user_verification": true,

  "_comment_max_upload_in_kilobytes_per_second" : "optional, default value is 0. 0 means unlimited.",
  "max_upload_in_kilobytes_per_second": 0,

  "_comment_minimum_latency_in_ticks": "optional one tick is 16ms in default speed, default value is 0. 0 means no minimum.",
  "minimum_latency_in_ticks": 0,

  "_comment_ignore_player_limit_for_returning_players": "Players that played on this map already can join even when the max player limit was reached.",
  "ignore_player_limit_for_returning_players": false,

  "_comment_allow_commands": "possible values are, true, false and admins-only",
  "allow_commands": "admins-only",

  "_comment_autosave_interval": "Autosave interval in minutes",
  "autosave_interval": 3,

  "_comment_autosave_slots": "server autosave slots, it is cycled through when the server autosaves.",
  "autosave_slots": 5,

  "_comment_afk_autokick_interval": "How many minutes until someone is kicked when doing nothing, 0 for never.",
  "afk_autokick_interval": 0,

  "_comment_auto_pause": "Whether should the server be paused when no players are present.",
  "auto_pause": true,

  "only_admins_can_pause_the_game": true,

  "_comment_autosave_only_on_server": "Whether autosaves should be saved only on server or also on all connected clients. Default is true.",
  "autosave_only_on_server": false,

  "_comment_admins": "List of case insensitive usernames, that will be promoted immediately",
  "admins": []
}

User avatar
HanziQ
Former Staff
Former Staff
Posts: 630
Joined: Fri Mar 27, 2015 7:07 am
Contact:

Re: Bad file format, ignoring :(

Post by HanziQ »

That's not the config file, that's --server-settings

Post Reply

Return to “Technical Help”