Page 1 of 1

[0.11.22] [ondra] Game doesn't load when config/mod-list.json is corrupted

Posted: Mon Jun 15, 2015 3:25 pm
by proudeden
I just got the game and I love it and play it a lot but when I play it a long time it comes up with a error that it couldn't read a file first it was config now its mods (I don't have any) and I have to re-download it and remove my save and put it in the new one. Its not that big of a deal for me but does anyone have any help?

Error while reading file C:/Users\Eden\Desktop\Factorio_0.11.22\config\config.ini: <unspecified file> (1): '=' character not found in line (When I opened up the file nothing was there)

Error while reading file C:/Users\Eden\Desktop\Factorio_0.11.22\mods\mod-list.json: <unspecified file> (1): expected object or array (I don't have any mods)

Re: [0.11.22] [ondra] Game doesn't load when config/mod-list.json is corrupted

Posted: Mon Jun 22, 2015 3:49 pm
by Oxyd
Could you attach the corrupted files? Even if there is nothing in them, they might still be helpful in trying to track down the source of the corruption.

Re: [0.11.22] [ondra] Game doesn't load when config/mod-list.json is corrupted

Posted: Tue Jun 23, 2015 4:36 pm
by proudeden
The other two are .json files and I cant add them. :x

Re: [0.11.22] [ondra] Game doesn't load when config/mod-list.json is corrupted

Posted: Wed Jun 24, 2015 2:11 pm
by Oxyd
Thanks. It's a shame the forum won't let you add .json files – I guess changing the file ending might help.

I've made the game ignore config.ini errors. Also saving config.ini and mod-list.json should now be less prone to error (hopefully). This should help the situation.

Re: [0.11.22] [ondra] Game doesn't load when config/mod-list.json is corrupted

Posted: Wed Jun 24, 2015 3:32 pm
by proudeden
Oxyd wrote:Thanks. It's a shame the forum won't let you add .json files – I guess changing the file ending might help.

I've made the game ignore config.ini errors. Also saving config.ini and mod-list.json should now be less prone to error (hopefully). This should help the situation.
Thanks! Love to help! What would you like me to change the file to? .txt ect.

Re: [0.11.22] [ondra] Game doesn't load when config/mod-list.json is corrupted

Posted: Wed Jun 24, 2015 4:54 pm
by Koub
proudeden wrote:The other two are .json files and I cant add them. :x
When unable to add a specific file extension, I zip the file, as most forums accept zip extension. The operation is as quick for the uploader as it is for the downloader.

Re: [0.11.22] [ondra] Game doesn't load when config/mod-list.json is corrupted

Posted: Wed Jun 24, 2015 6:06 pm
by proudeden
These are the mod-list.json files it said didn't work/ it could not read.

Re: [0.11.22] [ondra] Game doesn't load when config/mod-list.json is corrupted

Posted: Wed Jun 24, 2015 8:24 pm
by kovarex
I enabled direct upload of the json extension on the forum.

Re: [0.11.22] [ondra] Game doesn't load when config/mod-list.json is corrupted

Posted: Wed Jun 24, 2015 9:46 pm
by proudeden
kovarex wrote:I enabled direct upload of the json extension on the forum.
Do you want me to resend it? or is the .zip ok?

Re: [0.11.22] [ondra] Game doesn't load when config/mod-list.json is corrupted

Posted: Wed Jun 24, 2015 10:32 pm
by Oxyd
The .zip is fine, I got the file okay. Thanks. :)

Now to just find out what's causing it. Both files are filled with zeroes, which means it's neither a partial write, nor a completely empty file. Peculiar.

Re: [0.11.22] [ondra] Game doesn't load when config/mod-list.json is corrupted

Posted: Thu Jun 25, 2015 12:47 am
by proudeden
Oxyd wrote:The .zip is fine, I got the file okay. Thanks. :)

Now to just find out what's causing it. Both files are filled with zeroes, which means it's neither a partial write, nor a completely empty file. Peculiar.
I did not open them I just opened the config, this happened after I have played it for a while I didn't mess around with them at all. (In case you were wondering)