ls612's C2C Units

ls612

Deity
Moderator
Joined
Mar 10, 2008
Messages
8,116
Location
America
As those of you that have read the Help Wanted Ads thread may know, I've been asking (well, pestering) the team for info on how to mod units, and it has finally paid off.

This thread is to discuss all things unit-related in C2C, and also a place for other modders to request new units or changes to existing units.
 
@ls612

This mean you will be doing more units for us? Because I have a long list of request that I am sure strategyonly would be happy not to have to do.

Yes, I do intend to Make more units. Currently I have a few ideas up my sleeve, but after I do those I'd be happy to tackle a request list. It wont go fast though, as I'm still new to modding and my free time is limited.
 
Ok lets just do these one by one. First the Nakharar ...

Nakharar
Graphic: <NIF>Art/Units/Unique/armenia/nakharar/sassanidcataphractfancyhelmet.nif</NIF>
Icon: Here (not positive if its in the FPK already)
Type: Mounted
Strength: 11
Movement: 2
Cost: 90
Req Tech: Armored Calvary
Req Resource: Armenian, Horse
Upgrades To: Mailed Knight OR Cuirassier

Special Abilities
  • 1 First Strike
  • Immune to First Strikes
  • Doesn't Receive Defense Bonuses
  • +25% Grassland Attack
  • +25% Plains Attack
  • +25% Desert Attack
  • -25% Forest Attack
  • -25% Jungle Attack
  • -25% Swamp Attack
  • Can Flank Against Catapult and Trebuchet
  • Starts with Commando and Leadership Promotion

Please post the file with just this. Much easier to do them one at a time. Also make sure you include some strategy and description text other than "Blah".
 
Well, I have four units with perfect files, but now the game is minidumping on me, see here, It might be something bad, or it might be that I need to update my SVN locally:rolleyes:.
 
When trying to load the game with those files, the game will not start. I suspect that the schema files are to blame. Going to try to load it with uniquely named schemas to see if it makes a difference.

Do you get a minidump when trying?

Edit: remaning the schemas does not help, It still minidumps before going into game.
 
Ok comparing some of the code with the other one that was done by Flinx.

ls612's Code
Code:
		<UnitClassInfo>
			<Type>UNITCLASS_KALLARANI</Type>
			<Description>TXT_KEY_UNIT_KALLARANI</Description>
			<iMaxGlobalInstances>-1</iMaxGlobalInstances>
			<iMaxTeamInstances>-1</iMaxTeamInstances>
			<iMaxPlayerInstances>-1</iMaxPlayerInstances>
			<iInstanceCostModifier>0</iInstanceCostModifier>
			<DefaultUnit>UNIT_KALLARANI</DefaultUnit>
		</UnitClassInfo>

Flinx's Code
Code:
		<UnitClassInfo>
			<Type>UNITCLASS_KALLARANI</Type>
			<Description>TXT_KEY_UNIT_KALLARANI</Description>
			<iMaxGlobalInstances>-1</iMaxGlobalInstances>
			<iMaxTeamInstances>-1</iMaxTeamInstances>
			<iMaxPlayerInstances>15</iMaxPlayerInstances>
			<iInstanceCostModifier>2</iInstanceCostModifier>
			<DefaultUnit>UNIT_URUMI_KALLARANI</DefaultUnit>
		</UnitClassInfo>

As you can see iMaxPlayerInstances is set to 15 which is what it was suppose to be for a national unit. Also the iInstanceCostModifier is there for the cost that's suppose to be there too.

While I do not think this would cause the error it is something missing from the request that should be added to all units.
 
More comparisons ...

ls612's Code
Code:
<UnitArtInfo>
			<Type>ART_DEF_UNIT_KALLARANI</Type>
			<Button>,Art/Units/Unique/Chola/Kallarani/kallarani.dds</Button>
			<fScale>0.42</fScale>
			<fInterfaceScale>1.0</fInterfaceScale>
			<bActAsLand>0</bActAsLand>
			<bActAsAir>0</bActAsAir>
			<NIF>Art/Units/Unique/Chola/Kallarani/swordsman1.nif</NIF>
			<KFM>Art/Units/Unique/Greek/Phalanx/GreekPhalanx.kfm</KFM>
			<SHADERNIF>Art/Units/Unique/Chola/Kallarani/swordsman1.nif</SHADERNIF>
			<ShadowDef>
				<ShadowNIF>Art/Units/01_UnitShadows/UnitShadow.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_UNIQUE_UNIT</TrainSound>
			<AudioRunSounds>
				<AudioRunTypeLoop/>
				<AudioRunTypeEnd/>
			</AudioRunSounds>
		</UnitArtInfo>

Flinx's Code
Code:
		<UnitArtInfo>
			<Type>ART_DEF_UNIT_KALLARANI</Type>
			<Button>,Art/units/unique/chola/kallarani/kallarani.dds</Button>
			<fScale>0.44</fScale>
			<fInterfaceScale>1.0</fInterfaceScale>
			<bActAsLand>0</bActAsLand>
			<bActAsAir>0</bActAsAir>
			<NIF>Art/Units/Unique/chola/kallarani/swordsman.nif</NIF>
			<KFM>Art/Units/Swordsman/Swordsman.kfm</KFM>
			<SHADERNIF>Art/Units/Swordsman/Swordsman_FX.nif</SHADERNIF>
			<ShadowDef>
				<ShadowNIF>Art/Units/01_UnitShadows/UnitShadow.nif</ShadowNIF>
				<ShadowAttachNode>BIP Pelvis</ShadowAttachNode>
				<fShadowScale>0.9</fShadowScale>
			</ShadowDef>
			<fBattleDistance>0.35</fBattleDistance>
			<fRangedDeathTime>0.05</fRangedDeathTime>
			<bActAsRanged>1</bActAsRanged>
			<TrainSound>AS2D_UNIT_BUILD_UNIT</TrainSound>
			<AudioRunSounds>
				<AudioRunTypeLoop/>
				<AudioRunTypeEnd/>
			</AudioRunSounds>
		</UnitArtInfo>

Most changes have to do with numbers. Not sure how much they effect things. And I am guessing that ls612's code has the correct locations for the mesh files. I also do not know how much the KFM or SHADERNIF are effecting things. As I recall Finx's unit did not show up in the game.
 
More Comparing ...

ls612's Code
Code:
		<UnitInfo>
			<Class>UNITCLASS_KALLARANI</Class>
			<Type>UNIT_KALLARANI</Type>
			<UniqueNames/>
			<Special>NONE</Special>
			<Capture>NONE</Capture>
			<Combat>UNITCOMBAT_MELEE</Combat>
			<Domain>DOMAIN_LAND</Domain>
			<DefaultUnitAI>UNITAI_ATTACK_CITY</DefaultUnitAI>
			<Invisible>NONE</Invisible>
			<SeeInvisible>NONE</SeeInvisible>
			<Description>TXT_KEY_UNIT_KALLARANI</Description>
			<Civilopedia>TXT_KEY_UNIT_KALLARANI_PEDIA</Civilopedia>
			<Strategy>TXT_KEY_UNIT_KALLARANI_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>0</bNoDefensiveBonus>
			<bIgnoreBuildingDefense>0</bIgnoreBuildingDefense>
			<bCanMoveImpassable>0</bCanMoveImpassable>
			<bCanMoveAllTerrain>0</bCanMoveAllTerrain>
			<bFlatMovementCost>0</bFlatMovementCost>
			<bIgnoreTerrainCost>0</bIgnoreTerrainCost>
			<bNukeImmune>0</bNukeImmune>
			<bPrereqBonuses>0</bPrereqBonuses>
			<bPrereqReligion>0</bPrereqReligion>
			<bMechanized>0</bMechanized>
			<bSuicide>0</bSuicide>
			<bHiddenNationality>0</bHiddenNationality>
			<bAlwaysHostile>0</bAlwaysHostile>
			<bWorkerTrade>0</bWorkerTrade>
			<bMilitaryTrade>0</bMilitaryTrade>
			<UnitClassUpgrades>
				<UnitClassUpgrade>
					<UnitClassUpgradeType>UNITCLASS_MUSKETMAN</UnitClassUpgradeType>
					<bUnitClassUpgrade>1</bUnitClassUpgrade>
				</UnitClassUpgrade>
			</UnitClassUpgrades>
			<UnitClassTargets/>
			<UnitCombatTargets/>
			<UnitClassDefenders/>
			<UnitCombatDefenders/>
			<FlankingStrikes/>
			<UnitAIs>
				<UnitAI>
					<UnitAIType>UNITAI_ATTACK</UnitAIType>
					<bUnitAI>1</bUnitAI>
				</UnitAI>
				<UnitAI>
					<UnitAIType>UNITAI_ATTACK_CITY</UnitAIType>
					<bUnitAI>1</bUnitAI>
				</UnitAI>
				<UnitAI>
					<UnitAIType>UNITAI_RESERVE</UnitAIType>
					<bUnitAI>1</bUnitAI>
				</UnitAI>
				<UnitAI>
					<UnitAIType>UNITAI_CITY_DEFENSE</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_CIVIL_SERVICE</PrereqTech>
			<TechTypes>
				<PrereqTech>TECH_MACHINERY</PrereqTech>
			</TechTypes>
			<BonusType>BONUS_CHOLA</BonusType>
			<PrereqBonuses>
				<BonusType>BONUS_COPPER</BonusType>
				<BonusType>BONUS_IRON</BonusType>
			</PrereqBonuses>
			<ProductionTraits/>
			<Flavors/>
			<iAIWeight>0</iAIWeight>
			<iCost>85</iCost>
			<iHurryCostModifier>0</iHurryCostModifier>
			<iAdvancedStartCost>100</iAdvancedStartCost>
			<iAdvancedStartCostIncrease>0</iAdvancedStartCostIncrease>
			<iMinAreaSize>-1</iMinAreaSize>
			<iMoves>1</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>10</iCombat>
			<iCombatLimit>100</iCombatLimit>
			<iAirCombat>0</iAirCombat>
			<iAirCombatLimit>0</iAirCombatLimit>
			<iXPValueAttack>6</iXPValueAttack>
			<iXPValueDefense>3</iXPValueDefense>
			<iFirstStrikes>0</iFirstStrikes>
			<iChanceFirstStrikes>0</iChanceFirstStrikes>
			<iInterceptionProbability>0</iInterceptionProbability>
			<iEvasionProbability>0</iEvasionProbability>
			<iWithdrawalProb>0</iWithdrawalProb>
			<iCollateralDamage>0</iCollateralDamage>
			<iCollateralDamageLimit>0</iCollateralDamageLimit>
			<iCollateralDamageMaxUnits>0</iCollateralDamageMaxUnits>
			<iCityAttack>25</iCityAttack>
			<iCityDefense>25</iCityDefense>
			<iAnimalCombat>0</iAnimalCombat>
			<iHillsAttack>0</iHillsAttack>
			<iHillsDefense>0</iHillsDefense>
			<TerrainNatives/>
			<FeatureNatives/>
			<TerrainAttacks/>
			<TerrainDefenses/>
			<FeatureAttacks/>
			<FeatureDefenses/>
			<UnitClassAttackMods/>
			<UnitClassDefenseMods/>
			<UnitCombatMods>
				<UnitCombatMod>
					<UnitCombatType>UNITCOMBAT_MELEE</UnitCombatType>
					<iUnitCombatMod>50</iUnitCombatMod>
				</UnitCombatMod>
			</UnitCombatMods>
			<UnitCombatCollateralImmunes/>
			<DomainMods/>
			<BonusProductionModifiers>
				<BonusProductionModifier>
					<BonusType>BONUS_COPPER</BonusType>
					<iProductonModifier>15</iProductonModifier>
				</BonusProductionModifier>
				<BonusProductionModifier>
					<BonusType>BONUS_IRON</BonusType>
					<iProductonModifier>15</iProductonModifier>
				</BonusProductionModifier>
			</BonusProductionModifiers>
			<iBombRate>0</iBombRate>
			<iBombardRate>0</iBombardRate>
			<SpecialCargo>NONE</SpecialCargo>
			<DomainCargo>NONE</DomainCargo>
			<iCargo>0</iCargo>
			<iConscription>0</iConscription>
			<iCultureGarrison>5</iCultureGarrison>
			<iExtraCost>0</iExtraCost>
			<iAsset>2</iAsset>
			<iPower>12</iPower>
			<UnitMeshGroups>
				<iGroupSize>3</iGroupSize>
				<fMaxSpeed>1.75</fMaxSpeed>
				<fPadTime>1</fPadTime>
				<iMeleeWaveSize>3</iMeleeWaveSize>
				<iRangedWaveSize>0</iRangedWaveSize>
				<UnitMeshGroup>
					<iRequired>2</iRequired>
					<EarlyArtDefineTag>ART_DEF_UNIT_KALLARANI</EarlyArtDefineTag>
				</UnitMeshGroup>
			</UnitMeshGroups>
			<FormationType>FORMATION_TYPE_DEFAULT</FormationType>
			<HotKey/>
			<bAltDown>0</bAltDown>
			<bShiftDown>0</bShiftDown>
			<bCtrlDown>0</bCtrlDown>
			<iHotKeyPriority>0</iHotKeyPriority>
			<FreePromotions/>
			<LeaderPromotion>NONE</LeaderPromotion>
			<iLeaderExperience>0</iLeaderExperience>
		</UnitInfo>

Flinx's Code
Code:
		<UnitInfo>
			<Class>UNITCLASS_KALLARANI</Class>
			<Type>UNIT_KALLARANI</Type>
			<UniqueNames/>
			<Special>NONE</Special>
			<Capture>NONE</Capture>
			<Combat>UNITCOMBAT_MELEE</Combat>
			<Domain>DOMAIN_LAND</Domain>
			<DefaultUnitAI>UNITAI_COUNTER</DefaultUnitAI>
			<Invisible>NONE</Invisible>
			<SeeInvisible>NONE</SeeInvisible>							
			<Description>TXT_KEY_UNIT_KALLARANI</Description>					
			<Civilopedia>TXT_KEY_UNIT_KALLARANI_PEDIA</Civilopedia>				
			<Strategy>TXT_KEY_UNIT_KALLARANI_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>0</bNoDefensiveBonus>
			<bIgnoreBuildingDefense>0</bIgnoreBuildingDefense>
			<bCanMoveImpassable>0</bCanMoveImpassable>
			<bCanMoveAllTerrain>0</bCanMoveAllTerrain>
			<bFlatMovementCost>0</bFlatMovementCost>
			<bIgnoreTerrainCost>0</bIgnoreTerrainCost>
			<bNukeImmune>0</bNukeImmune>
			<bPrereqReligion>0</bPrereqReligion>
			<bMechanized>0</bMechanized>
			<bSuicide>0</bSuicide>
			<bHiddenNationality>0</bHiddenNationality>
			<bAlwaysHostile>0</bAlwaysHostile>
			<bWorkerTrade>0</bWorkerTrade>
			<bMilitaryTrade>0</bMilitaryTrade>
			<UnitClassUpgrades>
				<UnitClassUpgrade>
					<UnitClassUpgradeType>UNITCLASS_MUSKETMAN</UnitClassUpgradeType>
					<bUnitClassUpgrade>1</bUnitClassUpgrade>
				</UnitClassUpgrade>
			</UnitClassUpgrades>
			<UnitClassTargets/>
			<UnitCombatTargets/>
			<UnitClassDefenders/>
			<UnitCombatDefenders/>
			<FlankingStrikes/>
			<UnitAIs>
				<UnitAI>
					<UnitAIType>UNITAI_ATTACK</UnitAIType>
					<bUnitAI>1</bUnitAI>
				</UnitAI>
				<UnitAI>
					<UnitAIType>UNITAI_ATTACK_CITY</UnitAIType>
					<bUnitAI>1</bUnitAI>
				</UnitAI>
				<UnitAI>
					<UnitAIType>UNITAI_RESERVE</UnitAIType>
					<bUnitAI>1</bUnitAI>
				</UnitAI>
				<UnitAI>
					<UnitAIType>UNITAI_COUNTER</UnitAIType>
					<bUnitAI>1</bUnitAI>
				</UnitAI>
				<UnitAI>
					<UnitAIType>UNITAI_CITY_DEFENSE</UnitAIType>
					<bUnitAI>1</bUnitAI>
				</UnitAI>
				<UnitAI>
					<UnitAIType>UNITAI_PILLAGE</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_CIVIL_SERVICE</PrereqTech>
			<TechTypes>
				<PrereqTech>TECH_MACHINERY</PrereqTech>
				<PrereqTech>NONE</PrereqTech>
				<PrereqTech>NONE</PrereqTech>
			</TechTypes>
			<BonusType>BONUS_CHOLA</BonusType>
			<PrereqBonuses>
				<BonusType>BONUS_COPPER</BonusType>
				<BonusType>BONUS_IRON</BonusType>
				<BonusType>NONE</BonusType>
				<BonusType>NONE</BonusType>
			</PrereqBonuses>
			<ProductionTraits/>
			<Flavors/>
			<iAIWeight>0</iAIWeight>
			<iCost>85</iCost>
			<iHurryCostModifier>0</iHurryCostModifier>
			<iAdvancedStartCost>100</iAdvancedStartCost>
			<iAdvancedStartCostIncrease>0</iAdvancedStartCostIncrease>
			<iMinAreaSize>-1</iMinAreaSize>
			<iMoves>1</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>13</iCombat>
			<iCombatLimit>100</iCombatLimit>
			<iAirCombat>0</iAirCombat>
			<iAirCombatLimit>0</iAirCombatLimit>
			<iXPValueAttack>6</iXPValueAttack>
			<iXPValueDefense>3</iXPValueDefense>
			<iFirstStrikes>0</iFirstStrikes>
			<iChanceFirstStrikes>0</iChanceFirstStrikes>
			<iInterceptionProbability>0</iInterceptionProbability>
			<iEvasionProbability>0</iEvasionProbability>
			<iWithdrawalProb>0</iWithdrawalProb>
			<iCollateralDamage>0</iCollateralDamage>
			<iCollateralDamageLimit>0</iCollateralDamageLimit>
			<iCollateralDamageMaxUnits>0</iCollateralDamageMaxUnits>
			<iCityAttack>25</iCityAttack>
			<iCityDefense>25</iCityDefense>
			<iAnimalCombat>0</iAnimalCombat>
			<iHillsAttack>0</iHillsAttack>
			<iHillsDefense>0</iHillsDefense>
			<TerrainNatives/>
			<FeatureNatives/>
			<TerrainAttacks/>
			<TerrainDefenses/>
			<FeatureAttacks/>
			<FeatureDefenses/>
			<UnitClassAttackMods/>
			<UnitClassDefenseMods/>
			<UnitCombatMods>
				<UnitCombatMod>
					<UnitCombatType>UNITCOMBAT_MELEE</UnitCombatType>
					<iUnitCombatMod>25</iUnitCombatMod>
				</UnitCombatMod>
			</UnitCombatMods>
			<UnitCombatCollateralImmunes/>
			<DomainMods/>
			<BonusProductionModifiers>
				<BonusProductionModifier>
					<BonusType>BONUS_COPPER</BonusType>
					<iProductonModifier>15</iProductonModifier>
				</BonusProductionModifier>
				<BonusProductionModifier>
					<BonusType>BONUS_IRON</BonusType>
					<iProductonModifier>15</iProductonModifier>
				</BonusProductionModifier>
			</BonusProductionModifiers>
			<iBombRate>0</iBombRate>
			<iBombardRate>0</iBombardRate>
			<SpecialCargo>NONE</SpecialCargo>
			<DomainCargo>NONE</DomainCargo>
			<iCargo>0</iCargo>
			<iConscription>4</iConscription>
			<iCultureGarrison>4</iCultureGarrison>
			<iExtraCost>0</iExtraCost>
			<iAsset>2</iAsset>
			<iPower>9</iPower>
			<UnitMeshGroups>
				<iGroupSize>2</iGroupSize>
				<fMaxSpeed>1.75</fMaxSpeed>
				<fPadTime>1</fPadTime>
				<iMeleeWaveSize>2</iMeleeWaveSize>
				<iRangedWaveSize>0</iRangedWaveSize>
				<UnitMeshGroup>
					<iRequired>2</iRequired>
					<EarlyArtDefineTag>ART_DEF_UNIT_KALLARANI</EarlyArtDefineTag>
				</UnitMeshGroup>
			</UnitMeshGroups>
			<FormationType>FORMATION_TYPE_DEFAULT</FormationType>
			<HotKey/>
			<bAltDown>0</bAltDown>
			<bShiftDown>0</bShiftDown>
			<bCtrlDown>0</bCtrlDown>
			<iHotKeyPriority>0</iHotKeyPriority>
			<FreePromotions/>
			<LeaderPromotion>NONE</LeaderPromotion>
			<iLeaderExperience>0</iLeaderExperience>
			<iDCMBombRange>0</iDCMBombRange>
			<iDCMBombAccuracy>0</iDCMBombAccuracy>			
		</UnitInfo>

And to remind us what it should be ...

Kallarani
Type: Melee
Strength: 10
Movement: 1
Cost: 85
Req Tech: Civil Service AND Machinery
Req Resource: Chola AND (Copper OR Iron)
Upgrades To:

Special Abilities
  • 50% vs Melee
  • +25% City Attack
  • +25% Defense
  • Builds 15% Faster with Copper
  • Builds 15% Faster with Iron

First thing I notice is the unit could use some more AI like Counter and Pillage. Another difference is the combat, but seems this time its Finx who had it wrong.

Overall I don't see whats causing the problem.
 
@Hydro:
1. I *think* mine are correct, the numbers are mostly for scale, and at any rate they came from other, working art defs.

2. Nothing I did should be causing minidumps, only XML errors of something was wrong. Could you please poke AIAndy or Koshling to look at this soonish? Thanks.

3. I'll change the UnitClassInfos as soon as this other problem gets resolved.
 
@Hydro:
1. I *think* mine are correct, the numbers are mostly for scale, and at any rate they came from other, working art defs.

2. Nothing I did should be causing minidumps, only XML errors of something was wrong. Could you please poke AIAndy or Koshling to look at this soonish? Thanks.

3. I'll change the UnitClassInfos as soon as this other problem gets resolved.

Is this all in the SVN? Latest SVN is loading fine for me...

If not then what else do I need to reproduce it?
 
Is this all in the SVN? Latest SVN is loading fine for me...

If not then what else do I need to reproduce it?

1. No, It is not in the SVN

2. Download the Modules 7z file and extract it to your units folder and try to load the game. It will not even get to the main menu. There is also a minidump I posted in the v20 bugs thread.

First thing I notice is the unit could use some more AI like Counter and Pillage. Another difference is the combat, but seems this time its Finx who had it wrong.

Overall I don't see whats causing the problem.

The AIs are copied directly from the Swordsman for the melee units, and from the Horse Crossbowman for the Nakharar, so I'd assume they are correct, or else outdated.
 
1. No, It is not in the SVN

2. Download the Modules 7z file and extract it to your units folder and try to load the game. It will not even get to the main menu. There is also a minidump I posted in the v20 bugs thread..

This can happen if the game text is not there or has problems.
 
Top Bottom