Help with yield updates

Guru Logan

Chieftain
Joined
Oct 11, 2010
Messages
3
Hi everyone!

I cannot figure out what am I doing wrong with yield updates. I saw in the forum that other people had a similar problem though I couldn't understand whether anyone got it sorted out or not.

The most symptomatic of problems:

I am trying to change the science yield of the Palace.

Neither of the following methods work:

<Building_YieldChanges>
<Row>
<BuildingType>BUILDING_PALACE</BuildingType>
<YieldType>YIELD_SCIENCE</YieldType>
<Yield>4</Yield>
</Row>
</Building_YieldChanges>

<Building_YieldChanges>
<Update>
<Set Yield="4"></Set>
<Where BuildingType="BUILDING_PALACE" YieldType="YIELD_SCIENCE"></Where>
</Update>
</Building_YieldChanges>

In a similar vein, I cannot set the food yield from granary to 0 no matter what I do. I have correctly set UpdateDatabase actions in ModBuddy, and other changes work ok, but I have no luck in changing either building yields or improvement yields.

Any help would be greatly appreciated.
 
Could you try this? I think this method is correct one.

Code:
<GameData>
	<Building_YieldChanges>
		<Update>
			<Where BuildingType="BUILDING_PALACE" YieldType="YIELD_SCIENCE"/>
			<Set>
				<Yield>100</Yield>
			</Set>
		</Update>
	</Building_YieldChanges>
</GameData>
 
I just tried your code (the 2nd one with the update brackets) and it works fine. Are you enabling the mod via browser? Did you set actions OnModActivated with the correct filename (there is a space in the default file name). If you've done all of these and it still doesn't work try creating a new project/solution and use the same code.
 
Back
Top Bottom