MantisBT - VCMI
View Issue Details
0002198VCMILauncherpublic2015-05-29 19:582023-06-27 19:22
Drake 
Ivan 
lowminoralways
closedfixed 
WindowsWindows 76.1
0.98 
 
0002198: Launcher command window "File <unknown> is not a valid JSON file!"
This occurs on version 0.98b as well
On the Launcher command window it gives the following error-

File <unknown> is not a valid JSON file!
At line 40, position 1 warning: Comma expected!

File <unknown> is not a valid JSON file!
At line 40, position 1 warning: Comma expected!


I haven't seen this error before, so I thought I'd report it. This is on a clean installation of Heroes 3 Complete (GOG Version).
Opening VCMI Launcher and/or downloading & refreshing repositories
After all of this, I went back and deleted the vcmi folder in C:\Users\user\Documents\My Games\ as to have a completely fresh VCMI install.
After deleting that folder, I opened the VCMI Launcher again and it failed to open file C:\Users\user\Documents\My Games\vcmi\config\modSettings.json (Obviously.)
But when closing VCMI and reopening it, it now gives me this following error-

File CONFIG/MODSETTINGS is not a valid JSON file!
At line 1, position 0 error: File is empty

Along with the error from earlier repeated twice like usual and it failing to open file C:\Users\user\Documents\My Games\vcmi\config\modSettings.json

I'll be uploading the VCMI_Launcher_log files. 1 from before I deleted the vcmi folder in Documents and 2 from after.
No tags attached.
txt VCMI_Launcher_log 1.txt (4,664) 2015-05-29 19:58
https://bugs.vcmi.eu/file_download.php?file_id=2243&type=bug
txt VCMI_Launcher_log 2.txt (4,956) 2015-05-29 19:59
https://bugs.vcmi.eu/file_download.php?file_id=2244&type=bug
Issue History
2015-05-29 19:58DrakeNew Issue
2015-05-29 19:58DrakeStatusnew => assigned
2015-05-29 19:58DrakeAssigned To => Ivan
2015-05-29 19:58DrakeFile Added: VCMI_Launcher_log 1.txt
2015-05-29 19:59DrakeFile Added: VCMI_Launcher_log 2.txt
2016-09-24 13:46ruppertusNote Added: 0006739
2022-12-17 14:05IvanAssigned ToIvan =>
2023-06-27 19:22IvanNote Added: 0008656
2023-06-27 19:22IvanStatusassigned => closed
2023-06-27 19:22IvanAssigned To => Ivan
2023-06-27 19:22IvanResolutionopen => fixed

Notes
(0006739)
ruppertus   
2016-09-24 13:46   
I may reproduce a similar problem on Linux (ArchLinux, aur/vcmi-git package, git revision: a03419e). I removed all config files. Those are the logs from VCMI_Launcher:
2016-Sep-24 15:38:14.842726 WARN global [7f1f6ec9fc80] - File <unknown> is not a valid JSON file!
2016-Sep-24 15:38:14.842891 WARN global [7f1f6ec9fc80] - At line 21, position 2 warning: Comma expected!
At line 36, position 1 warning: Comma expected!

2016-Sep-24 15:38:14.848056 WARN global [7f1f6ec9fc80] - File <unknown> is not a valid JSON file!
2016-Sep-24 15:38:14.848196 WARN global [7f1f6ec9fc80] - At line 21, position 2 warning: Comma expected!
At line 36, position 1 warning: Comma expected!
(0008656)
Ivan   
2023-06-27 19:22   
already fixed