If I were not to add a 22px .dds icon file when adding a new resource icon, would the game crash when starting a new game, would it crash the first time it required the icon, or would it just show some placeholder icon? Or something else?
BuildOnFrontier and BuildInLine in <Improvements>1. How is the IMPROVEMENT_GREAT_WALL requirement (to be built on the territory border) get called in the game? I had a quick look the other day and couldn't see an appropriate Requirement.
[3798381.900] [Gameplay] ERROR: UNIQUE constraint failed: TypeTags.Type, TypeTags.Tag
[3798381.900] [Gameplay]: While executing - 'UPDATE TypeTags SET "Tag" = ? WHERE "Type" = ?;'
[3798381.900] [Gameplay] ERROR: Database::XMLSerializer (ZaabSpicey_UnitGameplay.xml): There was an error executing the update statement! See Database.log for details.
[3798381.900] [Gameplay] ERROR: UNIQUE constraint failed: TypeTags.Type, TypeTags.Tag
[3798381.900] [Gameplay]: In XMLSerializer while updating table TypeTags from file ZaabSpicey_UnitGameplay.xml.
[3798381.918] [Gameplay] ERROR: table Modifiers has no column named Name
[3798381.918] [Gameplay]: In Query - insert into Modifiers('ModifierId', 'Name', 'Value') values (?, ?, ?);
[3798381.918] [Gameplay]: In XMLSerializer while updating table Modifiers from file ZaabSpicey_UnitPromotions.xml.
[3798381.933] [Localization] ERROR: Database::XMLSerializer (ZaabSpicey_PromotionsText.xml): 'Row' or 'Delete' expected, got 'Text'.
[3798381.933] [Localization]: In XMLSerializer while updating table BaseGameText from file ZaabSpicey_PromotionsText.xml.
[3798382.004] [Localization] ERROR: NOT NULL constraint failed: LocalizedText.Language
[3798382.004] [Localization]: While executing - 'insert into LocalizedText('Tag', 'Text') values (?, ?);'
[3798382.004] [Localization]: In XMLSerializer while inserting row into table insert into LocalizedText('Tag', 'Text') with values (LOC_UNIT_BATTLESHIP_DESCRIPTION, Early Atomic era Linear Battleship unit. Provides cover from air and nuclear attacks up to 1 tile away., ).
[3798382.004] [Localization]: In XMLSerializer while updating table LocalizedText from file ZaabSpicey_UnitText.xml.
[3798382.004] [Localization] ERROR: NOT NULL constraint failed: LocalizedText.Language
[3798384.409] [Gameplay]: Validating Foreign Key Constraints...
[3798384.448] [Gameplay]: Passed Validation.
<Update><Where Type="UNIT_BATTLESHIP"/> <Set Tag="CLASS_BATTLESHIP"/></Update>
<Row Type="UNIT_BATTLESHIP" Tag="CLASS_NAVAL_RANGED"/>
<Row Type="UNIT_BATTLESHIP" Tag="CLASS_ANTI_AIR"/>
[3798381.900] [Gameplay] ERROR: UNIQUE constraint failed: TypeTags.Type, TypeTags.Tag
[3798381.900] [Gameplay]: While executing - 'UPDATE TypeTags SET "Tag" = ? WHERE "Type" = ?;'
[3798381.900] [Gameplay] ERROR: Database::XMLSerializer (ZaabSpicey_UnitGameplay.xml): There was an error executing the update statement! See Database.log for details.
[3798381.900] [Gameplay] ERROR: UNIQUE constraint failed: TypeTags.Type, TypeTags.Tag
[3798381.900] [Gameplay]: In XMLSerializer while updating table TypeTags from file ZaabSpicey_UnitGameplay.xml.
[3798381.918] [Gameplay] ERROR: table Modifiers has no column named Name
[3798381.918] [Gameplay]: In Query - insert into Modifiers('ModifierId', 'Name', 'Value') values (?, ?, ?);
[3798381.918] [Gameplay]: In XMLSerializer while updating table Modifiers from file ZaabSpicey_UnitPromotions.xml.
[3798381.933] [Localization] ERROR: Database::XMLSerializer (ZaabSpicey_PromotionsText.xml): 'Row' or 'Delete' expected, got 'Text'.
[3798381.933] [Localization]: In XMLSerializer while updating table BaseGameText from file ZaabSpicey_PromotionsText.xml.
<!-- Battleship -->
<Row Tag="LOC_PROMOTION_CLASS_BATTLESHIP_NAME" /><Text>Battleship</Text>
<Row Tag="LOC_PROMOTION_SENIOR_CAPTAIN_NAME" /><Text>Senior Captain</Text>
...etc....
<Row Tag="LOC_BUILDING_NATIONAL_MUSEUM_LRS_NAME" Language="en_US">
<Text>National Museum</Text>
</Row>
[3798382.004] [Localization] ERROR: NOT NULL constraint failed: LocalizedText.Language
[3798382.004] [Localization]: While executing - 'insert into LocalizedText('Tag', 'Text') values (?, ?);'
[3798382.004] [Localization]: In XMLSerializer while inserting row into table insert into LocalizedText('Tag', 'Text') with values (LOC_UNIT_BATTLESHIP_DESCRIPTION, Early Atomic era Linear Battleship unit. Provides cover from air and nuclear attacks up to 1 tile away., ).
[3798382.004] [Localization]: In XMLSerializer while updating table LocalizedText from file ZaabSpicey_UnitText.xml.
<!--Atomic Era Units-->
<Delete Tag="LOC_UNIT_BATTLESHIP_DESCRIPTION" />
<Row Tag="LOC_UNIT_BATTLESHIP_DESCRIPTION">
<Text>Early Atomic era Linear Battleship unit. Provides cover from air and nuclear attacks up to 1 tile away.</Text>
</Row>
</LocalizedText>
<!--Infantry-->
<Types>
<Row Type="PROMOTION_CLASS_INFANTRY" Kind="KIND_PROMOTION_CLASS"/>
<Row Type="PROMOTION_FORMATION_DRILL" Kind="KIND_PROMOTION"/> <!-- Lvl1 Mid, Combines: Battlecry, Tortoise, Echelon,and Thrust-->
</Types>
<UnitPromotionClasses>
<Row PromotionClassType="PROMOTION_CLASS_INFANTRY" Name="LOC_PROMOTION_CLASS_INFANTRY_NAME"/>
</UnitPromotionClasses>
<UnitPromotions>
<!--Infantry-->
<Row UnitPromotionType="PROMOTION_FORMATION_DRILL" Name="LOC_FORMATION_DRILL_NAME" Description="LOC_PROMOTION_FORMATION_DRILL_DESCRIPTION" Level="1" Specialization="" Column="2" PromotionClass="PROMOTION_CLASS_INFANTRY"/>
<Row UnitPromotionType="PROMOTION_COMMANDO" Name="LOC_PROMOTION_COMMANDO_NAME" Description="LOC_PROMOTION_COMMANDO_DESCRIPTION" Level="2" Column="1" Specialization="" PromotionClass="PROMOTION_CLASS_INFANTRY"/>
<Row UnitPromotionType="PROMOTION_URBAN_WARFARE" Name="LOC_PROMOTION_URBAN_WARFARE_NAME" Description="LOC_PROMOTION_URBAN_WARFARE_DESCRIPTION" Level="3" Column="1" Specialization="" PromotionClass="PROMOTION_CLASS_INFANTRY"/>
<Row UnitPromotionType="PROMOTION_ELITE_GUARD" Name="LOC_PROMOTION_ELITE_GUARD_NAME" Description="LOC_PROMOTION_ELITE_GUARD_DESCRIPTION" Level="4" Column="1" Specialization="" PromotionClass="PROMOTION_CLASS_INFANTRY"/>
<Row UnitPromotionType="PROMOTION_SQUARE" Name="LOC_PROMOTION_SQUARE_NAME" Description="LOC_PROMOTION_SQUARE_DESCRIPTION" Level="2" Specialization="" Column="3" PromotionClass="PROMOTION_CLASS_INFANTRY"/>
<Row UnitPromotionType="PROMOTION_CHOKE_POINTS" Name="LOC_PROMOTION_CHOKE_POINTS_NAME" Description="LOC_PROMOTION_CHOKE_POINTS_DESCRIPTION" Level="3" Specialization="" Column="3" PromotionClass="PROMOTION_CLASS_INFANTRY"/>
<Row UnitPromotionType="PROMOTION_HOLD_THE_LINE" Name="LOC_PROMOTION_HOLD_THE_LINE_NAME" Description="LOC_PROMOTION_HOLD_THE_LINE_DESCRIPTION" Level="4" Specialization="" Column="3" PromotionClass="PROMOTION_CLASS_INFANTRY"/>
</UnitPromotions>
You can open any of the game's original XML files with a text editor such as Notepad or Notepad++How do I access the XML file (?) to edit city names? When playing a game, I just want to be able to pronounce the city names and/or otherwise have names I would like to see in my game.
Within that folder is a sub-folder called "en_US" where the various files for English-Language text is stored. File "CityNames_Text.xml" contains the ingame text for city-names. Just be forewarned thatC:\Program Files (x86)\Steam\steamapps\common\Sid Meier's Civilization VI\Base\Assets\Text
C:\Program Files (x86)\Steam\steamapps\common\Sid Meier's Civilization VI\DLC\Expansion1\Text
C:\Program Files (x86)\Steam\steamapps\common\Sid Meier's Civilization VI\DLC\Expansion2\Text
So far as I know, no. At least not seamlessly or with complete success.Is there a mod that adds new route types?
_____________Additional Civ6 Databases
Civilization 6 also is structured to make use of a couple of additional databases for ancillary information
such as language text and icon definitions.
Can the Different Databases "Talk" to Each Other ?
None of the game's databases can share information with any of the others. You cannot therefore
extract information from one database into another. If you are skilled at SQL syntax, for example, you
might find it convenient to extract information from within one of the game's databases into another of
the game's databases, but you cannot. The databases are each their own "sandbox", so you cannot for
example extract the information within the Language database and use it within the main InGame
database, nor can you extract or access information held within the main Frontend database for use
within the InGame database, or vice versa.
2nd: Can I have the main code be in a SQL file and the Icon/Text files in XML? Or do I have to stick to the same for all of them?
The databases do not share this information between them. You cannot for example in a UpdateDatabase file access table <BaseGameText> nor table <LocalizedText> because both these tables are part of the Localization Database and not part of the Gameplay or Configuration databases.If tables from different databases aren't supposed to communicate with one another, how come the line LOC_RESOURCES_BANANAS_NAME from the Resources table located in GameplaySchema retrieves information from the LocalizedText table in the LocalizationDatabaseSchema database?
Clearly I'm misunderstanding this:
These views and triggers are temporary and are used to simplify the XML files used to populate the database.
They are dropped in post processing.
CREATE TRIGGER AddBaseGameText INSTEAD OF INSERT ON BaseGameText
BEGIN
INSERT INTO LocalizedText ('Language', 'Tag', 'Text', 'Gender', 'Plurality') VALUES('en_US', NEW.Tag, NEW.Text, NEW.Gender, NEW.Plurality);
END;
CREATE TABLE LocalizedText( 'Language' TEXT NOT NULL,
'Tag' TEXT NOT NULL,
'Text' TEXT,
'Gender' TEXT,
'Plurality' TEXT,
PRIMARY KEY (Language, Tag));