Unique Unit and Building not showing up?

Forcystus

Chieftain
Joined
Sep 22, 2007
Messages
62
Location
Everywhere
I made a new Civilization (The Cree) and the leader and civilization are in the game, but the Unique Unit and Building aren't attached to it. The Unit is in the civlopedia but the building is not. I'm posting all my code as spoilers. Please help.

Civilization:
Spoiler :
Code:
<?xml version="1.0" encoding="utf-8"?>
<!-- Created by ModBuddy on 9/4/2011 11:41:59 PM -->
<GameData>
	<Civilizations>
		<Row>
			<Type>CIVILIZATION_CREE</Type>
			<Description>TXT_KEY_CIV_CREE_DESC</Description>
			<ShortDescription>TXT_KEY_CIV_CREE_SHORT_DESC</ShortDescription>
			<Adjective>TXT_KEY_CIV_CREE_ADJECTIVE</Adjective>
			<CivilopediaTag>TXT_KEY_CIV5_IROQUOIS</CivilopediaTag>
			<DefaultPlayerColor>PLAYERCOLOR_GREEN_AND_WHITE</DefaultPlayerColor>
			<ArtDefineTag>ART_DEF_CIVILIZATION_IROQUOIS</ArtDefineTag>
			<ArtStyleType>ARTSTYLE_SOUTH_AMERICA</ArtStyleType>
			<ArtStyleSuffix>_AMER</ArtStyleSuffix>
			<ArtStylePrefix>AMERICAN </ArtStylePrefix>
			<PortraitIndex>12</PortraitIndex>
			<IconAtlas>CIV_COLOR_ATLAS</IconAtlas>
			<AlphaIconAtlas>CIV_ALPHA_ATLAS</AlphaIconAtlas>
			<MapImage>MapIroquoi512.dds</MapImage>
			<DawnOfManQuote>TXT_KEY_CIV5_DAWN_IROQUOIS_TEXT</DawnOfManQuote>
			<DawnOfManImage>DOM_Hiawatha.dds</DawnOfManImage>
			<DawnOfManAudio>AS2D_DOM_SPEECH_IROQUOIS</DawnOfManAudio>
		</Row>
	</Civilizations>
	<Civilization_BuildingClassOverrides>
	<Row>
		<CivilizationType>CIVILIZATION_CREE</CivilizationType>
		<BuildingClassType>BUILDINGCLASS_STABLE</BuildingClassType>
		<BuildingType>BUILDING_CREE_POUND</BuildingType>
	</Row>
	</Civilization_BuildingClassOverrides>
	<Civilization_CityNames>
		<Row>
			<CivilizationType>CIVILIZATION_CREE</CivilizationType>
			<CityName>Cree</CityName>
		</Row>
	</Civilization_CityNames>
	<Civilization_FreeBuildingClasses>
		<Row>
			<CivilizationType>CIVILIZATION_CREE</CivilizationType>
			<BuildingClassType>BUILDINGCLASS_PALACE</BuildingClassType>
		</Row>
	</Civilization_FreeBuildingClasses>
	<Civilization_FreeTechs>
		<Row>
			<CivilizationType>CIVILIZATION_CREE</CivilizationType>
			<TechType>TECH_AGRICULTURE</TechType>
		</Row>
	</Civilization_FreeTechs>
	<Civilization_FreeUnits>
		<Row>
			<CivilizationType>CIVILIZATION_CREE</CivilizationType>
			<UnitClassType>UNITCLASS_SETTLER</UnitClassType>
			<Count>1</Count>
			<UnitAIType>UNITAI_SETTLE</UnitAIType>
		</Row>
	</Civilization_FreeUnits>
	<Civilization_Leaders>
		<Row>
			<CivilizationType>CIVILIZATION_CREE</CivilizationType>
			<LeaderheadType>LEADER_POUNDMAKER</LeaderheadType>
		</Row>
	</Civilization_Leaders>
	<Civilization_UnitClassOverrides>
		<Row>
			<CivilizationType>CIVILIZATION_CREEE</CivilizationType>
			<UnitClassType>UNITCLASS_RIFLEMAN</UnitClassType>
			<UnitType>UNIT_CREE_TRACKER</UnitType>
		</Row>
	</Civilization_UnitClassOverrides>
	<Civilization_Start_Region_Avoid>
		<Row>
			<CivilizationType>CIVILIZATION_CREE</CivilizationType>
			<RegionType>REGION_DESERT</RegionType>
		</Row>
		<Row>
			<CivilizationType>CIVILIZATION_CREE</CivilizationType>
			<RegionType>REGION_JUNGLE</RegionType>
		</Row>
	</Civilization_Start_Region_Avoid>
</GameData>

Units:
Spoiler :
Code:
<?xml version="1.0" encoding="utf-8"?>
<!-- Created by ModBuddy on 9/4/2011 11:50:00 PM -->
<GameData>
	<Units>
	<Row>	
		<Class>UNITCLASS_RIFLEMAN</Class>
		<Type>UNIT_CREE_TRACKER</Type>
		<PrereqTech>TECH_RIFLING</PrereqTech>
		<Combat>25</Combat>
		<Cost>225</Cost>
		<Moves>2</Moves>
		<CombatClass>UNITCOMBAT_GUN</CombatClass>
		<Domain>DOMAIN_LAND</Domain>
		<DefaultUnitAI>UNITAI_DEFENSE</DefaultUnitAI>
		<Description>TXT_KEY_UNIT_CREE_TRACKER</Description>
		<Civilopedia>TXT_KEY_CIVILOPEDIA_UNITS_RENAISSANCE_RIFLEMEN_TEXT</Civilopedia>
		<Strategy>TXT_KEY_UNIT_RIFLEMAN_STRATEGY</Strategy>
		<Help>TXT_KEY_UNIT_HELP_RIFLEMAN</Help>
		<MilitarySupport>true</MilitarySupport>
		<MilitaryProduction>true</MilitaryProduction>
		<Pillage>true</Pillage>
		<IgnoreBuildingDefense>true</IgnoreBuildingDefense>
		<ObsoleteTech>TECH_REPLACEABLE_PARTS</ObsoleteTech>
		<GoodyHutUpgradeUnitClass>UNITCLASS_INFANTRY</GoodyHutUpgradeUnitClass>
		<AdvancedStartCost>30</AdvancedStartCost>
		<XPValueAttack>3</XPValueAttack>
		<XPValueDefense>3</XPValueDefense>
		<Conscription>5</Conscription>
		<UnitArtInfo>ART_DEF_UNIT_RIFLEMAN</UnitArtInfo>
		<UnitFlagIconOffset>47</UnitFlagIconOffset>
		<IconAtlas>UNIT_ATLAS_2</IconAtlas>
		<PortraitIndex>4</PortraitIndex>
	</Row>
	</Units>
	<Unit_AITypes>
		<Row>
			<UnitType>UNIT_CREE_TRACKER</UnitType>
			<UnitAIType>UNITAI_ATTACK</UnitAIType>
		</Row>
		<Row>
			<UnitType>UNIT_CREE_TRACKER</UnitType>
			<UnitAIType>UNITAI_DEFENSE</UnitAIType>
		</Row>
		<Row>
			<UnitType>UNIT_CREE_TRACKER</UnitType>
			<UnitAIType>UNITAI_EXPLORE</UnitAIType>
		</Row>
	</Unit_AITypes>
	<Unit_ClassUpgrades>
		<Row>
			<UnitType>UNIT_CREE_TRACKER</UnitType>
			<UnitClassType>UNITCLASS_INFANTRY</UnitClassType>
		</Row>
	</Unit_ClassUpgrades>
	<Unit_Flavors>
		<Row>
			<UnitType>UNIT_CREE_TRACKER</UnitType>
			<FlavorType>FLAVOR_OFFENSE</FlavorType>
			<Flavor>10</Flavor>
		</Row>
		<Row>
			<UnitType>UNIT_CREE_TRACKER</UnitType>
			<FlavorType>FLAVOR_DEFENSE</FlavorType>
			<Flavor>10</Flavor>
		</Row>
	</Unit_Flavors>
	<Unit_FreePromotions>
		<Row>
			<UnitType>UNIT_CREE_TRACKER</UnitType>
			<PromotionType>PROMOTION_SHOCK_I</PromotionType>
		</Row>
	</Unit_FreePromotions>
</GameData>

Buildings:
Spoiler :
Code:
<?xml version="1.0" encoding="utf-8"?>
<!-- Created by ModBuddy on 9/5/2011 12:05:32 AM -->
<GameData>
	<Building>
	<Row>
		<BuildingClass>BUILDINGCLASS_STABLE</BuildingClass>
		<Type>BUILDING_CREE_POUND</Type>
		<Cost>100</Cost>
		<GoldMaintenance>1</GoldMaintenance>
		<PrereqTech>TECH_HORSEBACK_RIDING</PrereqTech>
		<Description>TXT_KEY_BUILDING_CREE_POUND</Description>
		<Civilopedia>TXT_KEY_CIV5_BUILDINGS_STABLE_TEXT</Civilopedia>
		<Strategy>TXT_KEY_BUILDING_STABLE_STRATEGY</Strategy>
		<Help>TXT_KEY_BUILDING_STABLE_HELP</Help>
		<ArtDefineTag>ART_DEF_BUILDING_STABLE</ArtDefineTag>
		<MinAreaSize>-1</MinAreaSize>
		<HurryCostModifier>25</HurryCostModifier>
		<IconAtlas>BW_ATLAS_1</IconAtlas>
		<PortraitIndex>7</PortraitIndex>
	</Row>
	</Building>
	<Building_Flavor>
		<Row>
			<BuildingType>BUILDING_CREE_POUND</BuildingType>
			<FlavorType>FLAVOR_MILITARY_TRAINING</FlavorType>
			<Flavor>6</Flavor>
		</Row>
		<Row>
			<BuildingType>BUILDING_CREE_POUND</BuildingType>
			<FlavorType>FLAVOR_MOBILE</FlavorType>
			<Flavor>6</Flavor>
		</Row>
		<Row>
			<BuildingType>BUILDING_CREE_POUND</BuildingType>
			<FlavorType>FLAVOR_PRODUCTION</FlavorType>
			<Flavor>25</Flavor>
		</Row>
		<Row>
			<BuildingType>BUILDING_CREE_POUND</BuildingType>
			<FlavorType>FLAVOR_CULTURE</FlavorType>
			<Flavor>18</Flavor>
		</Row>
	</Building_Flavor>
	<Building_LocalResourceOrs>
		<Row>
			<BuildingType>BUILDING_CREE_POUND</BuildingType>
			<ResourceType>RESOURCE_HORSE</ResourceType>
		</Row>
		<Row>
			<BuildingType>BUILDING_CREE_POUND</BuildingType>
			<ResourceType>RESOURCE_SHEEP</ResourceType>
		</Row>
		<Row>
			<BuildingType>BUILDING_CREE_POUND</BuildingType>
			<ResourceType>RESOURCE_COW</ResourceType>
		</Row>
	</Building_LocalResourceOrs>
	<Building_ResourceCultureChanges>
		<Row>
			<BuildingType>BUILDING_CREE_POUND</BuildingType>
			<ResourceType>RESOURCE_HORSE</ResourceType>
			<CultureChange>1</CultureChange>
		</Row>
		<Row>
			<BuildingType>BUILDING_CREE_POUND</BuildingType>
			<ResourceType>RESOURCE_SHEEP</ResourceType>
			<CultureChange>1</CultureChange>
		</Row>
		<Row>
			<BuildingType>BUILDING_CREE_POUND</BuildingType>
			<ResourceType>RESOURCE_COW</ResourceType>
			<CultureChange>1</CultureChange>
		</Row>
	</Building_ResourceCultureChanges>
	<Building_UnitCombatProductionModifiers>
		<Row>
			<BuildingType>BUILDING_CREE_POUND</BuildingType>
			<UnitCombatType>UNITCOMBAT_MOUNTED</UnitCombatType>
			<Modifier>15</Modifier>
		</Row>
	</Building_UnitCombatProductionModifiers>
	<Building_ResourceYieldChanges>
		<Row>
			<BuildingType>BUILDING_CREE_POUND</BuildingType>
			<ResourceType>RESOURCE_HORSE</ResourceType>
			<YieldType>YIELD_PRODUCTION</YieldType>
			<Yield>1</Yield>
		</Row>
		<Row>
			<BuildingType>BUILDING_CREE_POUND</BuildingType>
			<ResourceType>RESOURCE_COW</ResourceType>
			<YieldType>YIELD_PRODUCTION</YieldType>
			<Yield>1</Yield>
		</Row>
		<Row>
			<BuildingType>BUILDING_CREE_POUND</BuildingType>
			<ResourceType>RESOURCE_SHEEP</ResourceType>
			<YieldType>YIELD_PRODUCTION</YieldType>
			<Yield>1</Yield>
		</Row>
	</Building_ResourceYieldChanges>
</GameData>
 
A quick glance shows you misspelled CREE as CREEE for your unit replacement in the civilizations file.
 
Well that's embarrassing. Unfortunately I'm still having a problem with the unique building. I looked into that some more and there's no building in the stable slot where the unique building should be. It's also not in the in-game civolopedia.
 
I think the table name is <Buildings> not <Building>. Let me double check.

Yeeep, that's the problem. Just add an s at the end of Building and your file should work.

Remember, one spelling error in the table/column names will corrupt an entire file.

It's also "Building_Flavors", not "Building_Flavor".
 
Well dang, thank you very much.
 
Back
Top Bottom