Leopard 2A5

I solved the problem this way:
<UnitArtInfo>
<Type>ART_DEF_UNIT_Leopard2A5</Type>
<fScale>0.57</fScale>
<fInterfaceScale>0.9</fInterfaceScale>
<NIF>Art/Units/Leopard2A5/Leopard2A5.nif</NIF>
<KFM>Art/Units/Tank/Tank.kfm</KFM>
<SHADERNIF>Art/Units/Leopard2A5/Leopard2A5.nif</SHADERNIF>
<ShadowDef>
<ShadowNIF>Art/Units/01_UnitShadows/ModernArmorShadow.nif</ShadowNIF>
<ShadowAttachNode>BIP Pelvis</ShadowAttachNode>
<fShadowScale>1.0</fShadowScale>
</ShadowDef>
<iDamageStates>4</iDamageStates>
<TrailDefinition>
<Texture>Art/Shared/tanktread.dds</Texture>
<fWidth>1.0</fWidth>
<fLength>180.0</fLength>
<fTaper>0.0</fTaper>
<fFadeStartTime>0.2</fFadeStartTime>
<fFadeFalloff>0.35</fFadeFalloff>
</TrailDefinition>
<fBattleDistance>0.5</fBattleDistance>
<fRangedDeathTime>0.12</fRangedDeathTime>
<bActAsRanged>1</bActAsRanged>
<TrainSound>AS2D_UNIT_BUILD_UNIT</TrainSound>
<AudioRunSounds>
<AudioRunTypeLoop>LOOPSTEP_MOD_ARMOUR</AudioRunTypeLoop>
<AudioRunTypeEnd>ENDSTEP_MOD_ARMOUR</AudioRunTypeEnd>
</AudioRunSounds>
<SelectionSound>AS3D_UN_MOD_ARMOUR_HEAL</SelectionSound>
<ActionSound>AS3D_UN_MOD_ARMOUR_HEAL</ActionSound>
</UnitArtInfo>
Note that I am using a copy of the Modern Armor Civ4artDefinesUnit, but I am using the Tank KFM. So the T-72 and Leopard will have a torret and the correct sounds of a modern thank
 
Crighton said:
i hunger for two WW1 planes

i also curse my complete lack of ability in this area :(

Check the unit index. :)

The Gotha is a WWI biplane. I know there is a mod out there with more as well. ;)
 
HI, sorry if I post here but this looks like the more active of snafu's tank threads.
I just imported the Leopard 2A5 and the T-84 graphics as unit type for the Modern Armor class for Germany and Russia. I created a Leopard2A5 and T84 folders in mymod/assets/art/units/, copied the files, renamed the .dds in modern_armor_256.dds and made all the necessary addon to the .xml files.
Result: while the Leopard is perfect, I get a perfectly modelled T-84 of an uniform pink....... :eek:
Being that I am a complete newbie at his first experiences, ant help will be welcome...

FYI: unit xlm

<Class>UNITCLASS_MODERN_ARMOR</Class>
<Type>UNIT_RUSSIA_T84</Type>
<UniqueNames/>
<Special>NONE</Special>
<Capture>NONE</Capture>
<Combat>UNITCOMBAT_ARMOR</Combat>
<Domain>DOMAIN_LAND</Domain>
<DefaultUnitAI>UNITAI_ATTACK</DefaultUnitAI>
<Invisible>NONE</Invisible>
<SeeInvisible>NONE</SeeInvisible>
<Description>T-84</Description>
<Civilopedia>T-84</Civilopedia>
<Strategy>TXT_KEY_UNIT_MODERN_ARMOR_STRATEGY</Strategy>
<Advisor>ADVISOR_MILITARY</Advisor>
<bAnimal>0</bAnimal>
<bFood>0</bFood>
<bNoBadGoodies>0</bNoBadGoodies>
<bOnlyDefensive>0</bOnlyDefensive>
<bNoCapture>0</bNoCapture>
<bRivalTerritory>0</bRivalTerritory>
<bMilitaryHappiness>1</bMilitaryHappiness>
<bMilitarySupport>1</bMilitarySupport>
<bMilitaryProduction>1</bMilitaryProduction>
<bPillage>1</bPillage>
<bSabotage>0</bSabotage>
<bDestroy>0</bDestroy>
<bStealPlans>0</bStealPlans>
<bInvestigate>0</bInvestigate>
<bCounterSpy>0</bCounterSpy>
<bFound>0</bFound>
<bGoldenAge>0</bGoldenAge>
<bInvisible>0</bInvisible>
<bFirstStrikeImmune>0</bFirstStrikeImmune>
<bNoDefensiveBonus>1</bNoDefensiveBonus>
<bIgnoreBuildingDefense>1</bIgnoreBuildingDefense>
<bCanMoveImpassable>0</bCanMoveImpassable>
<bFlatMovementCost>0</bFlatMovementCost>
<bIgnoreTerrainCost>0</bIgnoreTerrainCost>
<bNukeImmune>0</bNukeImmune>
<bPrereqBonuses>0</bPrereqBonuses>
<bPrereqReligion>0</bPrereqReligion>
<bMechanized>1</bMechanized>
<UnitClassUpgrades/>
<UnitAIs>
<UnitAI>
<UnitAIType>UNITAI_ATTACK</UnitAIType>
<bUnitAI>1</bUnitAI>
</UnitAI>
<UnitAI>
<UnitAIType>UNITAI_ATTACK_CITY</UnitAIType>
<bUnitAI>1</bUnitAI>
</UnitAI>
<UnitAI>
<UnitAIType>UNITAI_PILLAGE</UnitAIType>
<bUnitAI>1</bUnitAI>
</UnitAI>
</UnitAIs>
<NotUnitAIs/>
<Builds/>
<ReligionSpreads/>
<GreatPeoples/>
<Buildings/>
<ForceBuildings/>
<HolyCity>NONE</HolyCity>
<ReligionType>NONE</ReligionType>
<StateReligion>NONE</StateReligion>
<PrereqReligion>NONE</PrereqReligion>
<PrereqBuilding>NONE</PrereqBuilding>
<PrereqTech>TECH_COMPOSITES</PrereqTech>
<TechTypes>
<PrereqTech>TECH_COMPUTERS</PrereqTech>
<PrereqTech>NONE</PrereqTech>
<PrereqTech>NONE</PrereqTech>
</TechTypes>
<BonusType>BONUS_OIL</BonusType>
<PrereqBonuses>
<BonusType>BONUS_ALUMINUM</BonusType>
<BonusType>NONE</BonusType>
<BonusType>NONE</BonusType>
<BonusType>NONE</BonusType>
</PrereqBonuses>
<ProductionTraits/>
<Flavors/>
<iAIWeight>0</iAIWeight>
<iCost>240</iCost>
<iHurryCostModifier>0</iHurryCostModifier>
<iMinAreaSize>-1</iMinAreaSize>
<iMoves>2</iMoves>
<iAirRange>0</iAirRange>
<iNukeRange>-1</iNukeRange>
<iWorkRate>0</iWorkRate>
<iBaseDiscover>0</iBaseDiscover>
<iDiscoverMultiplier>0</iDiscoverMultiplier>
<iBaseHurry>0</iBaseHurry>
<iHurryMultiplier>0</iHurryMultiplier>
<iBaseTrade>0</iBaseTrade>
<iTradeMultiplier>0</iTradeMultiplier>
<iGreatWorkCulture>0</iGreatWorkCulture>
<TerrainImpassables/>
<FeatureImpassables/>
<iCombat>40</iCombat>
<iAirCombat>0</iAirCombat>
<iAirCombatLimit>0</iAirCombatLimit>
<iXPValueAttack>4</iXPValueAttack>
<iXPValueDefense>2</iXPValueDefense>
<iFirstStrikes>1</iFirstStrikes>
<iChanceFirstStrikes>0</iChanceFirstStrikes>
<iInterceptionProbability>0</iInterceptionProbability>
<iEvasionProbability>0</iEvasionProbability>
<iWithdrawalProb>0</iWithdrawalProb>
<iCollateralDamage>0</iCollateralDamage>
<iCollateralDamageLimit>60</iCollateralDamageLimit>
<iCollateralDamageMaxUnits>6</iCollateralDamageMaxUnits>
<iCityAttack>0</iCityAttack>
<iCityDefense>0</iCityDefense>
<iAnimalCombat>0</iAnimalCombat>
<iHillsDefense>0</iHillsDefense>
<TerrainNatives/>
<FeatureNatives/>
<TerrainDefenses/>
<FeatureDefenses/>
<UnitClassAttackMods/>
<UnitClassDefenseMods/>
<UnitCombatMods/>
<DomainMods/>
<BonusProductionModifiers/>
<iBombRate>0</iBombRate>
<iBombardRate>0</iBombardRate>
<SpecialCargo>NONE</SpecialCargo>
<DomainCargo>NONE</DomainCargo>
<iCargo>0</iCargo>
<iConscription>0</iConscription>
<iCultureGarrison>16</iCultureGarrison>
<iExtraCost>0</iExtraCost>
<iAsset>6</iAsset>
<iPower>40</iPower>
<UnitMeshGroups>
<iGroupSize>1</iGroupSize>
<fMaxSpeed>1.75</fMaxSpeed>
<iMeleeWaveSize>1</iMeleeWaveSize>
<iRangedWaveSize>1</iRangedWaveSize>
<UnitMeshGroup>
<iRequired>1</iRequired>
<EarlyArtDefineTag>ART_DEF_UNIT_RUSSIA_T84</EarlyArtDefineTag>
</UnitMeshGroup>
</UnitMeshGroups>
<Button>,Art/Interface/Buttons/Units/ModernArmor.dds,Art/Interface/Buttons/Unit_Resource_Atlas.dds,1,11</Button>
<HotKey/>
<bAltDown>0</bAltDown>
<bShiftDown>0</bShiftDown>
<bCtrlDown>0</bCtrlDown>
<iHotKeyPriority>0</iHotKeyPriority>
<FreePromotions>
<FreePromotion>
<PromotionType>PROMOTION_BLITZ</PromotionType>
<bFreePromotion>1</bFreePromotion>
</FreePromotion>
</FreePromotions>
</UnitInfo>


art xml:

<UnitArtInfo>
<Type>ART_DEF_UNIT_RUSSIA_T84</Type>
<fScale>0.37</fScale>
<fInterfaceScale>0.9</fInterfaceScale>
<NIF>Art/Units/T84/T84.nif</NIF>
<KFM>Art/Units/Tank/Tank.kfm</KFM>
<SHADERNIF>Art/Units/T84/T84.nif</SHADERNIF>
<ShadowDef>
<ShadowNIF>Art/Units/01_UnitShadows/ModernArmorShadow.nif</ShadowNIF>
<ShadowAttachNode>BIP Pelvis</ShadowAttachNode>
<fShadowScale>1.0</fShadowScale>
</ShadowDef>
<iDamageStates>4</iDamageStates>
<TrailDefinition>
<Texture>Art/Shared/tanktread.dds</Texture>
<fWidth>1.0</fWidth>
<fLength>180.0</fLength>
<fTaper>0.0</fTaper>
<fFadeStartTime>0.2</fFadeStartTime>
<fFadeFalloff>0.35</fFadeFalloff>
</TrailDefinition>
<fBattleDistance>0.5</fBattleDistance>
<fRangedDeathTime>0.12</fRangedDeathTime>
<bActAsRanged>1</bActAsRanged>
<TrainSound>AS2D_UNIT_BUILD_UNIT</TrainSound>
<AudioRunSounds>
<AudioRunTypeLoop>LOOPSTEP_MOD_ARMOUR</AudioRunTypeLoop>
<AudioRunTypeEnd>ENDSTEP_MOD_ARMOUR</AudioRunTypeEnd>
</AudioRunSounds>
<SelectionSound>AS3D_UN_MOD_ARMOUR_HEAL</SelectionSound>
<ActionSound>AS3D_UN_MOD_ARMOUR_HEAL</ActionSound>
</UnitArtInfo>


Please note thet I renamed t-84.nif to T84.nif and rescaled the models to get them on scale with the vanilla modern armor.

Again, thanks for any help and my compliments to snafu for his wonderful models.

Cheers
Roberto
 
Your problem is that you renamed the .dds files (the textures). They need to be spelled exactly the way they were when you downloaded them. That name is recognized by the .nif file, so changing it means it can't find the texture, and it defaults back to pink. Hope this helps, and glad you like them.

-Smitty
 
Thank you very much Smitty. Everything it's ok now, :goodjob: no fear of pinkish machineries of destruction now... Strange but true, the leopard worked even with the renamed file... and that ruled out (for me at last) the renaming issue... :rolleyes:

That only show how much I have to learn..... ;)

Can't wait for the Challenger.
Any hope, in the far future, for a Ariete http://en.wikipedia.org/wiki/Ariete ?

Thanks again.

Cheers
Roberto
 
LMAO the amount of people in here that don't read the help you put with the units.....

snafusmith said:
It uses the standard tank animations, so please point to the tank.kfm files.
-Smitty


Thats all you have to do peeps to get the unit working right!!! no more no less come on its not like you have to rewrite the whole .xml file for this unit... :goodjob: nice work smitty keep em coming
 
Snafus .zip File
If you use snafus .nif File, you don`t even have to put the .ddf file within the folder, because he put the textures into the .nif file. Thats why you think it doesn`t matter how the .ddf file is named. delete the .ddf file and the textures will be shown also. ;)

baal_isidros .zip File
I modified the .nif file to be able to put a skin (my reskin) on it. So if you use my skin you have to put the correct named .ddf file to my .nif file.

Of course in both cases you have to point to the tank.kfm, if you don`t ,the turret will be hidden.
 
LMAO the amount of people in here that don't read the help you put with the units.....

Actually the animations were ok, as I said, I got a perfect T-84 model... only all pink....:blush:

It's not so much as not reading the help given as pure ignorance regarding how the files actually work, as for the .nif in this case... :crazyeye:

Well, it's good to leran something new, and even more good would be to read some of the model creation guides, which I think will explain something more... ;)

Cheers
Robbi
 
Snafus .zip File
If you use snafus .nif File, you don`t even have to put the .ddf file within the folder, because he put the textures into the .nif file. Thats why you think it doesn`t matter how the .ddf file is named. delete the .ddf file and the textures will be shown also.

Ach, what a devil that Snafu....... :lol:

baal_isidros .zip File
I modified the .nif file to be able to put a skin (my reskin) on it. So if you use my skin you have to put the correct named .ddf file to my .nif file.

Great to know, I was going to use your reskin for the German Leopard and the original one for the Spanish one(not the right one I believe, but just to differentiate between tanks... also, the Sanish model should be A4 if I'm not wrong)

Thank you baal :)
 
Gattolardo said:
Actually the animations were ok, as I said, I got a perfect T-84 model... only all pink....:blush:

It's not so much as not reading the help given as pure ignorance regarding how the files actually work, as for the .nif in this case... :crazyeye:

Well, it's good to leran something new, and even more good would be to read some of the model creation guides, which I think will explain something more... ;)

Cheers
Robbi


just remember you can rename the .nif file (just make sure your .xml file knows what its called) but you can't change the .dds name as the .nif file points to it for the texture :goodjob:
 
Hi everybody,


my question is, does anybody have a dds-file for the buttons of the Leo 2, then this one is also then customised?

thx
 
Back
Top Bottom