In my mod, I've created a couple of new buildings. One is a national wonder and the other if a prereq building for that wonder.
There are no errors in the DB log file. Both buildings show up in the pedia.
However, only the wonder shows up in the tech tree, and the prereq building does not show up in the wonder's pedia entry as a prereq building.
If I give a civ the the Heraldry tech to build, the wonder shows up as buildable even if it does not have the prereq building.... the prereq building, on the other hand, is not buildable even though the proper tech has been acquired.
The two buildings were previously in separate files... I was hoping that combining them might correct the problem. It didn't... the problem with the prereq building (house of Heralds), remains... it does not show up in the wonder pedia nor the tech tree, and is not available to be build even when the tech is acquired.
I hope someone can tell me what I missed. Thanks.
There are no errors in the DB log file. Both buildings show up in the pedia.
However, only the wonder shows up in the tech tree, and the prereq building does not show up in the wonder's pedia entry as a prereq building.
If I give a civ the the Heraldry tech to build, the wonder shows up as buildable even if it does not have the prereq building.... the prereq building, on the other hand, is not buildable even though the proper tech has been acquired.
The two buildings were previously in separate files... I was hoping that combining them might correct the problem. It didn't... the problem with the prereq building (house of Heralds), remains... it does not show up in the wonder pedia nor the tech tree, and is not available to be build even when the tech is acquired.
Code:
<?xml version="1.0" encoding="utf-8"?>
<!-- Created by ModBuddy on 6/14/2012 5:21:51 AM -->
<GameData>
<!-- TODO: Insert table creation example here. -->
<!-- TODO: Insert table data example here.-->
<!-- Enter your Game Data here. -->
<Buildings>
<Row>
<Type>BUILDING_COLLEGE_OF_HERALDS</Type>
<BuildingClass>BUILDINGCLASS_COLLEGE_OF_HERALDS</BuildingClass>
<Cost>125</Cost>
<PrereqTech>TECH_HERALDRY</PrereqTech>
<Help>TXT_KEY_BUILDING_COLLEGE_OF_HERALDS_HELP</Help>
<Description>TXT_KEY_BUILDING_COLLEGE_OF_HERALDS</Description>
<Civilopedia>TXT_KEY_BUILDING_COLLEGE_OF_HERALDS_PEDIA</Civilopedia>
<Strategy>TXT_KEY_BUILDING_COLLEGE_OF_HERALDS_STRATEGY</Strategy>
<GreatPeopleRateModifier>25</GreatPeopleRateModifier>
<ArtDefineTag>ART_DEF_BUILDING_HERMITAGE</ArtDefineTag>
<NukeImmune>true</NukeImmune>
<NumCityCostMod>30</NumCityCostMod>
<HurryCostModifier>-1</HurryCostModifier>
<MinAreaSize>-1</MinAreaSize>
<CultureRateModifier>50</CultureRateModifier>
<NeverCapture>true</NeverCapture>
<IconAtlas>BW_ATLAS_1</IconAtlas>
<PortraitIndex>52</PortraitIndex>
</Row>
</Buildings>
<Building_ClassesNeededInCity>
<Row>
<BuildingType>BUILDING_COLLEGE_OF_HERALDS</BuildingType>
<BuildingClassType>BUILDINGCLASS_HOUSE_OF_HERALDS</BuildingClassType>
</Row>
</Building_ClassesNeededInCity>
<Building_YieldChanges>
<Row>
<BuildingType>BUILDING_COLLEGE_OF_HERALDS</BuildingType>
<YieldType>YIELD_CULTURE</YieldType>
<Yield>5</Yield>
</Row>
</Building_YieldChanges>
<Building_PrereqBuildingClasses>
<Row>
<BuildingType>BUILDING_COLLEGE_OF_HERALDS</BuildingType>
<BuildingClassType>BUILDINGCLASS_HOUSE_OF_HERALDS</BuildingClassType>
<NumBuildingNeeded>-1</NumBuildingNeeded>
</Row>
</Building_PrereqBuildingClasses>
<BuildingClasses>
<Row>
<Type>BUILDINGCLASS_COLLEGE_OF_HERALDS</Type>
<DefaultBuilding>BUILDING_COLLEGE_OF_HERALDS</DefaultBuilding>
<Description>College of Heralds</Description>
<MaxPlayerInstances>1</MaxPlayerInstances>
</Row>
</BuildingClasses>
<Building_Flavors>
<Row>
<BuildingType>BUILDING_COLLEGE_OF_HERALDS</BuildingType>
<FlavorType>FLAVOR_CULTURE</FlavorType>
<Flavor>50</Flavor>
</Row>
<Row>
<BuildingType>BUILDING_COLLEGE_OF_HERALDS</BuildingType>
<FlavorType>FLAVOR_GREAT_PEOPLE</FlavorType>
<Flavor>40</Flavor>
</Row>
<Row>
<BuildingType>BUILDING_COLLEGE_OF_HERALDS</BuildingType>
<FlavorType>FLAVOR_WONDER</FlavorType>
<Flavor>20</Flavor>
</Row>
</Building_Flavors>
<Language_en_US>
<Row Tag="TXT_KEY_BUILDING_COLLEGE_OF_HERALDS">
<Text>College of Heralds</Text>
</Row>
<Row Tag="TXT_KEY_BUILDING_COLLEGE_OF_HERALDS_HELP">
<Text>Pending</Text>
</Row>
<Row Tag="TXT_KEY_BUILDING_COLLEGE_OF_HERALDS_PEDIA">
<Text>Pending</Text>
</Row>
<Row Tag="TXT_KEY_BUILDING_COLLEGE_OF_HERALDS_STRATEGY">
<Text>This National Wonder increases the cultural output of the city in which it is constructed by 50%. Great person generation is increased 25%. It cannot be constructed unless the civilization has a House of Heralds built in all of its cities.</Text>
</Row>
</Language_en_US>
<Buildings>
<Row>
<Type>BUILDING_HOUSE_OF_HERALDS</Type>
<BuildingClass>BUILDINGCLASS_HOUSE_OF_HERALDS</BuildingClass>
<Cost>120</Cost>
<GoldMaintenance>1</GoldMaintenance>
<PrereqTech>TECH_HERALDRY</PrereqTech>
<Description>TXT_KEY_BUILDING_HOUSE_OF_HERALDS</Description>
<Civilopedia>TXT_KEY_CIV5_BUILDINGS_HOUSE_OF_HERALDS_TEXT</Civilopedia>
<Strategy>TXT_KEY_BUILDING_HOUSE_OF_HERALDS_STRATEGY</Strategy>
<GreatPeopleRateModifier>25</GreatPeopleRateModifier>
<ArtDefineTag>OPERA_HOUSE</ArtDefineTag>
<MinAreaSize>-1</MinAreaSize>
<HurryCostModifier>10</HurryCostModifier>
<IconAtlas>BW_ATLAS_1</IconAtlas>
<NeverCapture>true</NeverCapture>
<PortraitIndex>49</PortraitIndex>
</Row>
</Buildings>
<Building_ClassesNeededInCity>
<Row>
<BuildingType>BUILDING_HOUSE_OF_HERALDS</BuildingType>
<BuildingClassType>BUILDINGCLASS_LIBRARY</BuildingClassType>
</Row>
</Building_ClassesNeededInCity>
<Building_Flavors>
<Row>
<BuildingType>BUILDING_HOUSE_OF_HERALDS</BuildingType>
<FlavorType>FLAVOR_CULTURE</FlavorType>
<Flavor>35</Flavor>
</Row>
<Row>
<BuildingType>BUILDING_HOUSE_OF_HERALDS</BuildingType>
<FlavorType>FLAVOR_GREAT_PEOPLE</FlavorType>
<Flavor>40</Flavor>
</Row>
</Building_Flavors>
<Building_YieldChanges>
<Row>
<BuildingType>BUILDING_HOUSE_OF_HERALDS</BuildingType>
<YieldType>YIELD_CULTURE</YieldType>
<Yield>3</Yield>
</Row>
</Building_YieldChanges>
<BuildingClasses>
<Row>
<Type>BUILDINGCLASS_HOUSE_OF_HERALDS</Type>
<DefaultBuilding>>BUILDING_HOUSE_OF_HERALDS</DefaultBuilding>
<Description>TXT_KEY_BUILDING_HOUSE_OF_HERALDS</Description>
</Row>
</BuildingClasses>
<Language_en_US>
<Row Tag="TXT_KEY_BUILDING_HOUSE_OF_HERALDS">
<Text>House of Heralds</Text>
</Row>
<Row Tag="TXT_KEY_CIV5_BUILDINGS_HOUSE_OF_HERALDS_TEXT">
<Text>Pending</Text>
</Row>
<Row Tag="TXT_KEY_BUILDING_HOUSE_OF_HERALDS_STRATEGY">
<Text>+25% Great Person generation.</Text>
</Row>
</Language_en_US>
</GameData>