View Full Version : Help, need help finding a file


Kushan
Dec 18, 2005, 11:03 AM
Does anyone know what file controls unit combat types?

Example:
<UnitCombatMod>

<UnitCombatType>UNITCOMBAT_GUN</UnitCombatType>
<iUnitCombatMod>50</iUnitCombatMod>

</UnitCombatMod>

In this case, it would be UNITCOMBAT_GUN. I've tried searching myself but cant seem to find the file that defines these. Anyone have any ideas?

Thanks,

Kushan

EDT: Also what file contains what factions have access to a specific unit, Unique Units?

Pwyll
Dec 18, 2005, 02:05 PM
The unique units for each civ are listed in the Civ4CivilizationInfos.xml file. For example, for the Americans, there is the following block:

<Units>
<Unit>
<UnitClassType>UNITCLASS_MARINE</UnitClassType>
<UnitType>UNIT_AMERICAN_NAVY_SEAL</UnitType>
</Unit>
</Units>

The unique unit itself is defined in Civ4UnitInfos.xml.

I found some UnitCombatInfos in Civ4BasicInfos.xml that look like this:

<UnitCombatInfo>
<Type>UNITCOMBAT_ARCHER</Type>
<Description>TXT_KEY_UNITCOMBAT_ARCHER</Description>
<Button>,Art/Interface/Buttons/Promotions/Cover.dds,Art/Interface/Buttons/Promotions_Atlas.dds,2,5</Button>
</UnitCombatInfo>

Not sure if that's what you're looking for.

Civ4UnitInfos.xml has a block like...

<UnitCombatMods>
<UnitCombatMod>
<UnitCombatType>UNITCOMBAT_ARCHER</UnitCombatType>
<iUnitCombatMod>100</iUnitCombatMod>
</UnitCombatMod>
</UnitCombatMods>

.. for each unit.

jbfballrb
Dec 18, 2005, 04:24 PM
BasicInfos.xml is where you define what the UNITCOMBATs are