Page 1 of 1

Squads.csv questions

Posted: Sat Jan 21, 2017 10:30 pm
by Galdred
A lot of fields in the squads.csv file do not appear to be used at all in the game:
1ST/2ND/3RD_APEffective[1/2/3]
1ST/2ND/3RD_WeaponAccuracy[1/2/3]
1ST/2ND/3RD_WeaponPower[1/2/3]

Only the index 0 is used, so can I repurpose the values 1/2/3 for whatever I need them to, will they be removed soon, or are they used by something I missed?

Is it possible to add a new field and use it with GetAttrib?

Re: Squads.csv questions

Posted: Sun Jan 22, 2017 4:12 pm
by GordonStraylight
Hi Galdred,

These entries are used. The 0 index is the base value and the rest are the distance in tiles that the weapon starts to degrade.

Yes you can add new entries to the squads file and you will be able to retrieve them with GetAttrib/GetAttribArray.

Cheers,

Gordon.

Re: Squads.csv questions

Posted: Mon Jan 30, 2017 4:41 pm
by Galdred_slith
Thanks!
What would happens if I change the structure of units.csv in the middle of a campaign? Would that destroy everything with carryover units (ie some missing fields, or too many of them)? Or are they generated from the units.csv at the beginning of each mission?