Why won't my unique building show up?

NSM

Chieftain
Joined
Jul 16, 2014
Messages
41
I have doublechecked and everything, but for some reason only my uu shows up and not my ub when I load up my new civ. Here is my code, I don't know what I did wrong. Please help!

Code:
<GameData>
	<Buildings>
		<Row>
			<Type>BUILDING_TEMPLE_OF_TIME</Type>
			<BuildingClass>BUILDINGCLASS_TEMPLE</BuildingClass>
			<Help>TXT_KEY_BUILDING_TEMPLE_OF_TIME_HELP</Help>
			<Description>TXT_KEY_BUILDING_TEMPLE_OF_TIME</Description>
			<Civilopedia>TXT_KEY_CIV5_BUILDINGS_TEMPLE_OF_TIME_TEXT</Civilopedia>
			<Strategy>TXT_KEY_BUILDING_TEMPLE_OF_TIME_STRATEGY</Strategy>
			<FreeStartEra>ERA_INDUSTRIAL</FreeStartEra>
			<Cost>100</Cost>
			<GoldMaintenance>2</GoldMaintenance>
			<PrereqTech>TECH_PHILOSOPHY</PrereqTech>
			<ArtDefineTag>TEMPLE</ArtDefineTag>
			<SpecialistType>SPECIALIST_ARTIST</SpecialistType>
			<SpecialistCount>1</SpecialistCount>
			<MinAreaSize>-1</MinAreaSize>
			<HurryCostModifier>25</HurryCostModifier>
			<IconAtlas>TOT_ICON_ATLAS</IconAtlas>
			<NeverCapture>true</NeverCapture>
			<PortraitIndex>0</PortraitIndex>
		</Row>
	</Buildings>
	<Building_YieldChanges>
		<Row>
			<Building>BUILDING_TEMPLE_OF_TIME</Building>
			<YieldType>YIELD_FAITH</YieldType>
			<Yield>5</Yield>
		</Row>
		<Row>
			<Building>BUILDING_TEMPLE_OF_TIME</Building>
			<YieldType>YIELD_CULTURE</YieldType>
			<Yield>3</Yield>
		</Row>
	</Building_YieldChanges>
	<Building_Flavors>
		<Row>
			<BuildingType>BUILDING_TEMPLE_OF_TIME</BuildingType>
			<FlavorType>FLAVOR_CULTURE</FlavorType>
			<Flavor>30</Flavor>
		</Row>
		<Row>
			<BuildingType>BUILDING_TEMPLE_OF_TIME</BuildingType>
			<FlavorType>FLAVOR_RELIGION</FlavorType>
			<Flavor>50</Flavor>
		</Row>
	</Building_Flavors>
	<Civilization_BuildingClassOverrides>
		<Row>
			<CivilizationType>CIVILIZATION_HYLIAN</CivilizationType>
			<BuildingClassType>BUILDINGCLASS_TEMPLE</BuildingClassType>
			<BuildingType>BUILDING_TEMPLE_OF_TIME</BuildingType>
		</Row>
	</Civilization_BuildingClassOverrides>
	<Building_ClassesNeededInCity>
		<Row>
			<BuildingType>BUILDING_TEMPLE_OF_TIME</BuildingType>
			<BuildingClassType>BUILDINGCLASS_SHRINE</BuildingClassType>
		</Row>
	</Building_ClassesNeededInCity>
</GameData>
 
Logs! Logs are your best friends (along with several other things, including but not limited to Copy and Paste and Wikipedia); Don't forget to check them often!

And attachments are also pretty good too!

Merely scanning through I see nothing objectionable.
 
Code:
[13936.754] columns StrategicViewType, TileType are not unique
[13936.754] While executing - 'INSERT INTO ArtDefine_StrategicView(StrategicViewType, TileType, Asset) VALUES(?,?,?)'
[13939.126] no such table: ContentPackage.LocalizedText
[13939.126] no such table: ContentPackage.LocalizedText
[13939.126] no such table: ContentPackage.LocalizedText
[13940.389] no such table: ContentPackage.LocalizedText
[13945.693] columns StrategicViewType, TileType are not unique
[13945.693] While executing - 'INSERT INTO ArtDefine_StrategicView(StrategicViewType, TileType, Asset) VALUES(?,?,?)'
[13946.848] no such table: ContentPackage.LocalizedText
[13946.848] no such table: ContentPackage.LocalizedText
[13946.863] no such table: ContentPackage.LocalizedText
[13954.429] Validating Foreign Key Constraints...
[13954.445] Invalid Reference on ArtDefine_Landmarks.LayoutHandler - "SPECIAL" does not exist in ArtDefine_LandmarkTypes
[13954.445] Invalid Reference on ArtDefine_Landmarks.LayoutHandler - "SPECIAL" does not exist in ArtDefine_LandmarkTypes
[13954.445] Invalid Reference on ArtDefine_Landmarks.LayoutHandler - "SPECIAL" does not exist in ArtDefine_LandmarkTypes
[13954.445] Invalid Reference on ArtDefine_Landmarks.LayoutHandler - "SPECIAL" does not exist in ArtDefine_LandmarkTypes
[13954.445] Invalid Reference on ArtDefine_Landmarks.LayoutHandler - "SPECIAL" does not exist in ArtDefine_LandmarkTypes
[13954.445] Invalid Reference on ArtDefine_Landmarks.LayoutHandler - "SPECIAL" does not exist in ArtDefine_LandmarkTypes
[13954.445] Invalid Reference on ArtDefine_Landmarks.LayoutHandler - "SPECIAL" does not exist in ArtDefine_LandmarkTypes
[13954.445] Invalid Reference on ArtDefine_Landmarks.LayoutHandler - "SPECIAL" does not exist in ArtDefine_LandmarkTypes
[13954.445] Invalid Reference on ArtDefine_Landmarks.LayoutHandler - "SPECIAL" does not exist in ArtDefine_LandmarkTypes
[13956.504] Failure to check references for foreign key Units(PolicyType).
[13956.504] no such table: PolicyTypes
[13956.504] Failed Validation.
[13957.097] 
-- SQLite Memory Statistics --
Memory Usage:
		[Cur]		[Max]
Malloc:		6397184		76063800
PageCache:	6		12
LookAside:	0		0
Scratch:	0		1

Static Buffer Overflows:
		[TooLarge]	[NoSpace]
PageCache:	5982312		63197064
Scratch:	0		0

Largest Allocations:
Malloc:		262144
PageCache:	1172
Scratch:	6640

Prepared Statements:
Current:		6
------------------------------
[13957.144] Validating Foreign Key Constraints...
[13957.144] Invalid Reference on ArtDefine_Landmarks.LayoutHandler - "SPECIAL" does not exist in ArtDefine_LandmarkTypes
[13957.144] Invalid Reference on ArtDefine_Landmarks.LayoutHandler - "SPECIAL" does not exist in ArtDefine_LandmarkTypes
[13957.144] Invalid Reference on ArtDefine_Landmarks.LayoutHandler - "SPECIAL" does not exist in ArtDefine_LandmarkTypes
[13957.144] Invalid Reference on ArtDefine_Landmarks.LayoutHandler - "SPECIAL" does not exist in ArtDefine_LandmarkTypes
[13957.144] Invalid Reference on ArtDefine_Landmarks.LayoutHandler - "SPECIAL" does not exist in ArtDefine_LandmarkTypes
[13957.144] Invalid Reference on ArtDefine_Landmarks.LayoutHandler - "SPECIAL" does not exist in ArtDefine_LandmarkTypes
[13957.144] Invalid Reference on ArtDefine_Landmarks.LayoutHandler - "SPECIAL" does not exist in ArtDefine_LandmarkTypes
[13957.144] Invalid Reference on ArtDefine_Landmarks.LayoutHandler - "SPECIAL" does not exist in ArtDefine_LandmarkTypes
[13957.144] Invalid Reference on ArtDefine_Landmarks.LayoutHandler - "SPECIAL" does not exist in ArtDefine_LandmarkTypes
[13959.219] Failure to check references for foreign key Units(PolicyType).
[13959.219] no such table: PolicyTypes
[13959.219] Failed Validation.
[13959.811] 
-- SQLite Memory Statistics --
Memory Usage:
		[Cur]		[Max]
Malloc:		6398360		76063800
PageCache:	6		12
LookAside:	0		0
Scratch:	0		1

Static Buffer Overflows:
		[TooLarge]	[NoSpace]
PageCache:	5983488		63197064
Scratch:	0		0

Largest Allocations:
Malloc:		262144
PageCache:	1172
Scratch:	6640

Prepared Statements:
Current:		6
------------------------------
[13982.229] table Building_YieldChanges has no column named Building
[13982.229] [U][COLOR="Red"][B]In Query - insert into Building_YieldChanges('Building', 'YieldType', 'Yield') values (?, ?, ?);[/B][/COLOR][/U]
[13982.229] In XMLSerializer while updating table Building_YieldChanges from file XML/CIV5Buildings.xml.
[13983.352] Validating Foreign Key Constraints...
[13983.352] Invalid Reference on ArtDefine_Landmarks.LayoutHandler - "SPECIAL" does not exist in ArtDefine_LandmarkTypes
[13983.352] Invalid Reference on ArtDefine_Landmarks.LayoutHandler - "SPECIAL" does not exist in ArtDefine_LandmarkTypes
[13983.352] Invalid Reference on ArtDefine_Landmarks.LayoutHandler - "SPECIAL" does not exist in ArtDefine_LandmarkTypes
[13983.352] Invalid Reference on ArtDefine_Landmarks.LayoutHandler - "SPECIAL" does not exist in ArtDefine_LandmarkTypes
[13983.352] Invalid Reference on ArtDefine_Landmarks.LayoutHandler - "SPECIAL" does not exist in ArtDefine_LandmarkTypes
[13983.352] Invalid Reference on ArtDefine_Landmarks.LayoutHandler - "SPECIAL" does not exist in ArtDefine_LandmarkTypes
[13983.352] Invalid Reference on ArtDefine_Landmarks.LayoutHandler - "SPECIAL" does not exist in ArtDefine_LandmarkTypes
[13983.352] Invalid Reference on ArtDefine_Landmarks.LayoutHandler - "SPECIAL" does not exist in ArtDefine_LandmarkTypes
[13983.352] Invalid Reference on ArtDefine_Landmarks.LayoutHandler - "SPECIAL" does not exist in ArtDefine_LandmarkTypes
[13983.664] Invalid Reference on Civilizations.AlphaIconAtlas - "CIV_ALPHA_ATLAS_LEGENDS" does not exist in IconTextureAtlases
[13985.458] Failure to check references for foreign key Units(PolicyType).
[13985.458] no such table: PolicyTypes
[13985.458] Failed Validation.
[13986.051] 
-- SQLite Memory Statistics --
Memory Usage:
		[Cur]		[Max]
Malloc:		6419296		76063800
PageCache:	7		13
LookAside:	0		0
Scratch:	0		1

Static Buffer Overflows:
		[TooLarge]	[NoSpace]
PageCache:	5999952		63197064
Scratch:	0		0

Largest Allocations:
Malloc:		262144
PageCache:	1172
Scratch:	6640

Prepared Statements:
Current:		8
------------------------------
[14009.529] columns StrategicViewType, TileType are not unique
[14009.529] While executing - 'INSERT INTO ArtDefine_StrategicView(StrategicViewType, TileType, Asset) VALUES(?,?,?)'
[14010.714] no such table: ContentPackage.LocalizedText
[14010.714] no such table: ContentPackage.LocalizedText
[14010.714] no such table: ContentPackage.LocalizedText
[14018.998] Validating Foreign Key Constraints...
[14018.998] Invalid Reference on ArtDefine_Landmarks.LayoutHandler - "SPECIAL" does not exist in ArtDefine_LandmarkTypes
[14018.998] Invalid Reference on ArtDefine_Landmarks.LayoutHandler - "SPECIAL" does not exist in ArtDefine_LandmarkTypes
[14018.998] Invalid Reference on ArtDefine_Landmarks.LayoutHandler - "SPECIAL" does not exist in ArtDefine_LandmarkTypes
[14018.998] Invalid Reference on ArtDefine_Landmarks.LayoutHandler - "SPECIAL" does not exist in ArtDefine_LandmarkTypes
[14018.998] Invalid Reference on ArtDefine_Landmarks.LayoutHandler - "SPECIAL" does not exist in ArtDefine_LandmarkTypes
[14018.998] Invalid Reference on ArtDefine_Landmarks.LayoutHandler - "SPECIAL" does not exist in ArtDefine_LandmarkTypes
[14018.998] Invalid Reference on ArtDefine_Landmarks.LayoutHandler - "SPECIAL" does not exist in ArtDefine_LandmarkTypes
[14018.998] Invalid Reference on ArtDefine_Landmarks.LayoutHandler - "SPECIAL" does not exist in ArtDefine_LandmarkTypes
[14018.998] Invalid Reference on ArtDefine_Landmarks.LayoutHandler - "SPECIAL" does not exist in ArtDefine_LandmarkTypes
[14021.089] Failure to check references for foreign key Units(PolicyType).
[14021.089] no such table: PolicyTypes
[14021.089] Failed Validation.
[14021.681] 
-- SQLite Memory Statistics --
Memory Usage:
		[Cur]		[Max]
Malloc:		6407496		76063800
PageCache:	6		13
LookAside:	0		0
Scratch:	0		1

Static Buffer Overflows:
		[TooLarge]	[NoSpace]
PageCache:	5988192		63202944
Scratch:	0		0

Largest Allocations:
Malloc:		262144
PageCache:	1172
Scratch:	6640

Prepared Statements:
Current:		8
------------------------------
I don't really know what much of this means, but I bolded something that might be the problem? I don't really know.
 
Code:
[286459.000] table [COLOR="Blue"]Building_YieldChanges[/COLOR] has no column named [COLOR="blue"]Building[/COLOR]
[286459.000] In Query - insert into Building_YieldChanges('Building', 'YieldType', 'Yield') values (?, ?, ?);
[286459.000] In XMLSerializer while updating table Building_YieldChanges from file Game Rules1.xml.
I inserted your code into a building tester mod I haved. Obvious looking at the code once it become obvious.

Code:
	<Building_YieldChanges>
		<Row>
			[COLOR="Red"]<Building>[/COLOR]BUILDING_TEMPLE_OF_TIME[COLOR="red"]</Building>[/COLOR]
			<YieldType>YIELD_FAITH</YieldType>
			<Yield>5</Yield>
		</Row>
		<Row>
			[COLOR="red"]<Building>[/COLOR]BUILDING_TEMPLE_OF_TIME[COLOR="red"]</Building>[/COLOR]
			<YieldType>YIELD_CULTURE</YieldType>
			<Yield>3</Yield>
		</Row>
	</Building_YieldChanges>
needs to be
Code:
	<Building_YieldChanges>
		<Row>
			[COLOR="Blue"]<BuildingType>[/COLOR]BUILDING_TEMPLE_OF_TIME[COLOR="blue"]</BuildingType>[/COLOR]
			<YieldType>YIELD_FAITH</YieldType>
			<Yield>5</Yield>
		</Row>
		<Row>
			[COLOR="blue"]<BuildingType>[/COLOR]BUILDING_TEMPLE_OF_TIME[COLOR="blue"]</BuildingType>[/COLOR]
			<YieldType>YIELD_CULTURE</YieldType>
			<Yield>3</Yield>
		</Row>
	</Building_YieldChanges>

(edit) Just like as you already have in the <Building_Flavors> table
 
I mean this part of your code:
Code:
	<Building_YieldChanges>
		<Row>
			<Building>BUILDING_TEMPLE_OF_TIME</Building>
			<YieldType>YIELD_FAITH</YieldType>
			<Yield>5</Yield>
		</Row>
		<Row>
			<Building>BUILDING_TEMPLE_OF_TIME</Building>
			<YieldType>YIELD_CULTURE</YieldType>
			<Yield>3</Yield>
		</Row>
	</Building_YieldChanges>

You should use <BuildingType> instead of <Building> here.

Edit: Ninja'd :)
 
Top Bottom