Loading Saved Games leads to "Start Game" crash

ITcore

Warlord
Joined
Dec 25, 2016
Messages
248
Location
127.0.0.1
What happens to the load orders when trying to load a saved game? The game will load with mods fine. Database and Modding logs will be clear (except for YNAMP which has errors regarding two nonexistent files) and the game can be played. Then I save the game and attempt to load the save and it crashes to the main menu. Taking a peek at the logs again and the game looks like it had a seizure. My database log looks like this now:


Spoiler Database Log :

Code:
[4256412.087] [Localization]: Validating Foreign Key Constraints...
[4256412.088] [Localization]: Passed Validation.
[4256412.097] [Configuration]: Validating Foreign Key Constraints...
[4256412.097] [Configuration]: Passed Validation.
[4256423.611] [FullTextSearch]: Initializing FullTextSearch
[4256425.419] [Gameplay]: Validating Foreign Key Constraints...
[4256425.435] [Gameplay]: Passed Validation.
[4256427.124] [Configuration]: Validating Foreign Key Constraints...
[4256427.125] [Configuration]: Passed Validation.
[4256430.474] [FullTextSearch]: FTS - Creating Context
[4256434.116] [Configuration]: Validating Foreign Key Constraints...
[4256434.116] [Configuration]: Passed Validation.
[4256436.562] [Gameplay]: Validating Foreign Key Constraints...
[4256436.583] [Gameplay]: Passed Validation.
[4256446.809] [FullTextSearch]: FTS - Creating Context
[4256450.662] [FullTextSearch]: FTS - Creating Context
[4256455.647] [FullTextSearch]: FTS - Creating Context
[4256485.951] [FullTextSearch]: FTS - Creating Context
[4256486.549] [Configuration]: Validating Foreign Key Constraints...
[4256486.550] [Configuration]: Passed Validation.
[4256506.846] [Configuration]: Validating Foreign Key Constraints...
[4256506.847] [Configuration]: Passed Validation.
[4256509.602] [Gameplay]: Validating Foreign Key Constraints...
[4256509.622] [Gameplay]: Passed Validation.
[4256519.420] [FullTextSearch]: FTS - Creating Context
[4256523.217] [FullTextSearch]: FTS - Creating Context
[4256528.106] [FullTextSearch]: FTS - Creating Context
[4256567.725] [FullTextSearch]: FTS - Creating Context
[4256568.326] [Configuration]: Validating Foreign Key Constraints...
[4256568.326] [Configuration]: Passed Validation.
[4256576.212] [Localization] ERROR: UNIQUE constraint failed: LocalizedText.Language, LocalizedText.Tag
[4256576.212] [Localization]: While executing - 'insert into EnglishText('Tag', 'Text') values (?, ?);'
[4256576.212] [Localization]: In XMLSerializer while inserting row into table insert into EnglishText('Tag', 'Text') with  values (LOC_CIVILIZATION_MACEDON_NAME, Macedon, ).
[4256576.212] [Localization]: In XMLSerializer while updating table EnglishText from file Macedonia_Persia_ConfigText.xml.
[4256576.212] [Localization] ERROR: UNIQUE constraint failed: LocalizedText.Language, LocalizedText.Tag
[4256576.220] [Localization] ERROR: UNIQUE constraint failed: LocalizedText.Language, LocalizedText.Tag
[4256576.220] [Localization]: While executing - 'insert into BaseGameText('Tag', 'Text') values (?, ?);'
[4256576.220] [Localization]: In XMLSerializer while inserting row into table insert into BaseGameText('Tag', 'Text') with  values (LOC_TRAIT_LEADER_CITADEL_CIVILIZATION_DESCRIPTION, +100% [ICON_Production] Production if either they have received a declaration of war in the past 10 turns or if they have liberated a city in the past 20 turns., ).
[4256576.220] [Localization]: In XMLSerializer while updating table BaseGameText from file Australia_ConfigText.xml.
[4256576.220] [Localization] ERROR: UNIQUE constraint failed: LocalizedText.Language, LocalizedText.Tag
[4256576.223] [Configuration]: Validating Foreign Key Constraints...
[4256576.223] [Configuration]: Passed Validation.
[4256578.142] [Gameplay] ERROR: FOREIGN KEY constraint failed
[4256578.142] [Gameplay] ERROR: FOREIGN KEY constraint failed
[4256578.142] [Gameplay]: Validating Foreign Key Constraints...
[4256578.145] [Gameplay] ERROR: Invalid Reference on Building_GreatPersonPoints.BuildingType - "BUILDING_HALICARNASSUS_MAUSOLEUM" does not exist in Buildings
[4256578.145] [Gameplay] ERROR: Invalid Reference on Building_GreatWorks.BuildingType - "BUILDING_HALICARNASSUS_MAUSOLEUM" does not exist in Buildings
[4256578.146] [Gameplay] ERROR: Invalid Reference on Building_YieldChanges.BuildingType - "BUILDING_HALICARNASSUS_MAUSOLEUM" does not exist in Buildings
[4256578.146] [Gameplay] ERROR: Invalid Reference on BuildingModifiers.BuildingType - "BUILDING_BASILIKOI_PAIDES" does not exist in Buildings
[4256578.146] [Gameplay] ERROR: Invalid Reference on BuildingModifiers.BuildingType - "BUILDING_APADANA" does not exist in Buildings
[4256578.146] [Gameplay] ERROR: Invalid Reference on BuildingModifiers.BuildingType - "BUILDING_APADANA" does not exist in Buildings
[4256578.146] [Gameplay] ERROR: Invalid Reference on BuildingModifiers.BuildingType - "BUILDING_HALICARNASSUS_MAUSOLEUM" does not exist in Buildings
[4256578.146] [Gameplay] ERROR: Invalid Reference on BuildingModifiers.BuildingType - "BUILDING_HALICARNASSUS_MAUSOLEUM" does not exist in Buildings
[4256578.146] [Gameplay] ERROR: Invalid Reference on CityNames.CivilizationType - "CIVILIZATION_MACEDON" does not exist in Civilizations
[4256578.146] [Gameplay] ERROR: Invalid Reference on CityNames.CivilizationType - "CIVILIZATION_MACEDON" does not exist in Civilizations
[4256578.146] [Gameplay] ERROR: Invalid Reference on CityNames.CivilizationType - "CIVILIZATION_MACEDON" does not exist in Civilizations
[4256578.146] [Gameplay] ERROR: Invalid Reference on CityNames.CivilizationType - "CIVILIZATION_MACEDON" does not exist in Civilizations
[4256578.146] [Gameplay] ERROR: Invalid Reference on CityNames.CivilizationType - "CIVILIZATION_MACEDON" does not exist in Civilizations
[4256578.147] [Gameplay] ERROR: Invalid Reference on CivilizationTraits.CivilizationType - "CIVILIZATION_AUSTRALIA" does not exist in Civilizations
[4256578.147] [Gameplay] ERROR: Invalid Reference on CivilizationTraits.CivilizationType - "CIVILIZATION_PERSIA" does not exist in Civilizations
[4256578.147] [Gameplay] ERROR: Invalid Reference on CivilizationTraits.CivilizationType - "CIVILIZATION_MACEDON" does not exist in Civilizations
[4256578.147] [Gameplay] ERROR: Invalid Reference on CivilizationTraits.CivilizationType - "CIVILIZATION_MACEDON" does not exist in Civilizations
[4256578.149] [Gameplay] ERROR: Invalid Reference on ExclusiveAgendas.AgendaOne - "AGENDA_PERPETUALLY_ON_GUARD" does not exist in Agendas
[4256578.149] [Gameplay] ERROR: Invalid Reference on ExclusiveAgendas.AgendaOne - "AGENDA_PERPETUALLY_ON_GUARD" does not exist in Agendas
[4256578.149] [Gameplay] ERROR: Invalid Reference on ExclusiveAgendas.AgendaOne - "AGENDA_BACKSTABBER" does not exist in Agendas
[4256578.149] [Gameplay] ERROR: Invalid Reference on ExclusiveAgendas.AgendaOne - "AGENDA_BACKSTABBER" does not exist in Agendas
[4256578.149] [Gameplay] ERROR: Invalid Reference on ExclusiveAgendas.AgendaOne - "AGENDA_BACKSTABBER" does not exist in Agendas
[4256578.149] [Gameplay] ERROR: Invalid Reference on ExclusiveAgendas.AgendaOne - "AGENDA_SHORT_LIFE_GLORY" does not exist in Agendas
[4256578.149] [Gameplay] ERROR: Invalid Reference on ExclusiveAgendas.AgendaOne - "AGENDA_SHORT_LIFE_GLORY" does not exist in Agendas
[4256578.149] [Gameplay] ERROR: Invalid Reference on ExclusiveAgendas.AgendaOne - "AGENDA_SHORT_LIFE_GLORY" does not exist in Agendas
[4256578.149] [Gameplay] ERROR: Invalid Reference on ExclusiveAgendas.AgendaOne - "AGENDA_SHORT_LIFE_GLORY" does not exist in Agendas
[4256578.149] [Gameplay] ERROR: Invalid Reference on ExclusiveAgendas.AgendaOne - "AGENDA_SHORT_LIFE_GLORY" does not exist in Agendas
[4256578.149] [Gameplay] ERROR: Invalid Reference on ExclusiveAgendas.AgendaOne - "AGENDA_SHORT_LIFE_GLORY" does not exist in Agendas
[4256578.153] [Gameplay] ERROR: Invalid Reference on Modifiers.SubjectRequirementSetId - "CITY_HAS_ENCAMPMENT" does not exist in RequirementSets
[4256578.158] [Gameplay] ERROR: Invalid Reference on StartBiasTerrains.CivilizationType - "CIVILIZATION_MACEDON" does not exist in Civilizations
[4256578.158] [Gameplay] ERROR: Invalid Reference on StartBiasTerrains.CivilizationType - "CIVILIZATION_MACEDON" does not exist in Civilizations
[4256578.158] [Gameplay] ERROR: Invalid Reference on StartBiasTerrains.CivilizationType - "CIVILIZATION_MACEDON" does not exist in Civilizations
[4256578.158] [Gameplay] ERROR: Invalid Reference on StartBiasTerrains.CivilizationType - "CIVILIZATION_MACEDON" does not exist in Civilizations
[4256578.159] [Gameplay] ERROR: Invalid Reference on TraitModifiers.TraitType - "TRAIT_AGENDA_PERPETUALLY_ON_GUARD" does not exist in Traits
[4256578.159] [Gameplay] ERROR: Invalid Reference on TraitModifiers.TraitType - "TRAIT_AGENDA_BACKSTABBER" does not exist in Traits
[4256578.159] [Gameplay] ERROR: Invalid Reference on TraitModifiers.TraitType - "TRAIT_AGENDA_BACKSTABBER" does not exist in Traits
[4256578.159] [Gameplay] ERROR: Invalid Reference on TraitModifiers.TraitType - "TRAIT_AGENDA_SHORT_LIFE_GLORY" does not exist in Traits
[4256578.159] [Gameplay] ERROR: Invalid Reference on TraitModifiers.TraitType - "TRAIT_AGENDA_SHORT_LIFE_GLORY" does not exist in Traits
[4256578.159] [Gameplay] ERROR: Invalid Reference on TraitModifiers.TraitType - "TRAIT_LEADER_CITADEL_CIVILIZATION" does not exist in Traits
[4256578.159] [Gameplay] ERROR: Invalid Reference on TraitModifiers.TraitType - "TRAIT_CIVILIZATION_HELLENISTIC_FUSION" does not exist in Traits
[4256578.159] [Gameplay] ERROR: Invalid Reference on TraitModifiers.TraitType - "TRAIT_CIVILIZATION_HELLENISTIC_FUSION" does not exist in Traits
[4256578.159] [Gameplay] ERROR: Invalid Reference on TraitModifiers.TraitType - "TRAIT_CIVILIZATION_HELLENISTIC_FUSION" does not exist in Traits
[4256578.159] [Gameplay] ERROR: Invalid Reference on TraitModifiers.TraitType - "TRAIT_CIVILIZATION_HELLENISTIC_FUSION" does not exist in Traits
[4256578.159] [Gameplay] ERROR: Invalid Reference on TraitModifiers.TraitType - "TRAIT_CIVILIZATION_HELLENISTIC_FUSION" does not exist in Traits
[4256578.162] [Gameplay]: Failed Validation.
[4256578.203] [Gameplay] ERROR: FOREIGN KEY constraint failed
[4256578.203] [Gameplay] ERROR: FOREIGN KEY constraint failed
[4256578.203] [Gameplay]: Validating Foreign Key Constraints...
[4256578.213] [Gameplay] ERROR: Invalid Reference on Modifiers.SubjectRequirementSetId - "PLOT_IS_COASTAL_LAND_REQUIREMENTS" does not exist in RequirementSets
[4256578.213] [Gameplay] ERROR: Invalid Reference on Modifiers.SubjectRequirementSetId - "PLOT_IS_COASTAL_LAND_REQUIREMENTS" does not exist in RequirementSets
[4256578.213] [Gameplay] ERROR: Invalid Reference on Modifiers.SubjectRequirementSetId - "CITY_HAS_HOLY_SITE" does not exist in RequirementSets
[4256578.221] [Gameplay]: Failed Validation.
[4256578.228] [Localization] ERROR: UNIQUE constraint failed: LocalizedText.Language, LocalizedText.Tag
[4256578.228] [Localization]: While executing - 'insert into EnglishText('Tag', 'Text') values (?, ?);'
[4256578.228] [Localization]: In XMLSerializer while inserting row into table insert into EnglishText('Tag', 'Text') with  values (LOC_CIVILIZATION_MACEDON_NAME, Macedon, ).
[4256578.228] [Localization]: In XMLSerializer while updating table EnglishText from file Macedonia_Persia_ConfigText.xml.
[4256578.228] [Localization] ERROR: UNIQUE constraint failed: LocalizedText.Language, LocalizedText.Tag
[4256578.229] [Localization] ERROR: UNIQUE constraint failed: LocalizedText.Language, LocalizedText.Tag
[4256578.229] [Localization]: While executing - 'insert into EnglishText('Tag', 'Text') values (?, ?);'
[4256578.229] [Localization]: In XMLSerializer while inserting row into table insert into EnglishText('Tag', 'Text') with  values (LOC_CIVILIZATION_PERSIA_DESCRIPTION, Persian Empire, ).
[4256578.229] [Localization]: In XMLSerializer while updating table EnglishText from file Macedonia_Persia_GameplayText.xml.
[4256578.229] [Localization] ERROR: UNIQUE constraint failed: LocalizedText.Language, LocalizedText.Tag
[4256578.335] [Localization] ERROR: UNIQUE constraint failed: LocalizedText.Language, LocalizedText.Tag
[4256578.335] [Localization]: While executing - 'insert into BaseGameText('Tag', 'Text') values (?, ?);'
[4256578.335] [Localization]: In XMLSerializer while inserting row into table insert into BaseGameText('Tag', 'Text') with  values (LOC_TRAIT_LEADER_CITADEL_CIVILIZATION_DESCRIPTION, +100% [ICON_Production] Production if either they have received a declaration of war in the past 10 turns or if they have liberated a city in the past 20 turns., ).
[4256578.335] [Localization]: In XMLSerializer while updating table BaseGameText from file Australia_ConfigText.xml.
[4256578.335] [Localization] ERROR: UNIQUE constraint failed: LocalizedText.Language, LocalizedText.Tag
[4256578.335] [Localization] ERROR: UNIQUE constraint failed: LocalizedText.Language, LocalizedText.Tag
[4256578.335] [Localization]: While executing - 'insert into BaseGameText('Tag', 'Text') values (?, ?);'
[4256578.335] [Localization]: In XMLSerializer while inserting row into table insert into BaseGameText('Tag', 'Text') with  values (LOC_CIVILIZATION_AUSTRALIA_DESCRIPTION, Australian Empire, ).
[4256578.335] [Localization]: In XMLSerializer while updating table BaseGameText from file Australia_Text.xml.
[4256578.335] [Localization] ERROR: UNIQUE constraint failed: LocalizedText.Language, LocalizedText.Tag
[4256578.649] [Gameplay]: Validating Foreign Key Constraints...
[4256578.666] [Gameplay]: Passed Validation.
[4256581.636] [FullTextSearch]: FTS - Creating Context
[4256582.225] [Configuration]: Validating Foreign Key Constraints...
[4256582.225] [Configuration]: Passed Validation.
[4256594.688] [Configuration]: Validating Foreign Key Constraints...
[4256594.688] [Configuration]: Passed Validation.
[4256597.383] [Gameplay]: Validating Foreign Key Constraints...
[4256597.403] [Gameplay]: Passed Validation.
[4256607.672] [FullTextSearch]: FTS - Creating Context
[4256611.443] [FullTextSearch]: FTS - Creating Context
[4256616.280] [FullTextSearch]: FTS - Creating Context
[4256644.063] [FullTextSearch]: FTS - Creating Context
[4256644.650] [Configuration]: Validating Foreign Key Constraints...
[4256644.651] [Configuration]: Passed Validation.
[4256660.055] [FullTextSearch]: FullTextSearch - Shutting down


This was a similar issue several updates ago where the game tries to load the mods before the DLC. Seems to be happening again. Checking the Modding log, Australia, Persia and Macedon's ConfigText and Text XMLs are failing to load.

I'm at a loss, at this point. Is there anyway to control how the game loads assets on loading a save? It's not exactly feasible to play an entire Civ game in one sitting.
 
Mods and DLC do not load in the same order when starting a new game as when loading a saved game.

The solution is for mod-makers to place a <LoadOrder> designation in their actions in the modinfo file, like this:
Code:
    <UpdateDatabase id="TCS_Jerusalem_Database">
      <Properties>
        <LoadOrder>10</LoadOrder>
      </Properties>
      <File priority="1">Core/Civilization/TCS_Jerusalem_Database.sql</File>
      <File>Core/Leaders/Baldwin IV/TCS_Jerusalem_BaldwinIV_Database.sql</File>
    </UpdateDatabase>
The load order makes the files load after the files from DLC, and a value of "10" seems to be sufficient. This load order value will be used both when a new game is started and when a game is loaded from a save.

the example is taken from @thecrazyscot TCS Kingdom of Jerusalem mod
 
Mods and DLC do not load in the same order when starting a new game as when loading a saved game.

The solution is for mod-makers to place a <LoadOrder> designation in their actions in the modinfo file, like this:

the example is taken from @thecrazyscot TCS Kingdom of Jerusalem mod

I had to move my LoadOrder tags to each section. So now the database and text, etc, have their own load order instead of just <InGameActions>. I also set an Involves tag for the sections that rely on DLC assets and that seems to have done the trick.
 
Back
Top Bottom