Need help putting in some specific units- not sure what to do...

Xen

Magister
Joined
Feb 10, 2003
Messages
16,004
Location
Formosa
its with the roman middle age units- the heavy infantry, and cavalry, respectively.

All I really want to do is use the Roman havy cav to replace the old art for the Byzantine Cataphract, and have the heavy infantry be greco-roman style medieval infantry. But they dont seem to have all the files I need to do it.

Given that this is the entry for the Byzantine cataphract as is... what do I need to change here to switch it to the roman heavy cavalry art? NOTE that the RHC dose not have any KFM, or FX.nif files with it- this is whats hanging me up

<UnitArtInfo>
<Type>ART_DEF_UNIT_BYZANTINE_CATAPHRACT</Type>
<Button>,Art/Interface/Buttons/Units/ICBM.dds,Art/Interface/Buttons/Beyond_the_Sword_Atlas.dds,2,10</Button>
<fScale>0.42</fScale>
<fInterfaceScale>0.9</fInterfaceScale>
<bActAsLand>0</bActAsLand>
<bActAsAir>0</bActAsAir>
<NIF>Art/Units/Unique_Byzantine_Cataphract/Unique_Byzantine_Cataphract.nif</NIF>
<KFM>Art/Units/Unique_Byzantine_Cataphract/Unique_Byzantine_Cataphract.kfm</KFM>
<SHADERNIF>Art/Units/Unique_Byzantine_Cataphract/Unique_Byzantine_Cataphract_FX.nif</SHADERNIF>
<ShadowDef>
<ShadowNIF>Art/Units/01_UnitShadows/HorseShadow.nif</ShadowNIF>
<ShadowAttachNode>BIP Pelvis</ShadowAttachNode>
<fShadowScale>1.0</fShadowScale>
</ShadowDef>
<fBattleDistance>0.35</fBattleDistance>
<fRangedDeathTime>0.31</fRangedDeathTime>
<bActAsRanged>0</bActAsRanged>
<TrainSound>AS2D_UNIT_BUILD_UNIT</TrainSound>
<AudioRunSounds>
<AudioRunTypeLoop/>
<AudioRunTypeEnd/>
</AudioRunSounds>
</UnitArtInfo>




I've never actually added units, or screwed around with this stuff before (at one point I thought about it, but aborted) and so help would be appreciated. if there is anything beyond this that i need to do, please tell- I'm all ears :)
 
Most custom units use Animations from a stock unit in the game. You need to know which animation are used (usually the author will state it in is release) - then point the <KFM> tag to these animations (best copy&paste the <KFM> line from the appropriate unit).

If a Unit comes with only one nef, you can use the one nif you have for both <NIF> and <SHADERNIF>
 
thanks man! Is there anything other then screwing around with the ARTDEFINES_UNIT file that I have to do in order to get it working?
 
If you only want to replace art on existing units the ArtDefine would be all.

Other related XML are Civ4UnitInfos (for unit statistics, rules etc), Civ4UnitClassInfos (If there are more than one unit of the same UnitClass, one of them will be default, while others can be someone UU's) and Civ4CivilizationInfos (to assign a unit as someones UU). You can figure most stuff you might want to know by just looking how a existing UU is setup.
 
Back
Top Bottom