I've got a leader mod that uses the Aztec civ from the DLC. Before the Rise & Fall patch, it seemed to work fine. Now it has trouble finding the database entries for the Aztec civ. In particular, when I load it up, I get this error in the database log:
[2804059.462] [Configuration] ERROR: UNIQUE constraint failed: Players.Domain, Players.CivilizationType, Players.LeaderType
[2804059.462] [Configuration] ERROR: UNIQUE constraint failed: Players.Domain, Players.CivilizationType, Players.LeaderType
I believe this occurs when processing this section of the config:
I tried adding the Aztec DLC as both a dependency and a reference in the Associations tab of the properties file, but that doesn't seem to have helped. Is there somewhere else I need to indicate the dependency?
[2804059.462] [Configuration] ERROR: UNIQUE constraint failed: Players.Domain, Players.CivilizationType, Players.LeaderType
[2804059.462] [Configuration] ERROR: UNIQUE constraint failed: Players.Domain, Players.CivilizationType, Players.LeaderType
I believe this occurs when processing this section of the config:
Code:
INSERT INTO Players
(CivilizationType, Portrait, PortraitBackground, LeaderType, LeaderName, LeaderIcon, LeaderAbilityName, LeaderAbilityDescription, LeaderAbilityIcon, CivilizationName, CivilizationIcon, CivilizationAbilityName, CivilizationAbilityDescription, CivilizationAbilityIcon)
SELECT 'CIVILIZATION_AZTEC', 'LEADER_NEM_AHUITZOTL_NEUTRAL.dds', 'LEADER_DEFAULT_BACKGROUND', 'LEADER_NEM_AHUITZOTL', 'LOC_LEADER_NEM_AHUITZOTL_NAME', 'ICON_LEADER_NEM_AHUITZOTL', 'LOC_NEM_TERROR_OF_TENOCHTITLAN', 'LOC_NEM_TERROR_OF_TENOCHTITLAN_DESCRIPTION', 'ICON_LEADER_NEM_AHUITZOTL', CivilizationName, 'ICON_CIVILIZATION_AZTEC', CivilizationAbilityName, CivilizationAbilityDescription, 'ICON_CIVILIZATION_AZTEC'
FROM Players WHERE CivilizationType = 'CIVILIZATION_AZTEC' AND LeaderType= 'LEADER_MONTEZUMA';
INSERT INTO PlayerItems
(CivilizationType, LeaderType, Type, Icon, Name, Description, SortIndex)
SELECT 'CIVILIZATION_AZTEC', 'LEADER_NEM_AHUITZOTL', Type, Icon, Name, Description, SortIndex
FROM PlayerItems WHERE CivilizationType = 'CIVILIZATION_AZTEC' AND LeaderType= 'LEADER_MONTEZUMA';
I tried adding the Aztec DLC as both a dependency and a reference in the Associations tab of the properties file, but that doesn't seem to have helped. Is there somewhere else I need to indicate the dependency?