planetfall
Emperor
I was editing a building xml file but must have put in something wrong. I can't load/start any games with error message
error starting game
one or more mods failed to load content
It was just one xml file that has the datestamp from the start of the error.
[1062115.090] [Localization] ERROR: UNIQUE constraint failed: LocalizedText.Language, LocalizedText.Tag
[1062115.090] [Localization]: While executing - 'insert into BaseGameText('Tag', 'Text') values (?, ?);'
[1062115.090] [Localization]: In XMLSerializer while inserting row into table insert into BaseGameText('Tag', 'Text') with values (LOC_CHALLENGE_11_NAME, Know Your Enemy, ).
[1062115.090] [Localization]: In XMLSerializer while updating table BaseGameText from file CurrentChallenges/04ff51bd-7859-47cf-ba04-a5093a5c8cf0/Text/ChallengeText_en_US.xml.
[1062115.090] [Localization] ERROR: UNIQUE constraint failed: LocalizedText.Language, LocalizedText.Tag
[1062120.440] [Gameplay] ERROR: FOREIGN KEY constraint failed
[1062120.440] [Gameplay] ERROR: FOREIGN KEY constraint failed
[1062120.440] [Gameplay]: Validating Foreign Key Constraints...
[1062120.458] [Gameplay] ERROR: Invalid Reference on Units.UnitType - "UNIT_
_JANISSARY" does not exist in Types
[1062120.459] [Gameplay] ERROR: Invalid Reference on UnitAiInfos.UnitType - "UNIT_SULEIMAN_JANISSARY" does not exist in Units
[1062120.459] [Gameplay] ERROR: Invalid Reference on UnitAiInfos.UnitType - "UNIT_SULEIMAN_JANISSARY" does not exist in Units
[1062120.459] [Gameplay] ERROR: Invalid Reference on UnitAiInfos.UnitType - "UNIT_SULEIMAN_JANISSARY" does not exist in Units
[1062120.459] [Gameplay] ERROR: Invalid Reference on UnitAiInfos.UnitType - "UNIT_SULEIMAN_JANISSARY" does not exist in Units
[1062120.460] [Gameplay] ERROR: Invalid Reference on UnitReplaces.CivUniqueUnitType - "UNIT_SULEIMAN_JANISSARY" does not exist in Units
[1062120.460] [Gameplay] ERROR: Invalid Reference on UnitUpgrades.Unit - "UNIT_SULEIMAN_JANISSARY" does not exist in Units
[1062120.463] [Gameplay] ERROR: Invalid Reference on Units_XP2.UnitType - "UNIT_SULEIMAN_JANISSARY" does not exist in Units
[1062120.463] [Gameplay]: Failed Validation.
I've run searches in programfiles x86 folder for
unit.type
_janissary
Unit_
class_janissary
And cant find any typos. A diff compare of buildings.xml did not show any apparent errors.
Janissary is only in 4 files
Expansion2_UnitAbilities_major.xml 2/26/23
Expansion2_Units_Major.xml 9/28/24
PolandScenario_Barbarians.xml 2/26/23
PolandScenario_Units.xml 2/26/23
Been spinning wheels too long on this one
error starting game
one or more mods failed to load content
It was just one xml file that has the datestamp from the start of the error.
[1062115.090] [Localization] ERROR: UNIQUE constraint failed: LocalizedText.Language, LocalizedText.Tag
[1062115.090] [Localization]: While executing - 'insert into BaseGameText('Tag', 'Text') values (?, ?);'
[1062115.090] [Localization]: In XMLSerializer while inserting row into table insert into BaseGameText('Tag', 'Text') with values (LOC_CHALLENGE_11_NAME, Know Your Enemy, ).
[1062115.090] [Localization]: In XMLSerializer while updating table BaseGameText from file CurrentChallenges/04ff51bd-7859-47cf-ba04-a5093a5c8cf0/Text/ChallengeText_en_US.xml.
[1062115.090] [Localization] ERROR: UNIQUE constraint failed: LocalizedText.Language, LocalizedText.Tag
[1062120.440] [Gameplay] ERROR: FOREIGN KEY constraint failed
[1062120.440] [Gameplay] ERROR: FOREIGN KEY constraint failed
[1062120.440] [Gameplay]: Validating Foreign Key Constraints...
[1062120.458] [Gameplay] ERROR: Invalid Reference on Units.UnitType - "UNIT_
_JANISSARY" does not exist in Types
[1062120.459] [Gameplay] ERROR: Invalid Reference on UnitAiInfos.UnitType - "UNIT_SULEIMAN_JANISSARY" does not exist in Units
[1062120.459] [Gameplay] ERROR: Invalid Reference on UnitAiInfos.UnitType - "UNIT_SULEIMAN_JANISSARY" does not exist in Units
[1062120.459] [Gameplay] ERROR: Invalid Reference on UnitAiInfos.UnitType - "UNIT_SULEIMAN_JANISSARY" does not exist in Units
[1062120.459] [Gameplay] ERROR: Invalid Reference on UnitAiInfos.UnitType - "UNIT_SULEIMAN_JANISSARY" does not exist in Units
[1062120.460] [Gameplay] ERROR: Invalid Reference on UnitReplaces.CivUniqueUnitType - "UNIT_SULEIMAN_JANISSARY" does not exist in Units
[1062120.460] [Gameplay] ERROR: Invalid Reference on UnitUpgrades.Unit - "UNIT_SULEIMAN_JANISSARY" does not exist in Units
[1062120.463] [Gameplay] ERROR: Invalid Reference on Units_XP2.UnitType - "UNIT_SULEIMAN_JANISSARY" does not exist in Units
[1062120.463] [Gameplay]: Failed Validation.
I've run searches in programfiles x86 folder for
unit.type
_janissary
Unit_
class_janissary
And cant find any typos. A diff compare of buildings.xml did not show any apparent errors.
Janissary is only in 4 files
Expansion2_UnitAbilities_major.xml 2/26/23
Expansion2_Units_Major.xml 9/28/24
PolandScenario_Barbarians.xml 2/26/23
PolandScenario_Units.xml 2/26/23
Been spinning wheels too long on this one