Nekkerbee said:
Does anyone know if things will go haywire if I try to add an extra tank/mech inf/etc. to the respective armor groups by opening the Civ4UnitInfos.xml file and changing the appropriate groupsize numbers from 1 to 2?
I love the mod, I just want more than 1 tank per "unit."
The manual way...
Shouldn't be a problem, I use three, look for these lines in your unitinfos.xml file under tank, of course...
<UnitMeshGroups>
<iGroupSize>3</iGroupSize>
<fMaxSpeed>1.75</fMaxSpeed>
<iMeleeWaveSize>3</iMeleeWaveSize>
<iRangedWaveSize>3</iRangedWaveSize>
<UnitMeshGroup>
*<iRequired>3</iRequired>*
<EarlyArtDefineTag>ART_DEF_UNIT_TANK</EarlyArtDefineTag>
</UnitMeshGroup>
Group size is the number of total units, this may be different if say you add another unitmeshgroup with the 'irequired' art tags. (see below) <iRequired> is the total number of units you'll see for the art tag listed.
To add an officer, or two different units to a 'unit' simply add another <UnitMeshGroup>
see below...
<UnitMeshGroups>
<iGroupSize>9</iGroupSize>
<fMaxSpeed>1.75</fMaxSpeed>
<iMeleeWaveSize>5</iMeleeWaveSize>
<iRangedWaveSize>3</iRangedWaveSize>
<UnitMeshGroup>
<iRequired>1</iRequired>
<EarlyArtDefineTag>ART_DEF_UNIT_ROMAN_GENERAL</EarlyArtDefineTag>
</UnitMeshGroup>
<UnitMeshGroup>
<iRequired>8</iRequired>
<EarlyArtDefineTag>ART_DEF_UNIT_ARMORED_SWORDSMAN</EarlyArtDefineTag>
</UnitMeshGroup>
</UnitMeshGroups>
Notice group size is now 9 because I added the extra mesh group, but by only only one, eight more swordsmen equal 9. Instead of the one unitmeshgroup tag for the roman general, I added a second with 8 armored swordsman behind him, now for the one swordsman, One officer rides out front, 8 soldiers follow in a formation.
Now adding more Tanks my require you to adjust down the size of the art for the 'tank' being displayed. This is purely asthetical, but you'll proably want it done to look good. This done in your assest/xml/art/artdefines_unit file. Look for the <fScale> and play around till you find a nice fit.
<UnitArtInfo>
<Type>ART_DEF_UNIT_TANK</Type>
<fScale>0.40</fScale>
<fInterfaceScale>0.9</fInterfaceScale>
<NIF>Art/Units/Tank/Tank.nif</NIF>
Hope this helps, WRL...