kaspergm
Deity
- Joined
- Aug 19, 2012
- Messages
- 5,570
I'm trying to get started on Civ6 modding, and the game just doesn't want to cooporate with me. I tried to make a simple XML-mod for a start, but it doesn't work. Here's the code I made:
I set this to Update Database as a Front End action in ModBuddy. The game does try to update the database (I think), but it tells me there is no table called UnitPromotionPrereqs - see excerpt from database.log below.
I don't understand this, because there is a table called exactly that when I look in the UnitPromotions file:
So ... what am I doing wrong? I used to get these things to work perfectly fine in Civ5.
Spoiler :
Code:
<GameInfo>
<UnitPromotionPrereqs>
<Update>
<Where UnitPromotion="PROMOTION_COMMANDO" PrereqUnitPromotion="PROMOTION_AMPHIBIOUS"/>
<Set PrereqUnitPromotion="PROMOTION_TORTOISE"/>
</Update>
<Update>
<Where UnitPromotion="PROMOTION_AMPHIBIOUS" PrereqUnitPromotion="PROMOTION_COMMANDO"/>
<Set PrereqUnitPromotion="PROMOTION_BATTLECRY"/>
</Update>
</UnitPromotionPrereqs>
</GameInfo>
I set this to Update Database as a Front End action in ModBuddy. The game does try to update the database (I think), but it tells me there is no table called UnitPromotionPrereqs - see excerpt from database.log below.
Spoiler :
[Configuration] ERROR: no such table: UnitPromotionPrereqs
[2609565.909] [Configuration]: In Query - UPDATE UnitPromotionPrereqs SET "PrereqUnitPromotion" = ? WHERE "UnitPromotion" = ? AND "PrereqUnitPromotion" = ?;
[2609565.909] [Configuration] ERROR: Database::XMLSerializer (PromotionsMod.xml): There was an error executing the update statement! See Database.log for details.
[2609565.909] [Configuration]: In XMLSerializer while updating table UnitPromotionPrereqs from file PromotionsMod.xml.[2609565.909]
[2609565.909] [Configuration]: In Query - UPDATE UnitPromotionPrereqs SET "PrereqUnitPromotion" = ? WHERE "UnitPromotion" = ? AND "PrereqUnitPromotion" = ?;
[2609565.909] [Configuration] ERROR: Database::XMLSerializer (PromotionsMod.xml): There was an error executing the update statement! See Database.log for details.
[2609565.909] [Configuration]: In XMLSerializer while updating table UnitPromotionPrereqs from file PromotionsMod.xml.[2609565.909]
I don't understand this, because there is a table called exactly that when I look in the UnitPromotions file:
Spoiler :
Code:
<UnitPromotionPrereqs>
<!--Melee-->
<Row UnitPromotion="PROMOTION_COMMANDO" PrereqUnitPromotion="PROMOTION_BATTLECRY"/>
<Row UnitPromotion="PROMOTION_COMMANDO" PrereqUnitPromotion="PROMOTION_AMPHIBIOUS"/>
So ... what am I doing wrong? I used to get these things to work perfectly fine in Civ5.