1SDANi
The Fading Memory
- Joined
- Oct 27, 2014
- Messages
- 3,072
So I'm working on changing the Monument to look like a different building and making a new monument for various reasons, but I've found my code is not working. After an hour of being stumped, I've decided to come here for help.
My code:
Database.log results:
My code:
Spoiler :
Code:
<?xml version="1.0" encoding="utf-8"?>
<!-- Created by ModBuddy on 7/20/2015 6:04:07 PM -->
<GameData>
<Buildings>
<Update>
<Where Type="BUILDING_MONUMENT"/>
<Set Culture="1" IconAtlas="TECH_ATLAS_1" PortraitIndex="0" Cost="20"/>
</Update>
<Row>
<Type>BUILDING_REAL_MONUMENT</Type>
<BuildingClass>BUILDINGCLASS_MONUMENT</BuildingClass>
<PrereqTech>TECH_POTTERY</PrereqTech>
<FreeStartEra>ERA_MEDIEVAL</FreeStartEra>
<Cost>40</Cost>
<GoldMaintenance>1</GoldMaintenance>
<Help>TXT_KEY_BUILDING_REAL_MONUMENT_STRATEGY</Help>
<Description>TXT_KEY_BUILDING_REAL_MONUMENT_DESC</Description>
<Civilopedia>TXT_KEY_BUILDING_REAL_MONUMENT_PEDIA</Civilopedia>
<Strategy>TXT_KEY_BUILDING_REAL_MONUMENT_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>
<Language_en_US>
<Update>
<Where Tag="TXT_KEY_BUILDING_MONUMENT_PEDIA"/>
<Set Text="A Potter's House is a structure home to the necessities for making Pottery. Staple utilities stored inside of it include paints, clay and a Pit Kiln."/>
</Update>
<Update>
<Where Tag="TXT_KEY_BUILDING_MONUMENT_STRATEGY"/>
<Set Text="The Potter's House increases the [ICON_CULTURE] Culture of a city, speeding the growth of the city's territory and the civilization's acquisition of Social Policies."/>
</Update>
<Update>
<Where Tag="TXT_KEY_BUILDING_MONUMENT_DESC"/>
<Set Text="Potter's House"/>
</Update>
<Row>
<Where Tag="TXT_KEY_BUILDING_REAL_MONUMENT_PEDIA"/>
<Set Text="A monument is a structure built to commemorate an important person, event, deity, or concept. The more important monuments are usually constructed near the center of the city, by the ruler's palace, or near the city's main gates. Monuments come in all shapes and sizes, from the Great Sphinx of Giza, Egypt, to the Statue of Liberty in New York City, USA, to Nelson's Column in London, England. The best of them imbue the city's inhabitants with a great feeling of civic and national pride. "/>
</Row>
<Row>
<Where Tag="TXT_KEY_BUILDING_REAL_MONUMENT_STRATEGY"/>
<Set Text="The Monument increases the [ICON_CULTURE] Culture of a city, speeding the growth of the city's territory and the civilization's acquisition of Social Policies."/>
</Row>
<Row>
<Where Tag="TXT_KEY_BUILDING_REAL_MONUMENT_DESC"/>
<Set Text="Monument"/>
</Row>
</Language_en_US>
</GameData>
Database.log results:
Spoiler :
Code:
[145579.343] no such column: Culture
[145579.343] In Query - UPDATE Buildings SET "Culture" = ?, "IconAtlas" = ?, "PortraitIndex" = ?, "Cost" = ? WHERE "Type" = ?;
[145579.343] Database::XMLSerializer (Potter's House.xml): There was an error executing the update statement! See Database.log for details.
[145579.343] In XMLSerializer while updating table Buildings from file Potter's House.xml.
[145579.343] column Type is not unique
[145579.343] While executing - 'insert into BuildingClasses('Type', 'DefaultBuilding', 'Description') values (?, ?, ?);'