isnorden
Amnesiac Modder
My latest modding project has run into a problem with text definitions, according to this Database.log message--
This is the text-definition code that triggered the error--
I've also attached a copy of the complete mod, in case something else I overlooked is behind the errors (though all the messages lately have "blamed" MeadHall.xml). Please let me know what needs fixing!
Code:
[86461.203] constraint failed
[86461.203] While executing - 'insert into Language_en_US('Tag', 'Text') values (?, ?);'
[86461.203] In XMLSerializer while inserting row into table insert into Language_en_US('Tag', 'Text') with values (TXT_KEY_BUILDING_MEAD_HALL, Mead Hall, ).
[86461.203] In XMLSerializer while updating table Language_en_US from file Brewery and Mead Hall/XML/Mead_Hall.xml.
[86461.203] columns Language, Tag are not unique
This is the text-definition code that triggered the error--
Spoiler :
Code:
<Language_en_US>
<Row Tag="TXT_KEY_BUILDING_MEAD_HALL">
<Text>Mead Hall</Text>
</Row>
<Row Tag="TXT_KEY_BUILDING_MEAD_HALL_HELP">
<Text>+10% [ICON_GREAT_PEOPLE] Great People generation in this City; +1 [ICON_CULTURE] Culture per turn. Also grants a flat +2 bonus to [ICON_HAPPINESS_1] Happiness. City must already have a Brewery.</Text>
</Row>
<Row Tag="TXT_KEY_CIV5_BUILDINGS_MEAD_HALL_TEXT">
<Text>The Mead Hall is a unique Danish building which replaces the Colosseum. As its name implies, Norsemen gathered there to share drinks with their friends; but it was also a place to tell war stories, boast about great deeds already done, and promise to do even greater ones.</Text>
</Row>
<Row Tag="TXT_KEY_BUILDING_MEAD_HALL_STRATEGY">
<Text>The Mead Hall is constructed from cheaper material than the Colosseum, so it has no long-term maintenance costs. However, the initial building cost is higher and the prerequisites are stricter because it grants more bonuses. (First, the player must have researched Drama/Poetry--to represent the poetic performances which were common at Norse drinking parties. Second, he must already have a Brewery built in the same city; someone has to supply the drinks.)</Text>
</Row>
</Language_en_US>
I've also attached a copy of the complete mod, in case something else I overlooked is behind the errors (though all the messages lately have "blamed" MeadHall.xml). Please let me know what needs fixing!