NinjaKirby1322
Chieftain
This is my first post here at these forums, though I have gotten some information lurking here before.
Anyway, I've been working on my own civilization for a few days (Tamriel, if you're curious) just to get used to working on a mod, and for some reason I cannot get my unique unit to show up in Civ 5 Gods & Kings. I've double-checked all my spelling and files already in use for structure and tags, and I just cannot find anything wrong with it. The unit is very similar to the Samurai, except that one of the promotions is the "Defend near capital" promotion the Ethiopian unique unit uses.
Here is the Units.xml file:
And here is the Civilizations.xml file:
Finally, I don't know if this could house an issue, but here is the Text.xml file as well, or at least the stuff relating to the unit:
Is there anything in these files that I'm missing, or any misspellings I am not catching? Or is there some other reason that this just isn't working? Any help would be appreciated.
Anyway, I've been working on my own civilization for a few days (Tamriel, if you're curious) just to get used to working on a mod, and for some reason I cannot get my unique unit to show up in Civ 5 Gods & Kings. I've double-checked all my spelling and files already in use for structure and tags, and I just cannot find anything wrong with it. The unit is very similar to the Samurai, except that one of the promotions is the "Defend near capital" promotion the Ethiopian unique unit uses.
Here is the Units.xml file:
Spoiler :
Code:
<?xml version="1.0" encoding="utf-8"?>
<!-- Created by ModBuddy on 7/2/2012 2:02:31 PM -->
<GameData>
<Units>
<Row>
<Class>UNITCLASS_LONGSWORDSMAN</Class>
<Type>UNIT_TAMRIEL_BLADES</Type>
<PrereqTech>TECH_STEEL</PrereqTech>
<Combat>21</Combat>
<Cost>120</Cost>
<FaithCost>240</FaithCost>
<RequiresFaithPurchaseEnabled>true</RequiresFaithPurchaseEnabled>
<Moves>2</Moves>
<CombatClass>UNITCOMBAT_MELEE</CombatClass>
<Domain>DOMAIN_LAND</Domain>
<DefaultUnitAI>UNITAI_ATTACK</DefaultUnitAI>
<Description>TXT_KEY_UNIT_TAMRIEL_BLADES</Description>
<Civilopedia>TXT_KEY_CIVILOPEDIA_UNITS_MEDIEVAL_BLADES_TEXT</Civilopedia>
<Strategy>TXT_KEY_UNIT_TAMRIEL_BLADES_STRATEGY</Strategy>
<Help>TXT_KEY_UNIT_HELP_BLADES</Help>
<MilitarySupport>true</MilitarySupport>
<MilitaryProduction>true</MilitaryProduction>
<Pillage>true</Pillage>
<ObsoleteTech>TECH_METALLURGY</ObsoleteTech>
<GoodyHutUpgradeUnitClass>UNITCLASS_MUSKETMAN</GoodyHutUpgradeUnitClass>
<AdvancedStartCost>25</AdvancedStartCost>
<XPValueAttack>3</XPValueAttack>
<XPValueDefense>3</XPValueDefense>
<Conscription>3</Conscription>
<UnitArtInfo>ART_DEF_UNIT_LONGSWORDSMAN</UnitArtInfo>
<UnitFlagIconOffset>35</UnitFlagIconOffset>
<IconAtlas>UNIT_ATLAS_1</IconAtlas>
<PortraitIndex>36</PortraitIndex>
</Row>
</Units>
<Unit_AITypes>
<Row>
<UnitType>UNIT_TAMRIEL_BLADES</UnitType>
<UnitAIType>UNITAI_ATTACK</UnitAIType>
</Row>
<Row>
<UnitType>UNIT_TAMRIEL_BLADES</UnitType>
<UnitAIType>UNITAI_DEFENSE</UnitAIType>
</Row>
</Unit_AITypes>
<Unit_ClassUpgrades>
<Row>
<UnitType>UNIT_TAMRIEL_BLADES</UnitType>
<UnitClassType>UNITCLASS_MUSKETMAN</UnitClassType>
</Row>
</Unit_ClassUpgrades>
<Unit_Flavors>
<Row>
<UnitType>UNIT_TAMRIEL_BLADES</UnitType>
<FlavorType>FLAVOR_OFFENSE</FlavorType>
<Flavor>10</Flavor>
</Row>
<Row>
<UnitType>UNIT_TAMRIEL_BLADES</UnitType>
<FlavorType>FLAVOR_DEFENSE</FlavorType>
<Flavor>11</Flavor>
</Row>
</Unit_Flavors>
<Unit_FreePromotions>
<Row>
<UnitType>UNIT_TAMRIEL_BLADES</UnitType>
<PromotionType>PROMOTION_SHOCK_1</PromotionType>
</Row>
<Row>
<UnitType>UNIT_TAMRIEL_BLADES</UnitType>
<PromotionType>PROMOTION_DEFEND_NEAR_CAPITAL</PromotionType>
</Row>
</Unit_FreePromotions>
<Unit_ResourceQuantityRequirements>
<Row>
<UnitType>UNIT_TAMRIEL_BLADES</UnitType>
<ResourceType>RESOURCE_IRON</ResourceType>
</Row>
</Unit_ResourceQuantityRequirements>
</GameData>
And here is the Civilizations.xml file:
Spoiler :
Code:
<?xml version="1.0" encoding="utf-8"?>
<!-- Created by ModBuddy on 7/1/2012 6:43:39 PM -->
<GameData>
<Civilizations>
<Row>
<Type>CIVILIZATION_TAMRIEL</Type>
<Description>TXT_KEY_CIV_TAMRIEL_DESC</Description>
<ShortDescription>TXT_KEY_CIV_TAMRIEL_SHORT_DESC</ShortDescription>
<Adjective>TXT_KEY_CIV_TAMRIEL_ADJECTIVE</Adjective>
<Civilopedia>TXT_KEY_CIV_TAMRIEL_PEDIA</Civilopedia>
<CivilopediaTag>TXT_KEY_CIV5_TAMRIEL</CivilopediaTag>
<DefaultPlayerColor>PLAYERCOLOR_TAMRIEL</DefaultPlayerColor>
<ArtDefineTag>ART_DEF_CIVILIZATION_ROME</ArtDefineTag>
<ArtStyleType>ARTSTYLE_EUROPEAN</ArtStyleType>
<ArtStyleSuffix>_EURO</ArtStyleSuffix>
<ArtStylePrefix>EUROPEAN </ArtStylePrefix>
<PortraitIndex>0</PortraitIndex>
<IconAtlas>EXPANSION_CIV_COLOR_ATLAS</IconAtlas>
<AlphaIconAtlas>EXPANSION_CIV_ALPHA_ATLAS</AlphaIconAtlas>
<MapImage>MapHuns512.dds</MapImage>
<DawnOfManQuote>TXT_KEY_CIV5_DAWN_TAMRIEL_TEXT</DawnOfManQuote>
<DawnOfManImage>DOM_Elizabeth.dds</DawnOfManImage>
<DawnOfManAudio></DawnOfManAudio>
</Row>
</Civilizations>
<Civilization_BuildingClassOverrides>
<Row>
<CivilizationType>CIVILIZATION_TAMRIEL</CivilizationType>
<BuildingClassType>BUILDINGCLASS_PALACE</BuildingClassType>
<BuildingType>BUILDING_WHITE_GOLD_TOWER</BuildingType>
</Row>
</Civilization_BuildingClassOverrides>
<Civilization_FreeBuildingClasses>
<Row>
<CivilizationType>CIVILIZATION_TAMRIEL</CivilizationType>
<BuildingClassType>BUILDINGCLASS_PALACE</BuildingClassType>
</Row>
</Civilization_FreeBuildingClasses>
<Civilization_FreeTechs>
<Row>
<CivilizationType>CIVILIZATION_TAMRIEL</CivilizationType>
<TechType>TECH_AGRICULTURE</TechType>
</Row>
</Civilization_FreeTechs>
<Civilization_FreeUnits>
<Row>
<CivilizationType>CIVILIZATION_TAMRIEL</CivilizationType>
<UnitClassType>UNITCLASS_SETTLER</UnitClassType>
<Count>1</Count>
<UnitAIType>UNITAI_SETTLE</UnitAIType>
</Row>
</Civilization_FreeUnits>
<Civilization_Leaders>
<Row>
<CivilizationType>CIVILIZATION_TAMRIEL</CivilizationType>
<LeaderheadType>LEADER_TALOS</LeaderheadType>
</Row>
</Civilization_Leaders>
<Civilization_Religions>
<Row>
<CivilizationType>CIVILIZATION_TAMRIEL</CivilizationType>
<ReligionType>RELIGION_TAOISM</ReligionType>
</Row>
</Civilization_Religions>
<Civilization_SpyNames>
<Row>
<CivilizationType>CIVILIZATION_TAMRIEL</CivilizationType>
<SpyName>TXT_KEY_SPY_NAME_TAMRIEL_0</SpyName>
</Row>
<Row>
<CivilizationType>CIVILIZATION_TAMRIEL</CivilizationType>
<SpyName>TXT_KEY_SPY_NAME_TAMRIEL_1</SpyName>
</Row>
<Row>
<CivilizationType>CIVILIZATION_TAMRIEL</CivilizationType>
<SpyName>TXT_KEY_SPY_NAME_TAMRIEL_2</SpyName>
</Row>
<Row>
<CivilizationType>CIVILIZATION_TAMRIEL</CivilizationType>
<SpyName>TXT_KEY_SPY_NAME_TAMRIEL_3</SpyName>
</Row>
<Row>
<CivilizationType>CIVILIZATION_TAMRIEL</CivilizationType>
<SpyName>TXT_KEY_SPY_NAME_TAMRIEL_4</SpyName>
</Row>
<Row>
<CivilizationType>CIVILIZATION_TAMRIEL</CivilizationType>
<SpyName>TXT_KEY_SPY_NAME_TAMRIEL_5</SpyName>
</Row>
<Row>
<CivilizationType>CIVILIZATION_TAMRIEL</CivilizationType>
<SpyName>TXT_KEY_SPY_NAME_TAMRIEL_6</SpyName>
</Row>
<Row>
<CivilizationType>CIVILIZATION_TAMRIEL</CivilizationType>
<SpyName>TXT_KEY_SPY_NAME_TAMRIEL_7</SpyName>
</Row>
<Row>
<CivilizationType>CIVILIZATION_TAMRIEL</CivilizationType>
<SpyName>TXT_KEY_SPY_NAME_TAMRIEL_8</SpyName>
</Row>
<Row>
<CivilizationType>CIVILIZATION_TAMRIEL</CivilizationType>
<SpyName>TXT_KEY_SPY_NAME_TAMRIEL_9</SpyName>
</Row>
</Civilization_SpyNames>
<Civilization_UnitClassOverrides>
<Row>
<CivilizationType>CIVILIZATION_TAMRIEL</CivilizationType>
<UnitClassType>UNITCLASS_LONGSWORDSMAN</UnitClassType>
<UnitType>UNIT_TAMRIEL_BLADES</UnitType>
</Row>
</Civilization_UnitClassOverrides>
<Civilization_Start_Along_Ocean/>
<Civilization_Start_Along_River/>
<Civilization_Start_Region_Priority/>
<Civilization_Start_Region_Avoid/>
</GameData>
Finally, I don't know if this could house an issue, but here is the Text.xml file as well, or at least the stuff relating to the unit:
Spoiler :
Code:
<?xml version="1.0" encoding="utf-8"?>
<!-- Created by ModBuddy on 7/1/2012 9:11:17 PM -->
<GameData>
<Language_en_US>
<Row Tag="TXT_KEY_UNIT_BLADES">
<Text>The Blades</Text>
</Row>
<Row Tag="TXT_KEY_CIVILOPEDIA_UNITS_MEDIEVAL_BLADES_TXT">
<Text>Civilopedia Text</Text>
</Row>
<Row Tag="TXT_KEY_UNIT_BLADES_STRATEGY">
<Text>Strategy Text</Text>
</Row>
<Row Tag="TXT_KEY_UNIT_HELP_BLADES">
<Text>Help Text</Text>
</Row>
</Language_en_US>
</GameData>
Is there anything in these files that I'm missing, or any misspellings I am not catching? Or is there some other reason that this just isn't working? Any help would be appreciated.