LeeS
Imperator
Well, I had written a more-detailed response but the forum ate it. You have fatal errors in your mod being reported by Database.log
There's no <Row> openers or closers here:
This entire code is incorrect:
You cannot have multiple "Where" commands nor multiple "Set" commands within one <Update>. You need to break each of the "Where" and "Set" pairs into individual <Update> sets. Plus you have multiple other errors going on: There is for example no column called "MAJOR_CIV_APPROACH_WAR" nor "MinorCivCompetitiveness" within table "Leader_Flavors".
Database.log errors reported:
The final two of these errors will be typos it looks like, and the other Invalid Reference errors will be cured by fixing the fatal syntax errors.
See whoward69's enable error logging tutorial
Follow the tutorial so you can know which errors reported in the log are "Firaxis" errors everyone gets
Disable all mods that are not 100% necessary for your mod to execute properly
Add all your promotions code back into the mod
Start a test game and then exit directly to desktop rather than return to main menu
Open and inspect Database.log for reported errors
------------------------
With your mod enabled at the same time as the "usual" mods I run there were over 260 promotions in table UnitPromotions and so far as I was able to tell everything was working properly.
There's no <Row> openers or closers here:
Code:
<GameData>
<Traits>
<Type>TRAIT_BLOOD_MEXICA</Type>
<Description>TXT_KEY_TRAIT_CULTURE_FROM_KILLS</Description>
<ShortDescription>TXT_KEY_TRAIT_CULTURE_FROM_KILLS_SHORT</ShortDescription>
<PrereqTech>TECH_SCIENTIFIC_THEORY</PrereqTech>
<GoldenAgeGreatArtistRateModifier>20</GoldenAgeGreatArtistRateModifier>
<GoldenAgeGreatMusicianRateModifier>20</GoldenAgeGreatMusicianRateModifier>
<GoldenAgeGreatWriterRateModifier>20</GoldenAgeGreatWriterRateModifier>
<CultureFromKills>100</CultureFromKills>
</Traits>
</GameData>
Code:
<GameData>
<Leader_Flavors>
<Update>
<Set
MINOR_CIV_APPROACH_FRIENDLY="8" DoFWillingness="9" WarmongerHate="9" FLAVOR_ANTIAIR="6" DiploBalance="5" FLAVOR_RECON="5" Forgiveness="4" FLAVOR_NUKE="6" MinorCivCompetitiveness="4" FLAVOR_AIR="5" FLAVOR_USE_NUKE="2" FLAVOR_NAVAL_RECON="5" FLAVOR_WATER_CONNECTION="5"/>
<Where LeaderType="LEADER_GANDHI" />
<Set
FLAVOR_MILITARY_TRAINING="7" MAJOR_CIV_APPROACH_HOSTILE="9" MAJOR_CIV_APPROACH_WAR="9" FLAVOR_OFFENSE="9" Meanness="9" FLAVOR_MOBILE="9" FLAVOR_I_SEA_TRADE_ROUTE="3" FLAVOR_NAVAL="2" FLAVOR_NAVAL_GROWTH="2" FLAVOR_NAVAL_TILE_IMPROVEMENT="2" FLAVOR_HAPPINESS="7" Boldness="9" FLAVOR_PRODUCTION="7" FLAVOR_RECON="8" FLAVOR_NAVAL_RECON="5" FLAVOR_WATER_CONNECTION="2"/>
<Where LeaderType="LEADER_ATTILA" />
<Set
FLAVOR_INFRASTRUCTURE="5" FLAVOR_WATER_CONNECTION="3" DenounceWillingness="4" FLAVOR_CULTURE="6" FLAVOR_RELIGION="6" FLAVOR_NAVAL_GROWTH="3" FLAVOR_ARCHAEOLOGY="4" FLAVOR_ESPIONAGE="4" FLAVOR_I_LAND_TRADE_ROUTE="8" FLAVOR_I_SEA_TRADE_ROUTE="3" FLAVOR_NAVAL_RECON="3" FLAVOR_NAVAL="3" FLAVOR_USE_NUKE="6" FLAVOR_NUKE="6" FLAVOR_I_TRADE_DESTINATION="8" FLAVOR_I_TRADE_ORIGIN="8"/>
<Where LeaderType="LEADER_GENGHIS_KHAN" />
<Set
Boldness="5" Loyalty="5" MAJOR_CIV_APPROACH_WAR="5" MAJOR_CIV_APPROACH_GUARDED="5" MAJOR_CIV_APPROACH_AFRAID="4" MAJOR_CIV_APPROACH_DECEPTIVE="7" FLAVOR_USE_NUKE="4" FLAVOR_NUKE="3" MinorCivCompetitiveness="5" FLAVOR_OFFENSE="5" FLAVOR_RELIGION="5" Neediness="5"/>
<Where LeaderType="LEADER_DARIUS" />
</Update>
</Leader_Flavors>
</GameData>
Database.log errors reported:
Code:
[947045.781] Database::XMLSerializer (Aztec changes/After Science.xml): 'Row' or 'Delete' expected, got 'Type'.
[947047.187] Database::XMLSerializer (Leader Flavors/FlavorsChange.xml): Duplicate <Set> elements are not allowed.
[947051.031] Validating Foreign Key Constraints...
[947052.171] Invalid Reference on Trait_FreePromotionUnitCombats.TraitType - "TRAIT_BLOOD_MEXICA" does not exist in Traits
[947052.171] Invalid Reference on Trait_FreePromotionUnitCombats.TraitType - "TRAIT_BLOOD_MEXICA" does not exist in Traits
[947052.171] Invalid Reference on Trait_FreePromotionUnitCombats.TraitType - "TRAIT_BLOOD_MEXICA" does not exist in Traits
[947052.171] Invalid Reference on Trait_FreePromotionUnitCombats.TraitType - "TRAIT_BLOOD_MEXICA" does not exist in Traits
[947052.171] Invalid Reference on Trait_FreePromotionUnitCombats.TraitType - "TRAIT_BLOOD_MEXICA" does not exist in Traits
[947052.171] Invalid Reference on Trait_FreePromotionUnitCombats.TraitType - "TRAIT_BLOOD_MEXICA" does not exist in Traits
[947052.171] Invalid Reference on Trait_FreePromotionUnitCombats.TraitType - "TRAIT_BLOOD_MEXICA" does not exist in Traits
[947052.171] Invalid Reference on Trait_FreePromotionUnitCombats.TraitType - "TRAIT_BLOOD_MEXICA" does not exist in Traits
[947052.171] Invalid Reference on Trait_FreePromotionUnitCombats.TraitType - "TRAIT_BLOOD_MEXICA" does not exist in Traits
[947052.171] Invalid Reference on Trait_FreePromotionUnitCombats.TraitType - "TRAIT_BLOOD_MEXICA" does not exist in Traits
[947052.171] Invalid Reference on Trait_FreePromotionUnitCombats.TraitType - "TRAIT_BLOOD_MEXICA" does not exist in Traits
[947052.171] Invalid Reference on Trait_FreePromotionUnitCombats.TraitType - "TRAIT_BLOOD_MEXICA" does not exist in Traits
[947052.171] Invalid Reference on Trait_FreePromotionUnitCombats.TraitType - "TRAIT_BLOOD_MEXICA" does not exist in Traits
[947052.171] Invalid Reference on Trait_FreePromotionUnitCombats.TraitType - "TRAIT_BLOOD_MEXICA" does not exist in Traits
[947052.171] Invalid Reference on Trait_ImprovementYieldChanges.ImprovementType - "IMPROVEMENT_LUMBER_CAMP" does not exist in Improvements
[947054.296] Invalid Reference on UnitPromotions.Help - "TTXT_KEY_PROMOTION_COHORT_HELP" does not exist in Language_en_US
See whoward69's enable error logging tutorial
Follow the tutorial so you can know which errors reported in the log are "Firaxis" errors everyone gets
Disable all mods that are not 100% necessary for your mod to execute properly
Add all your promotions code back into the mod
Start a test game and then exit directly to desktop rather than return to main menu
Open and inspect Database.log for reported errors
------------------------
With your mod enabled at the same time as the "usual" mods I run there were over 260 promotions in table UnitPromotions and so far as I was able to tell everything was working properly.
Last edited: