Hi, This is my first time modding and I've run into trouble. I'm using the beginner's guide by Kael along with Moddbuddy but I'm having trouble adding a unit to the game.
My Goal is to create a Song of Ice and Fire mod and the first step is to make a House of Stark Civ. I'm trying to create a special unit for them called "Clansman", It's in the swordsman class but uses Barbarian art. Similar to the way Kael uses Barbarian art in his guide for his new unit.
When I try to play as House Stark there is no Clansman in the game at all, nor is there a swordsman. If I'm right it means that my definition of a clansman isn't being understood by the game. I've ticked off Reload Unit System and I've set all the files associated with new units to "import VFS" true. I'm stumped and could use some help.
Here's my definition of a Clansman
And here's my Unit Art Infos
My Goal is to create a Song of Ice and Fire mod and the first step is to make a House of Stark Civ. I'm trying to create a special unit for them called "Clansman", It's in the swordsman class but uses Barbarian art. Similar to the way Kael uses Barbarian art in his guide for his new unit.
When I try to play as House Stark there is no Clansman in the game at all, nor is there a swordsman. If I'm right it means that my definition of a clansman isn't being understood by the game. I've ticked off Reload Unit System and I've set all the files associated with new units to "import VFS" true. I'm stumped and could use some help.
Here's my definition of a Clansman
Spoiler :
GameData>
<Units>
<Row>
<Class>UNITCLASS_SWORDSMAN</Class>
<Type>UNIT_CLANSMEN</Type>
<PrereqTech>TECH_IRON_WORKING</PrereqTech>
<Combat>11</Combat>
<Cost>75</Cost>
<Moves>2</Moves>
<HurryCostModifier>20</HurryCostModifier>
<CombatClass>UNITCOMBAT_MELEE</CombatClass>
<Domain>DOMAIN_LAND</Domain>
<DefaultUnitAI>UNITAI_ATTACK</DefaultUnitAI>
<Description>TXT_KEY_UNIT_CLANSMEN</Description>
<Civilopedia>TXT_KEY_CIV5_ANTIQUITY_SWORDSMAN_TEXT</Civilopedia>
<Strategy>TXT_KEY_UNIT_SWORDSMAN_STRATEGY</Strategy>
<Help>TXT_KEY_UNIT_HELP_CLANSMEN</Help>
<MilitarySupport>true</MilitarySupport>
<MilitaryProduction>true</MilitaryProduction>
<Pillage>true</Pillage>
<ObsoleteTech>TECH_GUNPOWDER</ObsoleteTech>
<GoodyHutUpgradeUnitClass>UNITCLASS_LONGSWORDSMAN</GoodyHutUpgradeUnitClass>
<AdvancedStartCost>20</AdvancedStartCost>
<WorkRate>100</WorkRate>
<XPValueAttack>3</XPValueAttack>
<XPValueDefense>3</XPValueDefense>
<Conscription>1</Conscription>
<UnitArtInfo>ART_DEF_UNIT_CLANSMEN</UnitArtInfo>
<UnitFlagIconOffset>3</UnitFlagIconOffset>
<IconAtlas>UNIT_ATLAS_1</IconAtlas>
<PortraitIndex>25</PortraitIndex>
<MoveRate>HEAVY_BIPED</MoveRate>
</Row>
</Units>
<Unit_FreePromotions>
<Row>
<UnitType>UNIT_CLANSMEN</UnitType>
<PromotionType>PROMOTION_IGNORE_TERRAIN_COST</PromotionType>
<LostWithUpgrade>true</LostWithUpgrade>
</Row>
</Unit_FreePromotions>
<Unit_AITypes>
<Row>
<UnitType>UNIT_CLANSMEN</UnitType>
<UnitType>UNITAI_ATTACK</UnitType>
</Row>
<Row>
<UnitType>UNIT_CLANSMEN</UnitType>
<UnitType>UNITAI_DEFENSE</UnitType>
</Row>
<Row>
<UnitType>UNIT_CLANSMEN</UnitType>
<UnitType>UNITAI_EXPLORE</UnitType>
</Row>
</Unit_AITypes>
<Unit_ClassUpgrades>
<Row>
<UnitType>UNIT_CLANSMEN</UnitType>
<UnitClassType>UNITCLASS_LONGSWORDSMAN</UnitClassType>
</Row>
</Unit_ClassUpgrades>
<Unit_Flavors>
<Row>
<UnitType>UNIT_CLANSMAN</UnitType>
<FlavorType>FLAVOR_RECON</FlavorType>
<Flavor>3</Flavor>
</Row>
<Row>
<UnitType>UNIT_CLANSMAN</UnitType>
<FlavorType>FLAVOR_OFFENSE</FlavorType>
<Flavor>6</Flavor>
</Row>
<Row>
<UnitType>UNIT_CLANSMAN</UnitType>
<FlavorType>FLAVOR_DEFENSE</FlavorType>
<Flavor>6</Flavor>
</Row>
</Unit_Flavors>
</GameData>
<Units>
<Row>
<Class>UNITCLASS_SWORDSMAN</Class>
<Type>UNIT_CLANSMEN</Type>
<PrereqTech>TECH_IRON_WORKING</PrereqTech>
<Combat>11</Combat>
<Cost>75</Cost>
<Moves>2</Moves>
<HurryCostModifier>20</HurryCostModifier>
<CombatClass>UNITCOMBAT_MELEE</CombatClass>
<Domain>DOMAIN_LAND</Domain>
<DefaultUnitAI>UNITAI_ATTACK</DefaultUnitAI>
<Description>TXT_KEY_UNIT_CLANSMEN</Description>
<Civilopedia>TXT_KEY_CIV5_ANTIQUITY_SWORDSMAN_TEXT</Civilopedia>
<Strategy>TXT_KEY_UNIT_SWORDSMAN_STRATEGY</Strategy>
<Help>TXT_KEY_UNIT_HELP_CLANSMEN</Help>
<MilitarySupport>true</MilitarySupport>
<MilitaryProduction>true</MilitaryProduction>
<Pillage>true</Pillage>
<ObsoleteTech>TECH_GUNPOWDER</ObsoleteTech>
<GoodyHutUpgradeUnitClass>UNITCLASS_LONGSWORDSMAN</GoodyHutUpgradeUnitClass>
<AdvancedStartCost>20</AdvancedStartCost>
<WorkRate>100</WorkRate>
<XPValueAttack>3</XPValueAttack>
<XPValueDefense>3</XPValueDefense>
<Conscription>1</Conscription>
<UnitArtInfo>ART_DEF_UNIT_CLANSMEN</UnitArtInfo>
<UnitFlagIconOffset>3</UnitFlagIconOffset>
<IconAtlas>UNIT_ATLAS_1</IconAtlas>
<PortraitIndex>25</PortraitIndex>
<MoveRate>HEAVY_BIPED</MoveRate>
</Row>
</Units>
<Unit_FreePromotions>
<Row>
<UnitType>UNIT_CLANSMEN</UnitType>
<PromotionType>PROMOTION_IGNORE_TERRAIN_COST</PromotionType>
<LostWithUpgrade>true</LostWithUpgrade>
</Row>
</Unit_FreePromotions>
<Unit_AITypes>
<Row>
<UnitType>UNIT_CLANSMEN</UnitType>
<UnitType>UNITAI_ATTACK</UnitType>
</Row>
<Row>
<UnitType>UNIT_CLANSMEN</UnitType>
<UnitType>UNITAI_DEFENSE</UnitType>
</Row>
<Row>
<UnitType>UNIT_CLANSMEN</UnitType>
<UnitType>UNITAI_EXPLORE</UnitType>
</Row>
</Unit_AITypes>
<Unit_ClassUpgrades>
<Row>
<UnitType>UNIT_CLANSMEN</UnitType>
<UnitClassType>UNITCLASS_LONGSWORDSMAN</UnitClassType>
</Row>
</Unit_ClassUpgrades>
<Unit_Flavors>
<Row>
<UnitType>UNIT_CLANSMAN</UnitType>
<FlavorType>FLAVOR_RECON</FlavorType>
<Flavor>3</Flavor>
</Row>
<Row>
<UnitType>UNIT_CLANSMAN</UnitType>
<FlavorType>FLAVOR_OFFENSE</FlavorType>
<Flavor>6</Flavor>
</Row>
<Row>
<UnitType>UNIT_CLANSMAN</UnitType>
<FlavorType>FLAVOR_DEFENSE</FlavorType>
<Flavor>6</Flavor>
</Row>
</Unit_Flavors>
</GameData>
And here's my Unit Art Infos
Spoiler :
<UnitArtInfos>
<UnitArtInfo>
<Type>ART_DEF_UNIT_BARBARIAN_EURO</Type>
<Formation>Barbarian</Formation>
<DamageStates>1</DamageStates>
<UnitMemberArt>
<MemberType>ART_DEF_UNIT_MEMBER_BARBARIAN_EURO_ALPHA</MemberType>
<MemberCount>6</MemberCount>
</UnitMemberArt>
<UnitMemberArt>
<MemberType>ART_DEF_UNIT_MEMBER_BARBARIAN_EURO_BRAVO</MemberType>
<MemberCount>2</MemberCount>
</UnitMemberArt>
<UnitMemberArt>
<MemberType>ART_DEF_UNIT_MEMBER_BARBARIAN_EURO_CHARLIE</MemberType>
<MemberCount>2</MemberCount>
</UnitMemberArt>
</UnitArtInfo>
<UnitArtInfo>
<Type>ART_DEF_UNIT_CLANSMAN</Type>
<Formation>LooseCivilian</Formation>
<DamageStates>1</DamageStates>
<UnitMemberArt>
<MemberType>ART_DEF_UNIT_MEMBER_BARBARIAN_EURO_ALPHA</MemberType>
<MemberCount>2</MemberCount>
</UnitMemberArt>
<UnitMemberArt>
<MemberType>ART_DEF_UNIT_MEMBER_BARBARIAN_EURO_BRAVO</MemberType>
<MemberCount>6</MemberCount>
</UnitMemberArt>
<UnitMemberArt>
<MemberType>ART_DEF_UNIT_MEMBER_BARBARIAN_EURO_CHARLIE</MemberType>
<MemberCount>2</MemberCount>
</UnitMemberArt>
</UnitArtInfo>
</UnitArtInfos>
<UnitArtInfo>
<Type>ART_DEF_UNIT_BARBARIAN_EURO</Type>
<Formation>Barbarian</Formation>
<DamageStates>1</DamageStates>
<UnitMemberArt>
<MemberType>ART_DEF_UNIT_MEMBER_BARBARIAN_EURO_ALPHA</MemberType>
<MemberCount>6</MemberCount>
</UnitMemberArt>
<UnitMemberArt>
<MemberType>ART_DEF_UNIT_MEMBER_BARBARIAN_EURO_BRAVO</MemberType>
<MemberCount>2</MemberCount>
</UnitMemberArt>
<UnitMemberArt>
<MemberType>ART_DEF_UNIT_MEMBER_BARBARIAN_EURO_CHARLIE</MemberType>
<MemberCount>2</MemberCount>
</UnitMemberArt>
</UnitArtInfo>
<UnitArtInfo>
<Type>ART_DEF_UNIT_CLANSMAN</Type>
<Formation>LooseCivilian</Formation>
<DamageStates>1</DamageStates>
<UnitMemberArt>
<MemberType>ART_DEF_UNIT_MEMBER_BARBARIAN_EURO_ALPHA</MemberType>
<MemberCount>2</MemberCount>
</UnitMemberArt>
<UnitMemberArt>
<MemberType>ART_DEF_UNIT_MEMBER_BARBARIAN_EURO_BRAVO</MemberType>
<MemberCount>6</MemberCount>
</UnitMemberArt>
<UnitMemberArt>
<MemberType>ART_DEF_UNIT_MEMBER_BARBARIAN_EURO_CHARLIE</MemberType>
<MemberCount>2</MemberCount>
</UnitMemberArt>
</UnitArtInfo>
</UnitArtInfos>