MantisBT - VCMI
View Issue Details
0002231VCMILauncherpublic2015-08-16 20:212023-06-27 19:19
Drake 
Warmonger 
lowminoralways
resolvedfixed 
WindowsWindows 10 Homebuild 10240
0.98c 
 
0002231: Downloading and refreshing repositories error
It says--
File <unknown> is not a valid JSON file!
At line 40, position 1 warning: Comma expected!

In the VCMI launcher command window

It has something to do with downloading and refreshing repositories.
Download & refresh repositories
This occurred ever since I updated from 0.97. I always use a fresh installation of Heroes 3 Complete and remove any old folders of VCMI, like in C:\Users\user\Documents\My Games\vcmi.
No tags attached.
txt VCMI_Launcher_log.txt (4,771) 2015-08-16 20:21
https://bugs.vcmi.eu/file_download.php?file_id=2285&type=bug
? modSettings.json (4,408) 2015-08-22 14:28
https://bugs.vcmi.eu/file_download.php?file_id=2296&type=bug
Issue History
2015-08-16 20:21DrakeNew Issue
2015-08-16 20:21DrakeStatusnew => assigned
2015-08-16 20:21DrakeAssigned To => Ivan
2015-08-16 20:21DrakeFile Added: VCMI_Launcher_log.txt
2015-08-22 14:26DrakeNote Added: 0005786
2015-08-22 14:28DrakeFile Added: modSettings.json
2015-08-22 14:30AVSAssigned ToIvan => Warmonger
2015-08-22 14:35AVSNote Added: 0005787
2015-08-22 14:45DrakeNote Added: 0005789
2015-08-22 15:42AVSNote Added: 0005790
2015-08-22 16:30DrakeNote Added: 0005792
2023-06-27 19:19IvanNote Added: 0008654
2023-06-27 19:19IvanStatusassigned => resolved
2023-06-27 19:19IvanResolutionopen => fixed

Notes
(0005786)
Drake   
2015-08-22 14:26   
So, after I learned to edit the json files in C:\Users\user\Documents\My Games\vcmi\config for issue 0002230, I kind of noticed what the VCMI command window meant by line 40. When I changed my graphics to Direct3D in settings.json it told me at line 8 there was a comma expected, but that went away after the second time I ran VCMI. At line 40 in modSettings.json, it begins with Dark Elemental when I 'go to' line 40 in Notepad.
So I can only assume that this has something to do with the Dark Elemental mod. Am I right? I'll attach a copy of my modSettings.json.
(0005787)
AVS   
2015-08-22 14:35   
This line 40 is from http://download.vcmi.eu/mods/repository/repository.json [^] and should be fixed there. (You can edit downloaded copy in \Documents\My Games\vcmi\downloads\ but it will help only until next repository refresh.

As for settings.json it was you fault - you missed comma when added "driver" field - it shall be between fields.
(0005789)
Drake   
2015-08-22 14:45   
Ah, so it "literally" means comma lol, I couldn't wrap my mind around that. It automatically added one in settings.json. Thanks again for pointing me in the right direction AVS.
(0005790)
AVS   
2015-08-22 15:42   
> It automatically added one in settings.json.

This is not exactly true :)

Parser can recover some mark-up errors like missing or extra commas (but it does not add anything). settings.json is "special" file - it loaded at startup and being rewritten on any settings change.
(0005792)
Drake   
2015-08-22 16:30   
Oh :) well that's a really useful function. modSettings.json and repository.json could totally benefit from a setting like that
(0008654)
Ivan   
2023-06-27 19:19   
Already resolved