OzzyKP
Nov 25, 2007, 12:37 AM
Browsing through the download section there are some AMAZING units available, but none of them have the corresponding XML. I'm trying to figure it out on my own, but every unit seems to do things differently.
For example, I want to add this amazing Sioux Cuirassier unit (http://forums.civfanatics.com/downloads.php?do=file&id=7460). I unzip it and I find 14 files (none of which are XML of course). There are two NIFs, one TGA, and 11 DDS'.
So which files do I link to from which spot in CIV4ArtDefines_Unit.xml?
Here is the standard BTS Cuirassier entry:
<UnitArtInfo>
<Type>ART_DEF_UNIT_CUIRASSIER</Type>
<Button>,Art/Interface/Buttons/Units/ICBM.dds,Art/Interface/Buttons/Beyond_the_Sword_Atlas.dds,3,11</Button>
<fScale>0.42</fScale>
<fInterfaceScale>1.0</fInterfaceScale>
<bActAsLand>0</bActAsLand>
<bActAsAir>0</bActAsAir>
<NIF>Art/Units/Cuirassier/Cuirassier.nif</NIF>
<KFM>Art/Units/Cuirassier/Cuirassier.kfm</KFM>
<SHADERNIF>Art/Units/Cuirassier/Cuirassier_FX.nif</SHADERNIF>
<ShadowDef>
<ShadowNIF>Art/Units/01_UnitShadows/HorseShadow.nif</ShadowNIF>
<ShadowAttachNode>HorseBip Spine1</ShadowAttachNode>
<fShadowScale>1.0</fShadowScale>
</ShadowDef>
<fBattleDistance>0.35</fBattleDistance>
<fRangedDeathTime>0.31</fRangedDeathTime>
<bActAsRanged>0</bActAsRanged>
<TrainSound>AS2D_UNIT_BUILD_UNIQUE_UNIT</TrainSound>
<AudioRunSounds>
<AudioRunTypeLoop/>
<AudioRunTypeEnd/>
</AudioRunSounds>
</UnitArtInfo>
Which goes where, and why?
I tried putting Sioux_Cuirassier.nif in the <nif> field, and tried BoundShape.nif in the <SHADERNIF> field and the unit doesn't show up in the civilopedia (and I assume in the game as well). I try putting that BoundShape.nif file in <ShadowNIF> and I get the default BTS Cuirassier. I try just leaving out the boundshape file altogether and I again get the default unit.
Another example, a Siege Gun (http://forums.civfanatics.com/downloads.php?do=file&id=2512). For this unit there are 13 files, again none of them XML. But we have only one NIF this time, one KFM, nine KFs, and two DDS'.
For the Texas Ranger there are two NIFs, and three DDS'. For this Canadian cannon there are 14 DDS', 23 KF's, 2 KFMs, 7 NIFs, and one BMP.
Every unit designer has their own way of doing things it seems and it takes me at least half an hour of trial and error to hook up each unit. :wallbash:
Any tips?
For example, I want to add this amazing Sioux Cuirassier unit (http://forums.civfanatics.com/downloads.php?do=file&id=7460). I unzip it and I find 14 files (none of which are XML of course). There are two NIFs, one TGA, and 11 DDS'.
So which files do I link to from which spot in CIV4ArtDefines_Unit.xml?
Here is the standard BTS Cuirassier entry:
<UnitArtInfo>
<Type>ART_DEF_UNIT_CUIRASSIER</Type>
<Button>,Art/Interface/Buttons/Units/ICBM.dds,Art/Interface/Buttons/Beyond_the_Sword_Atlas.dds,3,11</Button>
<fScale>0.42</fScale>
<fInterfaceScale>1.0</fInterfaceScale>
<bActAsLand>0</bActAsLand>
<bActAsAir>0</bActAsAir>
<NIF>Art/Units/Cuirassier/Cuirassier.nif</NIF>
<KFM>Art/Units/Cuirassier/Cuirassier.kfm</KFM>
<SHADERNIF>Art/Units/Cuirassier/Cuirassier_FX.nif</SHADERNIF>
<ShadowDef>
<ShadowNIF>Art/Units/01_UnitShadows/HorseShadow.nif</ShadowNIF>
<ShadowAttachNode>HorseBip Spine1</ShadowAttachNode>
<fShadowScale>1.0</fShadowScale>
</ShadowDef>
<fBattleDistance>0.35</fBattleDistance>
<fRangedDeathTime>0.31</fRangedDeathTime>
<bActAsRanged>0</bActAsRanged>
<TrainSound>AS2D_UNIT_BUILD_UNIQUE_UNIT</TrainSound>
<AudioRunSounds>
<AudioRunTypeLoop/>
<AudioRunTypeEnd/>
</AudioRunSounds>
</UnitArtInfo>
Which goes where, and why?
I tried putting Sioux_Cuirassier.nif in the <nif> field, and tried BoundShape.nif in the <SHADERNIF> field and the unit doesn't show up in the civilopedia (and I assume in the game as well). I try putting that BoundShape.nif file in <ShadowNIF> and I get the default BTS Cuirassier. I try just leaving out the boundshape file altogether and I again get the default unit.
Another example, a Siege Gun (http://forums.civfanatics.com/downloads.php?do=file&id=2512). For this unit there are 13 files, again none of them XML. But we have only one NIF this time, one KFM, nine KFs, and two DDS'.
For the Texas Ranger there are two NIFs, and three DDS'. For this Canadian cannon there are 14 DDS', 23 KF's, 2 KFMs, 7 NIFs, and one BMP.
Every unit designer has their own way of doing things it seems and it takes me at least half an hour of trial and error to hook up each unit. :wallbash:
Any tips?