Unable to read a battlescript.csv file

A new scenario/battle editor is in development and should be following hot on the heels of Waterloo - any questions can go here.
Post Reply
parmenio
Reactions:
Posts: 26
Joined: Sat Mar 06, 2010 4:48 am

Unable to read a battlescript.csv file

Post 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.
Last edited by parmenio on Sun Apr 14, 2019 12:40 am, edited 1 time in total.
mitra76
Reactions:
Posts: 933
Joined: Wed Mar 31, 2010 1:21 am

Re: Unable to read a battlescript.csv file

Post by mitra76 »

I think the problem are the decimals in the coordinate number; try to delete the decimal part of numbers.
Visit my wargames blog: http://warforgame.blogspot.it/
parmenio
Reactions:
Posts: 26
Joined: Sat Mar 06, 2010 4:48 am

Re: Unable to read a battlescript.csv file

Post 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.
parmenio
Reactions:
Posts: 26
Joined: Sat Mar 06, 2010 4:48 am

Re: Unable to read a battlescript.csv file

Post 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 :(
Post Reply