M 270

? never had such a problem ?, but could you you please give more information, xml code , used the model modular or not, ...
 
I have seen this error myself with other units - I will try to remember what the problem was!
 
nice job coyote! continue and thank for all :)
 
? never had such a problem ?, but could you you please give more information, xml code , used the model modular or not, ...

Sure thing, sorry I didn't do that previously:

I installed via XML. Placed the m270 folder into my Mod/Art/Unit extension, then wrote the following code:

Code:
		<UnitClassInfo>
			<Type>UNITCLASS_M270MLRS</Type>
			<Description>M270 MLRS</Description>
			<iMaxGlobalInstances>-1</iMaxGlobalInstances>
			<iMaxTeamInstances>-1</iMaxTeamInstances>
			<iMaxPlayerInstances>-1</iMaxPlayerInstances>
			<iInstanceCostModifier>0</iInstanceCostModifier>
			<DefaultUnit>NONE</DefaultUnit>
		</UnitClassInfo>

Default Unit is none so my unique is the only one to use it

Code:
		<UnitInfo>
			<Class>UNITCLASS_M270MLRS</Class>
			<Type>UNIT_M270MLRS</Type>
			<UniqueNames/>
			<Special>NONE</Special>
			<Capture>NONE</Capture>
			<Combat>UNITCOMBAT_SIEGE</Combat>
			<Domain>DOMAIN_LAND</Domain>
			<DefaultUnitAI>UNITAI_ATTACK_CITY</DefaultUnitAI>
			<Invisible>NONE</Invisible>
			<SeeInvisible>NONE</SeeInvisible>
			<Description>M270MLRS</Description>
			<Civilopedia>TXT_KEY_UNIT_MOBILE_ARTILLERY_PEDIA</Civilopedia>
			<Strategy>TXT_KEY_UNIT_MOBILE_ARTILLERY_STRATEGY</Strategy>
			<Advisor>ADVISOR_MILITARY</Advisor>
			<bAnimal>0</bAnimal>
			<bFood>0</bFood>
			<bNoBadGoodies>0</bNoBadGoodies>
			<bOnlyDefensive>0</bOnlyDefensive>
			<bNoCapture>0</bNoCapture>
			<bQuickCombat>0</bQuickCombat>
			<bRivalTerritory>0</bRivalTerritory>
			<bMilitaryHappiness>1</bMilitaryHappiness>
			<bMilitarySupport>1</bMilitarySupport>
			<bMilitaryProduction>1</bMilitaryProduction>
			<bPillage>1</bPillage>
			<bSpy>0</bSpy>
			<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>
			<bCanMoveAllTerrain>0</bCanMoveAllTerrain>
			<bFlatMovementCost>0</bFlatMovementCost>
			<bIgnoreTerrainCost>0</bIgnoreTerrainCost>
			<bNukeImmune>0</bNukeImmune>
			<bPrereqBonuses>0</bPrereqBonuses>
			<bPrereqReligion>0</bPrereqReligion>
			<bMechanized>1</bMechanized>
			<bSuicide>0</bSuicide>
			<bHiddenNationality>0</bHiddenNationality>
			<bAlwaysHostile>0</bAlwaysHostile>
			<UnitClassUpgrades/>
			<UnitClassTargets/>
			<UnitCombatTargets/>
			<UnitClassDefenders/>
			<UnitCombatDefenders/>
			<FlankingStrikes/>
			<UnitAIs>
				<UnitAI>
					<UnitAIType>UNITAI_ATTACK_CITY</UnitAIType>
					<bUnitAI>1</bUnitAI>
				</UnitAI>
				<UnitAI>
					<UnitAIType>UNITAI_COLLATERAL</UnitAIType>
					<bUnitAI>1</bUnitAI>
				</UnitAI>
			</UnitAIs>
			<NotUnitAIs/>
			<Builds/>
			<ReligionSpreads/>
			<CorporationSpreads/>
			<GreatPeoples/>
			<Buildings/>
			<ForceBuildings/>
			<HolyCity>NONE</HolyCity>
			<ReligionType>NONE</ReligionType>
			<StateReligion>NONE</StateReligion>
			<PrereqReligion>NONE</PrereqReligion>
			<PrereqCorporation>NONE</PrereqCorporation>
			<PrereqBuilding>NONE</PrereqBuilding>
			<PrereqTech>TECH_LASER</PrereqTech>
			<TechTypes>
				<PrereqTech>TECH_ARTILLERY</PrereqTech>
				<PrereqTech>NONE</PrereqTech>
				<PrereqTech>NONE</PrereqTech>
			</TechTypes>
			<BonusType>BONUS_OIL</BonusType>
			<PrereqBonuses/>
			<ProductionTraits/>
			<Flavors/>
			<iAIWeight>0</iAIWeight>
			<iCost>200</iCost>
			<iHurryCostModifier>0</iHurryCostModifier>
			<iAdvancedStartCost>100</iAdvancedStartCost>
			<iAdvancedStartCostIncrease>0</iAdvancedStartCostIncrease>
			<iMinAreaSize>-1</iMinAreaSize>
			<iMoves>2</iMoves>
			<bNoRevealMap>0</bNoRevealMap>
			<iAirRange>0</iAirRange>
			<iAirUnitCap>0</iAirUnitCap>
			<iDropRange>0</iDropRange>
			<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>
			<iEspionagePoints>0</iEspionagePoints>
			<TerrainImpassables/>
			<FeatureImpassables/>
			<TerrainPassableTechs/>
			<FeaturePassableTechs/>
			<iCombat>26</iCombat>
			<iCombatLimit>85</iCombatLimit>
			<iAirCombat>0</iAirCombat>
			<iAirCombatLimit>0</iAirCombatLimit>
			<iXPValueAttack>4</iXPValueAttack>
			<iXPValueDefense>2</iXPValueDefense>
			<iFirstStrikes>0</iFirstStrikes>
			<iChanceFirstStrikes>0</iChanceFirstStrikes>
			<iInterceptionProbability>0</iInterceptionProbability>
			<iEvasionProbability>0</iEvasionProbability>
			<iWithdrawalProb>0</iWithdrawalProb>
			<iCollateralDamage>100</iCollateralDamage>
			<iCollateralDamageLimit>70</iCollateralDamageLimit>
			<iCollateralDamageMaxUnits>8</iCollateralDamageMaxUnits>
			<iCityAttack>0</iCityAttack>
			<iCityDefense>0</iCityDefense>
			<iAnimalCombat>0</iAnimalCombat>
			<iHillsAttack>0</iHillsAttack>
			<iHillsDefense>0</iHillsDefense>
			<TerrainNatives/>
			<FeatureNatives/>
			<TerrainAttacks/>
			<TerrainDefenses/>
			<FeatureAttacks/>
			<FeatureDefenses/>
			<UnitClassAttackMods/>
			<UnitClassDefenseMods/>
			<UnitCombatMods>
				<UnitCombatMod>
					<UnitCombatType>UNITCOMBAT_SIEGE</UnitCombatType>
					<iUnitCombatMod>50</iUnitCombatMod>
				</UnitCombatMod>
			</UnitCombatMods>
			<UnitCombatCollateralImmunes>
				<UnitCombatCollateralImmune>
					<UnitCombatType>UNITCOMBAT_SIEGE</UnitCombatType>
					<iUnitCombatCollateralImmune>1</iUnitCombatCollateralImmune>
				</UnitCombatCollateralImmune>
			</UnitCombatCollateralImmunes>
			<DomainMods/>
			<BonusProductionModifiers/>
			<iBombRate>0</iBombRate>
			<iBombardRate>16</iBombardRate>
			<SpecialCargo>SPECIALUNIT_MISSILE</SpecialCargo>
			<DomainCargo>DOMAIN_AIR</DomainCargo>
			<iCargo>1</iCargo>
			<iConscription>0</iConscription>
			<iCultureGarrison>12</iCultureGarrison>
			<iExtraCost>0</iExtraCost>
			<iAsset>5</iAsset>
			<iPower>26</iPower>
			<UnitMeshGroups>
				<iGroupSize>1</iGroupSize>
				<fMaxSpeed>1.75</fMaxSpeed>
				<fPadTime>1</fPadTime>
				<iMeleeWaveSize>2</iMeleeWaveSize>
				<iRangedWaveSize>2</iRangedWaveSize>
				<UnitMeshGroup>
					<iRequired>1</iRequired>
					<EarlyArtDefineTag>ART_DEF_UNIT_MOBILE_ARTILLERY</EarlyArtDefineTag>
				</UnitMeshGroup>
			</UnitMeshGroups>
			<FormationType>FORMATION_TYPE_MACHINE</FormationType>
			<HotKey/>
			<bAltDown>0</bAltDown>
			<bShiftDown>0</bShiftDown>
			<bCtrlDown>0</bCtrlDown>
			<iHotKeyPriority>0</iHotKeyPriority>
			<FreePromotions/>
			<LeaderPromotion>NONE</LeaderPromotion>
			<iLeaderExperience>0</iLeaderExperience>
			<iDCMBombRange>2</iDCMBombRange>
			<iDCMBombAccuracy>80</iDCMBombAccuracy>
		</UnitInfo>

Added the ability to carry a missle so it can also be used as a portable "Scud" launcher. DCMB is the mod, "Dales Combat Mod".

Code:
		<UnitArtInfo>
			<Type>ART_DEF_UNIT_M270MLRS</Type>
			<Button>,Art/Interface/Buttons/Units/ICBM.dds,Art/Interface/Buttons/Beyond_the_Sword_Atlas.dds,7,11</Button>
			<fScale>0.50</fScale>
			<fInterfaceScale>1.0</fInterfaceScale>
			<bActAsLand>0</bActAsLand>
			<bActAsAir>0</bActAsAir>
			<NIF>Mods\DalesCombatMod\Assets\Art\Units\M270\M270.nif</NIF>
			<KFM>Art/Units/MobileArtillery/MobileArtillery.kfm</KFM>
			<SHADERNIF>Mods\DalesCombatMod\Assets\Art\Units\M270\M270.nif</SHADERNIF>
			<ShadowDef>
				<ShadowNIF>Art/Units/01_UnitShadows/MechInfantryShadow.nif</ShadowNIF>
				<ShadowAttachNode>BIP Pelvis</ShadowAttachNode>
				<fShadowScale>0.8</fShadowScale>
			</ShadowDef>
			<iDamageStates>4</iDamageStates>
			<TrailDefinition>
				<Texture>Art/Shared/tanktread.dds</Texture>
				<fWidth>.7</fWidth>
				<fLength>180.0</fLength>
				<fTaper>0.0</fTaper>
				<fFadeStartTime>0.2</fFadeStartTime>
				<fFadeFalloff>0.35</fFadeFalloff>
			</TrailDefinition>
			<fBattleDistance>0.35</fBattleDistance>
			<fRangedDeathTime>0.12</fRangedDeathTime>
			<bActAsRanged>1</bActAsRanged>
			<TrainSound>AS2D_UNIT_BUILD_UNIT</TrainSound>
			<AudioRunSounds>
				<AudioRunTypeLoop>LOOPSTEP_TANK</AudioRunTypeLoop>
				<AudioRunTypeEnd>ENDSTEP_TANK</AudioRunTypeEnd>
			</AudioRunSounds>
		</UnitArtInfo>

I tried both .dds files as buttons in the art info, but both gave me a crash to desktop as soon as I hovered over them. Changed it and the shadernif to mobile arty to make it playable.
 
ok, had some time to look,

-first you have to use the mobile sam animation (kfm),
-none of the included dds is a button (i don´t make them),
-perhaps set the M270 as default unit in the unitclassinfo
-use the same describtion in the unitinfo and unitclassinfo (no idea if the last two points hurt)
-early art define tag should be linked to the M270 art define (you have seen the correct unit?)
-shadernif should be the m270_Fx.nif (but should not caused your problem)

hope (one of the things) helps
 
Coyote, thanks for your help. I will try all of these things and bookmark this as I continue to learn how to add units. Thanks again!
 
Nice model, also note that in addition to SAMs, AGMs, AAMs, the missile cruisers in the game should use SSMs (Surface to Surface missiles) which is how they hit other ships
 
hehe the first post about m270 being a mobile sam unit had me screaming "nooooooooooooooooooooo":crazyeye:

M270 was the harbinger of the dreaded 'Steel Rain.' To insult such a fine creature by calling it a mere anti-air unit... shame!:)

Otherwise, who else here has had the joy of skimming agm 65 maverik glass lens covers into the king fahd international air port's insane flood ditch lining the runways haha

ahh bad times :D

Cheers!
-Liq
 
Back
Top Bottom