Unique Building not showing up in game

timbo357

Chieftain
Joined
Sep 23, 2016
Messages
2
Hello. I am trying to edit the already existing Egyptian civ to add an additional unique building which replaces the monument with an obelisk. When I load my mod into the game the monument is not available to build but the obelisk isn't either. I have searched the forums for a solution but have come up empty handed and I cant find anything wrong with my code, perhaps I need a fresh set of eyes to look at it. I will put all of my code below. Any help would be appreciated.

Spoiler :

<GameData>

<Buildings>
<Row>
<Type>BUILDING_OBELISK</Type>
<BuildingClass>BUILDINGCLASS_MONUMENT</BuildingClass>
<FreeStartEra>ERA_MEDIEVAL</FreeStartEra>
<Cost>40</Cost>
<GoldMaintenance>1</GoldMaintenance>
<Help>TXT_KEY_BUILDING_OBELISK_STRATEGY</Help>
<Description>TXT_KEY_BUILDING_OBELISK_DESC</Description>
<Civilopedia>TXT_KEY_BUILDING_OBELISK_PEDIA</Civilopedia>
<Strategy>TXT_KEY_BUILDING_OBELISK_STRATEGY</Strategy>
<ArtDefineTag>MONUMENT</ArtDefineTag>
<MinAreaSize>-1</MinAreaSize>
<Culture>2</Culture>
<HurryCostModifier>40</HurryCostModifier>
<IconAtlas>BW_ATLAS_1</IconAtlas>
<NeverCapture>true</NeverCapture>
<PortraitIndex>21</PortraitIndex>
</Row>
</Buildings>
<Building_YieldChanges>
<Row>
<BuildingType>BUILDING_OBELISK</BuildingType>
<Yield_Type>YIELD_CULTURE</Yield_Type>
<Yield>2</Yield>
</Row>
<Row>
<BuildingType>BUILDING_OBELISK</BuildingType>
<Yield_Type>YIELD_SCIENCE</Yield_Type>
<Yield>2</Yield>
</Row>
<Row>
<BuildingType>BUILDING_OBELISK</BuildingType>
<Yield_Type>YIELD_PRODUCTION</Yield_Type>
<Yield>1</Yield>
</Row>
<Row>
<BuildingType>BUILDING_OBELISK</BuildingType>
<Yield_Type>YIELD_FAITH</Yield_Type>
<Yield>1</Yield>
</Row>

</Building_YieldChanges>

</GameData>


Spoiler :

<GameData>

<Civilization_BuildingClassOverrides>
<Row>
<CivilizationType>CIVILIZATION_EGYPT</CivilizationType>
<BuildingClassType>BUILDINGCLASS_MONUMENT</BuildingClassType>
<BuildingType>BUILDING_OBELISK</BuildingType>
</Row>
</Civilization_BuildingClassOverrides>

</GameData>


Spoiler :

<GameData>

<Language_en_US>
<Row Tag="TXT_KEY_BUILDING_OBELISK_DESC">
<Text>Obelisk</Text>
</Row>
<Row Tag="TXT_KEY_BUILDING_OBELISK_STRATEGY">
<Text>
Harnessing the power of the Gods, Obelisks provide an early boost to the empire.
</Text>
</Row>
<Row Tag="TXT_KEY_BUILDING_OBELISK_PEDIA">
<Text>
Obelisks were prominent in the architecture of the ancient Egyptians, who placed them in pairs at the entrance of temples. The obelisk symbolized the sun god Ra, and during the brief religious reformation of Akhenaten was said to be a petrified ray of the Aten, the sundisk. It was also thought that the god existed within the structure.
</Text>
</Row>
</Language_en_US>

</GameData>


Moderator Action: Welcome to CivFanatics. Moved to main C&C forum.
 
  1. Code:
    <Culture>2</Culture>
    This only works in table <Buildings> for the Vanilla version of the game. It is invalid for both Gods & Kings and BNW, and causes the game to reject the entire contents of the file where it occurs.
  2. There is no such column within any game-table called Yield_Type. The correct column name is YieldType. This error is also fatal to the entire contents of the file where it occurs.

--------------------------

I also notified the forum mods to ask them to move this thread to the main C&C forum since it is a question thread rather than a tutorial.
 
Top Bottom