I need help with my Mod. Changes don't take effect ingame.

nudden

Prince
Joined
Jun 9, 2008
Messages
339
Location
Germany
Hello dear Civfanactics,

I created my first Mod with Modbuddy. My goal was to nerf the ActionCharges of the Hero Units.
So I added an XML file to my Mod and did the following:
Spoiler :

<GameInfo>
<Units_MODE>
<Update>
<Where UnitType="UNIT_HERO_ANANSI"/>
<Set>
<ActionCharges>4</ActionCharges>
</Set>
<Where UnitType="UNIT_HERO_ARTHUR"/>
<Set>
<ActionCharges>3</ActionCharges>
</Set>
<Where UnitType="UNIT_HERO_BEOWULF"/>
<Set>
<ActionCharges>4</ActionCharges>
</Set>
<Where UnitType="UNIT_HERO_HERCULES"/>
<Set>
<ActionCharges>3</ActionCharges>
</Set>
<Where UnitType="UNIT_HERO_HIMIKO"/>
<Set>
<ActionCharges>3</ActionCharges>
</Set>
<Where UnitType="UNIT_HERO_OYA"/>
<Set>
<ActionCharges>4</ActionCharges>
</Set>
<Where UnitType="UNIT_HERO_MAUI"/>
<Set>
<ActionCharges>2</ActionCharges>
</Set>
<Where UnitType="UNIT_HERO_SINBAD"/>
<Set>
<ActionCharges>4</ActionCharges>
</Set>
</Update>
</Units_MODE>
</GameInfo>

After that I added the XML to the "In-Game Actions" to update the Database, built the Mod and tested it. It showed up correctly In-Game but the changes didnt take effect. What did I forgot/wrong? Can anybody help me?

Cheers and thank you very much
NuDDen
 
Incorrect XML formatting.

Proper XML structure for Multiple Updates within the same table:
Code:
<GameInfo>
	<Units_MODE>
		<Update>
			<Where UnitType="UNIT_HERO_ANANSI"/>
			<Set>
				<ActionCharges>4</ActionCharges>
			</Set>
		</Update>
		<Update>
			<Where UnitType="UNIT_HERO_ARTHUR"/>
			<Set>
				<ActionCharges>3</ActionCharges>
			</Set>
		</Update>
		<Update>
			<Where UnitType="UNIT_HERO_BEOWULF"/>
			<Set>
				<ActionCharges>4</ActionCharges>
			</Set>
		</Update>
		<Update>
			<Where UnitType="UNIT_HERO_HERCULES"/>
			<Set>
				<ActionCharges>3</ActionCharges>
			</Set>
		</Update>
		<Update>
			<Where UnitType="UNIT_HERO_HIMIKO"/>
			<Set>
				<ActionCharges>3</ActionCharges>
			</Set>
		</Update>
		<Update>
			<Where UnitType="UNIT_HERO_OYA"/>
			<Set>
				<ActionCharges>4</ActionCharges>
			</Set>
		</Update>
		<Update>
			<Where UnitType="UNIT_HERO_MAUI"/>
			<Set>
				<ActionCharges>2</ActionCharges>
			</Set>
		</Update>
		<Update>
			<Where UnitType="UNIT_HERO_SINBAD"/>
			<Set>
				<ActionCharges>4</ActionCharges>
			</Set>
		</Update>
	</Units_MODE>
</GameInfo>
File database.log at
C:\Users\UserName\Documents\My Games\Sid Meier's Civilization VI\Logs
would have reported a syntax error for the code you attempted.

You may also need to add a LoadOrder setting to your InGame UpdateDatabase action to ensure the code loads into the game after the data for the Heroes Mode is added. See the section on LoadOrders, Dependancies, etc, in the linked tutorial at the top of my user sig.
 
Back
Top Bottom