Page 1 of 1

Unable to read a battlescript.csv file

Posted: Sun Apr 14, 2019 12:40 am
by parmenio
The Scenario Editor crashes with the following error:

Code: Select all

INF Scenario CommandTemplate calling: 14:00:00  tcommon OOB_BR_von_Sachsen
ERR String [ToInt32] Unable to convert value "73826.69531"
ERR CsvReader [ToInt32] Unable to convert value 73826.69531 of header "timevar" index:5 C:\Program Files (x86)\Steam\SteamApps\common\Scourge of War Waterloo\Mods\KS Napoleon Mod II 130\Scenarios\KS_QB04 - Quatre Bras (F-Corps)\battlescript.csv
The value is actually in the ZCoord column.

Is this a known issue?

Note: It can't open the original QB DLC scenario either.

Re: Unable to read a battlescript.csv file

Posted: Sun Apr 14, 2019 3:25 am
by mitra76
I think the problem are the decimals in the coordinate number; try to delete the decimal part of numbers.

Re: Unable to read a battlescript.csv file

Posted: Sun Apr 14, 2019 3:51 pm
by parmenio
I think the problem are the decimals in the coordinate number; try to delete the decimal part of numbers.
I'll give that a go - although as I pointed out it's complaining about a problem with the "timevar" column when the value in actually in the Z coordindate column.

Re: Unable to read a battlescript.csv file

Posted: Sun Apr 14, 2019 10:45 pm
by parmenio
It turns out there was an extra comma on the end of the header row which made the editor think it was an "old" battlescript file :(