[RESOLVED] 'Configuration file has invalid contents'

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
User avatar
impetus maximus
Smart Inserter
Smart Inserter
Posts: 1299
Joined: Sat Aug 20, 2016 10:07 pm
Contact:

[RESOLVED] 'Configuration file has invalid contents'

Post by impetus maximus »

not sure why, but when i fired up Factorio 0.15.34 (steam) today i got greeted by this.
invalid.conf.png
invalid.conf.png (13.41 KiB) Viewed 1365 times
would someone mind taking a peek at it? i would rather not have to reset.
config.ini
(5.78 KiB) Downloaded 74 times
cheers
Last edited by impetus maximus on Thu Sep 28, 2017 7:33 pm, edited 1 time in total.

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

Re: 'Configuration file has invalid contents'

Post by daniel34 »

This is a config file from 0.14 and you're trying to load it in 0.15.

From the 0.15.0 changelog:
Configuration
  • Configuration has been reset.
Since 0.15 Factorio checks if the first line is

Code: Select all

; version=2
If it's not, then the config is invalid and has to be regenerated. You can workaround this by adding that line as the first line yourself, but this is not recommended.

In 0.15 all settings that are at default are commented out with a semicolon, and if you use a modified 0.14 config then changes in the defaults won't apply to you, e.g. if they decide to switch the default keybinding of a key to another one or change default graphics settings it won't change for you.

Also, in 0.14 configuration files some of the names (especially in [sound], [debug] and [other]) used the _ (underscore) as delimiter, in 0.15 they all use the - (hyphen). This will reset some of your settings, especially the settings found in Settings --> Other anyway, so it's probably better to reset the config and use the in-game Settings dialog to reconfigure your settings.
quick links: log file | graphical issues | wiki

User avatar
impetus maximus
Smart Inserter
Smart Inserter
Posts: 1299
Joined: Sat Aug 20, 2016 10:07 pm
Contact:

Re: 'Configuration file has invalid contents'

Post by impetus maximus »

thank you very much. i think i know what happened to the config file.
don't know why but windows added a shortcut to factorio to the start menu.
when i clicked on it, it opened an earlier version of the game and it overwrote the conf. :x

i just copied the config file from my 0.15.34 package one, and swapped

read-data=__PATH__executable__\..\..\data
write-data=__PATH__executable__\..\..

for

read-data=__PATH__system-read-data__
write-data=__PATH__system-write-data__

so it will use %appdata%

many thanks for the help. :)

Post Reply

Return to “Technical Help”