[UNIT] Redcoat 23rd-foot

Yeah, a bit further investigation learned me this was actually a grenadier of that era.
Seems like red-blue uniforms were more the thing of the French Expeditionary Force.
Check this google page for pics.
 
I concur.
Perhaps the pic I found first was more of an elite unit, or local militia uniform.
 
I think the same method as in early Civ4 should work (UNITTYPE in CivilizationInfos + creating a proper unit class). I don't know if the BtS xml tags would be valid in C4C. At least, I haven't found an UnitArtStyleType tag yet.
 
XML how I use the unit as British REF:


1. new entry in CIV4ArtDefines_Unit.xml (Important directory)

<UnitArtInfo>
<Type>ART_DEF_UNIT_UK_REDCOAT</Type>
<Button>,Art/Interface/Buttons/Unit_Resource_Colonization_Atlas.dds,1,18</Button>
<FullLengthIcon>,Art/Interface/Screens/City_Management/Veteran_Musketman.dds</FullLengthIcon>
<fScale>0.44</fScale>
<fInterfaceScale>1.0</fInterfaceScale>
<NIF>Art/Units/UK_Redcoat/Veteran_Musketman.nif</NIF>
<KFM>Art/Units/UK_Redcoat/Veteran_Musketman.kfm</KFM>

<fBattleDistance>0.35</fBattleDistance>
<fRangedDeathTime>0.05</fRangedDeathTime>
<bActAsRanged>1</bActAsRanged>
<TrainSound>AS2D_UNIT_BUILD_UNIT</TrainSound>
<AudioRunSounds>
<AudioRunTypeLoop/>
<AudioRunTypeEnd/>
</AudioRunSounds>
</UnitArtInfo>


2. new entry CIV4UnitInfos.xml

<UnitInfo>
<Type>UNIT_UK_REDCOAT</Type>
<Class>UNITCLASS_REGULAR</Class>
<UniqueNames/>
<Special>NONE</Special>
<Capture>NONE</Capture>
<Combat>NONE</Combat>
<Domain>DOMAIN_LAND</Domain>
<DefaultUnitAI>UNITAI_COUNTER</DefaultUnitAI>
<DefaultProfession>PROFESSION_DRAGOON</DefaultProfession>
<Invisible>NONE</Invisible>
<SeeInvisible>NONE</SeeInvisible>
<Description>TXT_KEY_UNIT_REGULAR</Description>
<Civilopedia>TXT_KEY_UNIT_REGULAR_PEDIA</Civilopedia>
<Strategy>TXT_KEY_UNIT_REGULAR_STRATEGY</Strategy>
<bGraphicalOnly>0</bGraphicalOnly>
<bNoBadGoodies>0</bNoBadGoodies>
<bOnlyDefensive>0</bOnlyDefensive>
<bNoCapture>0</bNoCapture>
<bQuickCombat>0</bQuickCombat>
<bRivalTerritory>0</bRivalTerritory>
<bMilitaryProduction>0</bMilitaryProduction>
<bFound>1</bFound>
<bInvisible>0</bInvisible>
<bNoDefensiveBonus>1</bNoDefensiveBonus>
<bCanMoveImpassable>0</bCanMoveImpassable>
<bCanMoveAllTerrain>0</bCanMoveAllTerrain>
<bFlatMovementCost>0</bFlatMovementCost>
<bIgnoreTerrainCost>0</bIgnoreTerrainCost>
<bMechanized>0</bMechanized>
<bLineOfSight>0</bLineOfSight>
<bHiddenNationality>0</bHiddenNationality>
<bAlwaysHostile>0</bAlwaysHostile>
<bTreasure>0</bTreasure>
<UnitClassUpgrades/>
<UnitAIs>
<UnitAI>
<UnitAIType>UNITAI_COLONIST</UnitAIType>
<bUnitAI>1</bUnitAI>
</UnitAI>
<UnitAI>
<UnitAIType>UNITAI_COUNTER</UnitAIType>
<bUnitAI>1</bUnitAI>
</UnitAI>
<UnitAI>
<UnitAIType>UNITAI_OFFENSIVE</UnitAIType>
<bUnitAI>1</bUnitAI>
</UnitAI>
</UnitAIs>
<NotUnitAIs/>
<Builds/>
<PrereqBuilding>NONE</PrereqBuilding>
<PrereqOrBuildings/>
<ProductionTraits/>
<iAIWeight>0</iAIWeight>
<YieldCosts/>
<iHurryCostModifier>0</iHurryCostModifier>
<iAdvancedStartCost>-1</iAdvancedStartCost>
<iAdvancedStartCostIncrease>0</iAdvancedStartCostIncrease>
<iEuropeCost>-1</iEuropeCost>
<iEuropeCostIncrease>0</iEuropeCostIncrease>
<iImmigrationWeight>0</iImmigrationWeight>
<iImmigrationWeightDecay>0</iImmigrationWeightDecay>
<iMinAreaSize>-1</iMinAreaSize>
<iMoves>1</iMoves>
<bCapturesCargo>0</bCapturesCargo>
<iWorkRate>0</iWorkRate>
<iWorkRateModifier>0</iWorkRateModifier>
<iMissionaryRateModifier>0</iMissionaryRateModifier>
<TerrainImpassables/>
<FeatureImpassables/>
<EvasionBuildings/>
<iCombat>0</iCombat>
<iXPValueAttack>0</iXPValueAttack>
<iXPValueDefense>0</iXPValueDefense>
<iWithdrawalProb>0</iWithdrawalProb>
<iCityAttack>50</iCityAttack>
<iCityDefense>0</iCityDefense>
<iHillsAttack>0</iHillsAttack>
<iHillsDefense>0</iHillsDefense>
<TerrainAttacks/>
<TerrainDefenses/>
<FeatureAttacks/>
<FeatureDefenses/>
<UnitClassAttackMods/>
<UnitClassDefenseMods/>
<UnitCombatMods/>
<DomainMods/>
<YieldModifiers/>
<YieldChanges/>
<BonusYieldChanges/>
<bLandYieldChanges>1</bLandYieldChanges>
<bWaterYieldChanges>1</bWaterYieldChanges>
<iBombardRate>0</iBombardRate>
<SpecialCargo>NONE</SpecialCargo>
<DomainCargo>NONE</DomainCargo>
<iCargo>0</iCargo>
<iRequiredTransportSize>1</iRequiredTransportSize>
<iAsset>250</iAsset>
<iPower>50</iPower>
<iNativeLearnTime>-1</iNativeLearnTime>
<iStudentWeight>0</iStudentWeight>
<iTeacherWeight>0</iTeacherWeight>
<ProfessionMeshGroups>
<UnitMeshGroups>
<ProfessionType>NONE</ProfessionType>
<fMaxSpeed>1.75</fMaxSpeed>
<fPadTime>1</fPadTime>
<iMeleeWaveSize>4</iMeleeWaveSize>
<iRangedWaveSize>0</iRangedWaveSize>
<UnitMeshGroup>
<iRequired>1</iRequired>
<ArtDefineTag>ART_DEF_UNIT_UK_REDCOAT</ArtDefineTag>
</UnitMeshGroup>
</UnitMeshGroups>
<UnitMeshGroups>
<ProfessionType>PROFESSION_SCOUT</ProfessionType>
<fMaxSpeed>1.75</fMaxSpeed>
<fPadTime>1</fPadTime>
<iMeleeWaveSize>4</iMeleeWaveSize>
<iRangedWaveSize>0</iRangedWaveSize>
<UnitMeshGroup>
<iRequired>1</iRequired>
<ArtDefineTag>ART_DEF_UNIT_PROFESSION_SCOUT</ArtDefineTag>
</UnitMeshGroup>
</UnitMeshGroups>
<UnitMeshGroups>
<ProfessionType>PROFESSION_SOLDIER</ProfessionType>
<fMaxSpeed>1.75</fMaxSpeed>
<fPadTime>1</fPadTime>
<iMeleeWaveSize>4</iMeleeWaveSize>
<iRangedWaveSize>0</iRangedWaveSize>
<UnitMeshGroup>
<iRequired>1</iRequired>
<ArtDefineTag>ART_DEF_UNIT_UK_REDCOAT</ArtDefineTag>
</UnitMeshGroup>
</UnitMeshGroups>
<UnitMeshGroups>
<ProfessionType>PROFESSION_DRAGOON</ProfessionType>
<fMaxSpeed>1.75</fMaxSpeed>
<fPadTime>1</fPadTime>
<iMeleeWaveSize>4</iMeleeWaveSize>
<iRangedWaveSize>0</iRangedWaveSize>
<UnitMeshGroup>
<iRequired>1</iRequired>
<ArtDefineTag>ART_DEF_UNIT_PROFESSION_UNIT_REGULAR_DRAGOON</ArtDefineTag>
</UnitMeshGroup>
</UnitMeshGroups>
<UnitMeshGroups>
<ProfessionType>PROFESSION_PIONEER</ProfessionType>
<fMaxSpeed>1.75</fMaxSpeed>
<fPadTime>1</fPadTime>
<iMeleeWaveSize>4</iMeleeWaveSize>
<iRangedWaveSize>0</iRangedWaveSize>
<UnitMeshGroup>
<iRequired>1</iRequired>
<ArtDefineTag>ART_DEF_UNIT_PROFESSION_PIONEER</ArtDefineTag>
</UnitMeshGroup>
</UnitMeshGroups>
<UnitMeshGroups>
<ProfessionType>PROFESSION_MISSIONARY</ProfessionType>
<fMaxSpeed>1.75</fMaxSpeed>
<fPadTime>1</fPadTime>
<iMeleeWaveSize>4</iMeleeWaveSize>
<iRangedWaveSize>0</iRangedWaveSize>
<UnitMeshGroup>
<iRequired>1</iRequired>
<ArtDefineTag>ART_DEF_UNIT_PROFESSION_MISSIONARY</ArtDefineTag>
</UnitMeshGroup>
</UnitMeshGroups>
</ProfessionMeshGroups>
<FormationType>FORMATION_TYPE_DEFAULT</FormationType>
<HotKey/>
<bAltDown>0</bAltDown>
<bShiftDown>0</bShiftDown>
<bCtrlDown>0</bCtrlDown>
<iHotKeyPriority>0</iHotKeyPriority>
<FreePromotions>
<FreePromotion>
<PromotionType>PROMOTION_VETERAN1</PromotionType>
<bFreePromotion>1</bFreePromotion>
</FreePromotion>
<FreePromotion>
<PromotionType>PROMOTION_VETERAN2</PromotionType>
<bFreePromotion>1</bFreePromotion>
</FreePromotion>
</FreePromotions>
<LeaderPromotion>NONE</LeaderPromotion>
<iLeaderExperience>0</iLeaderExperience>
</UnitInfo>

3. Edit CIV4CivilizationInfos.xml

<CivilizationInfo>
<Type>CIVILIZATION_ENGLAND_EUROPE</Type>
<Description>TXT_KEY_CIV_ENGLAND_EUROPE_DESC</Description>
<ShortDescription>TXT_KEY_CIV_ENGLAND_EUROPE_SHORT_DESC</ShortDescription>
<Adjective>TXT_KEY_CIV_ENGLAND_EUROPE_ADJECTIVE</Adjective>
<Civilopedia>TXT_KEY_CIV_ENGLAND_EUROPE_PEDIA</Civilopedia>
<DefaultPlayerColor>PLAYERCOLOR_RED_KING</DefaultPlayerColor>
<ArtDefineTag>ART_DEF_CIVILIZATION_ENGLAND_EUROPE</ArtDefineTag>
<ArtStyleType>ARTSTYLE_EUROPEAN</ArtStyleType>
<bPlayable>0</bPlayable>
<bAIPlayable>0</bAIPlayable>
<bWaterStart>0</bWaterStart>
<bOpenBorders>1</bOpenBorders>
<bWaterWorks>1</bWaterWorks>
<bEurope>1</bEurope>
<bNative>0</bNative>
<iAdvancedStartPoints>0</iAdvancedStartPoints>
<iAreaMultiplier>100</iAreaMultiplier>
<iDensityMultiplier>100</iDensityMultiplier>
<iTreasure>0</iTreasure>
<FavoredTerrain>NONE</FavoredTerrain>
<DefaultProfession>PROFESSION_COLONIST</DefaultProfession>
<Cities>
<City>TXT_KEY_CITY_NAME_LONDON</City>
</Cities>
<Buildings/>
<Units>
<Unit>
<UnitClassType>UNITCLASS_SHIP_OF_THE_LINE</UnitClassType>
<UnitType>UNIT_MAN_O_WAR</UnitType>
</Unit>
<Unit>
<UnitClassType>UNITCLASS_CANNON</UnitClassType>
<UnitType>UNIT_ARTILLERY</UnitType>
</Unit>
<Unit>
<UnitClassType>UNITCLASS_VETERAN</UnitClassType>
<UnitType>NONE</UnitType>
</Unit>
<Unit>
<UnitClassType>UNITCLASS_REGULAR</UnitClassType>
<UnitType>UNIT_UK_REDCOAT</UnitType>
</Unit>

</Units>
<Professions>
.
.
.
 
I am really a beginner for this kind of thing.
Are there any tutorial link about how to add this lovely unit???
 
The post above yours tells you how to do it.
The only thing you need to do is create a mod folder, put the files you see above in the right folder structure in this mod folder, and add the xml code you see above in the correct file.
O yes, and the unit art too of course. ;)
 
Ok...tried to add this unit to Age of Discovery II - which shouldn't be a problem as far as I can tell - and it crashes the game. I open up WB and try to add a british regular to the field to see if it shows up and I get an immediate CTD.

I DL'd the file, unzipped, any reason why this is named rotrock as opposed to UK_redcoat? Anyway, plopped this file down in the \Mods\AgeOfDiscoveryII\Assets\Art\Units directory with the other 'added' units. I then did as Buddy3101 stated by editing each file as shown in the list. Since I didn't see a single mention of rotrock, I suspected my first CTD was due to this, but I was wrong. I renamed the unit DIR from rotrock to UK_redcoat and restarted. Same thing. Any idea on what I'm doing wrong here? Am I supposed to be putting this unit in the main art\unit dir?

Just noticed in WB, the british version of this is called 'british regular' instead of regular...so in a way, there are 2 regulars in the WB now.
 
Martock, if you simply copied Buddy's xml from his post, there's at least one text error in it that could cause a crash.
 
Top Bottom