Leader icon overlap between mods

Käpt'n Zur See

Chieftain
Joined
Mar 17, 2022
Messages
8
Hey,
I made another leader for a civilization I've created as a seperate mod. I've copied lots of code from the Civ itself and then changed textures, abilites etc. to another leader.
Everything works fine, except when playing with both leader activated, the Player Icon of the old leader is replaced by the new leader or a questionmark. Gameplay wise, music and other textures seem to be fine.
There are no references to either leader in the code, as far as I can see and find.
Is there something I need to change for two leaders to work in the same game? Do the leader colors have to be different? I am out of ideas. I can provide any files, if you need anything.
Thank you
 
I have found the error but I don't know how to fix it. This is what the Database.log gives out:
[2073927.052] [Localization]: StartupErrorMessages.xml [2073927.052] [Localization]: Input XML does not contain database entry tags. GameData, GameInfo or Database [2073930.086] [Localization]: Validating Foreign Key Constraints... [2073930.086] [Localization]: Passed Validation. [2073930.186] [Configuration]: Validating Foreign Key Constraints... [2073930.186] [Configuration]: Passed Validation. [2073931.574] [FullTextSearch]: Initializing FullTextSearch [2073932.997] [Gameplay]: Validating Foreign Key Constraints... [2073933.006] [Gameplay]: Passed Validation. [2073934.455] [Localization] ERROR: UNIQUE constraint failed: LocalizedText.Language, LocalizedText.Tag [2073934.455] [Localization] ERROR: UNIQUE constraint failed: LocalizedText.Language, LocalizedText.Tag [2073934.506] [Configuration] ERROR: no such table: MomentIllustrations [2073935.677] [Configuration]: Validating Foreign Key Constraints... [2073935.678] [Configuration]: Passed Validation. [2073935.985] [Database] ERROR: UNIQUE constraint failed: IconTextureAtlases.Name, IconTextureAtlases.IconSize [2073935.985] [Database] ERROR: UNIQUE constraint failed: IconTextureAtlases.Name, IconTextureAtlases.IconSize [2073936.282] [ColorManager] ERROR: UNIQUE constraint failed: Colors.Type [2073936.282] [ColorManager] ERROR: UNIQUE constraint failed: Colors.Type [2073936.282] [ColorManager]: ../../../DLC/WarMachineScenario/Data/WarMachineScenario_PlayerColors.xml [2073936.953] [ColorManager] ERROR: UNIQUE constraint failed: Colors.Type [2073936.953] [ColorManager] ERROR: UNIQUE constraint failed: Colors.Type [2073936.953] [ColorManager]: ../../../DLC/WarMachineScenario/Data/WarMachineScenario_PlayerColors.xml [2073937.273] [HallofFame]: Database found. Checking versions... [2073937.279] [HallofFame]: Database is up-to-date! [2073940.845] [FullTextSearch]: FTS - Creating Context [2074023.407] [FullTextSearch]: FTS - Creating Context [2074030.988] [Configuration] ERROR: no such table: MomentIllustrations [2074031.067] [Configuration]: Validating Foreign Key Constraints... [2074031.067] [Configuration]: Passed Validation.

Ignore the MomentIllustrations error, I have to figure that one out seperately. The issue is with the Unique constrains. What do I do about them?
 
Top Bottom