Hello,
I'm new to modding so I'm probably making some noob mistake. I'm trying to modify health level bonuses. As a test, I'm trying to make it so starting at health level 5 (rather than the default 20) you begin to receive bonuses to culture. This is my XML:
<?xml version="1.0" encoding="utf-8"?>
<!-- Created by ModBuddy on 11/1/2015 11:29:00 AM -->
<GameData>
<HealthLevels>
<Update>
<Where Type ="HEALTH_LEVEL_BONUS_CULTURE"/>
<Set HealthStart ="5"/>
</Update>
</HealthLevels>
</GameData>
This is the relevant section of the Database.log file:
[50249.218] UNIQUE constraint failed: HealthLevels.HealthStart
[50249.218] While executing - 'UPDATE HealthLevels SET "HealthStart" = ? WHERE "Type" = ?;'
[50249.218] Database::XMLSerializer (HealthLevels.xml): There was an error executing the update statement! See Database.log for details.
[50249.218] UNIQUE constraint failed: HealthLevels.HealthStart
[50249.218] In XMLSerializer while updating table HealthLevels from file HealthLevels.xml.
[50251.640]
What am I doing wrong?
I'm new to modding so I'm probably making some noob mistake. I'm trying to modify health level bonuses. As a test, I'm trying to make it so starting at health level 5 (rather than the default 20) you begin to receive bonuses to culture. This is my XML:
<?xml version="1.0" encoding="utf-8"?>
<!-- Created by ModBuddy on 11/1/2015 11:29:00 AM -->
<GameData>
<HealthLevels>
<Update>
<Where Type ="HEALTH_LEVEL_BONUS_CULTURE"/>
<Set HealthStart ="5"/>
</Update>
</HealthLevels>
</GameData>
This is the relevant section of the Database.log file:
[50249.218] UNIQUE constraint failed: HealthLevels.HealthStart
[50249.218] While executing - 'UPDATE HealthLevels SET "HealthStart" = ? WHERE "Type" = ?;'
[50249.218] Database::XMLSerializer (HealthLevels.xml): There was an error executing the update statement! See Database.log for details.
[50249.218] UNIQUE constraint failed: HealthLevels.HealthStart
[50249.218] In XMLSerializer while updating table HealthLevels from file HealthLevels.xml.
[50251.640]
What am I doing wrong?