Ridiculous

Chiyochan

King
Joined
Jul 28, 2007
Messages
710
Location
Chiyochan's Country
Code:
<GameData>
	<Feature_YieldChanges>
		<Row>
			<FeatureType>FEATURE_JUNGLE</FeatureType>
			<YieldType>YIELD_PRODUCTION</YieldType>
			<Yield>-3</Yield>
		</Row>
		<Row>
			<FeatureType>FEATURE_FOREST</FeatureType>
			<YieldType>YIELD_PRODUCTION</YieldType>
			<Yield>2</Yield>
		</Row>
		<Row>
			<FeatureType>FEATURE_FOREST</FeatureType>
			<YieldType>YIELD_FOOD</YieldType>
			<Yield>2</Yield>
		</Row>
	</Feature_YieldChanges>
</GameData>
I dont get it, I copied the format from a working mod. why wont this line work? every time i test it i get the same 1 hammer 1 food forest tiles. I wish forests worked like civ 4 and didnt have to overwrite the terrain they grow on >:/
 
You have to use the <Update> Tag instead of <Row> imo.

Code:
<GameData>
	<Feature_YieldChanges>
		<Update>
			<Set Yield="-3">
                        <Where FeatureType="FEATURE_JUNGLE" YieldType="YIELD_PRODUCTION">
		</Update>
	</Feature_YieldChanges>
</GameData>
 
You have to use the <Update> Tag instead of <Row> imo.

Code:
<GameData>
	<Feature_YieldChanges>
		<Update>
			<Set Yield="-3">
                        <Where FeatureType="FEATURE_JUNGLE" YieldType="YIELD_PRODUCTION">
		</Update>
	</Feature_YieldChanges>
</GameData>

doesnt explain why it worked for them and not me
i'm too tired to try this now i'll do it tomarrow
 
doesnt explain why it worked for them and not me
i'm too tired to try this now i'll do it tomarrow

That's just how it works now. You also have to go to properties->actions and do the whole OnModActivated bit. The pdf tutorial at the top explains it pretty well.
 
That's just how it works now. You also have to go to properties->actions and do the whole OnModActivated bit. The pdf tutorial at the top explains it pretty well.

while you clearly dont understand what I'm saying here your post helped me anyway
I'll just reiterate that the files i'm using are near identical to a functioning mod for civ 5
All I changed was the yields.
 
while you clearly dont understand what I'm saying here your post helped me anyway
I'll just reiterate that the files i'm using are near identical to a functioning mod for civ 5
All I changed was the yields.

Ah I get you're asking now sorry. Well what they did was add a resource rather than changing it. I suppose somewhere else in the mod they might've deleted the default ones?
 
Ah I get you're asking now sorry. Well what they did was add a resource rather than changing it. I suppose somewhere else in the mod they might've deleted the default ones?
.... No, They didnt
I told you they are identical. all i changed was the yields.
 
So you're honestly saying that

1) The mod works before you touch it
2) All you do is change a couple numbers and absolutely nothing else
3) You clean and rebuild the mod
4) You start up the mod and create a game
5) The yield is the same as it was in the mod originally, before you changed it.

?
 
Hint:
Code:
<!-- **** Forest bonuses are now additive -->
<Features>
	<Update>
		<Where Type="FEATURE_FOREST"/>
		<Set YieldNotAdditive="false" />
	</Update>
</Features>
You are welcome.
 
Back
Top Bottom