Matress_of_evil
Chieftain
Hi, I'd like Canyons to produce some yield (eg. 1 Science), so they aren't just "dead space" around my cities. I've searched the Steam Workshop and the Downloads here, but there's no mention of a mod that does this (and I can't find any hint that anyone has asked this on the forums before via the search either). So i'm trying to make one myself instead. I'm not having any luck though. I've tried writing several different iterations of xml code, but nothing seems to work. Anyone have any ideas? I'm starting to wonder if this is something that has been hard-coded.
My current code:
And others that i've tried:
My current code:
Spoiler :
This one doesn't throw up any errors in Database.log - but Canyons still don't produce any yields.
Code:
<Resource_YieldChanges>
<Update>
<Set Yield="1"/>
<Where TerrainType="TERRAIN_CANYON> YieldType="YIELD_SCIENCE"/>
</Update>
</Resource_YieldChanges>
Spoiler :
This one results in an error in Database.log
Spoiler :
[118126.281] table Resource_YieldChanges has no column named TerrainType
[118126.281] In Query - insert into Resource_YieldChanges('TerrainType', 'YieldType', 'Yield') values (?, ?, ?);
[118126.281] In XMLSerializer while updating table Resource_YieldChanges from file XML/CivBETerrains_Updates.xml.
[118126.281] In Query - insert into Resource_YieldChanges('TerrainType', 'YieldType', 'Yield') values (?, ?, ?);
[118126.281] In XMLSerializer while updating table Resource_YieldChanges from file XML/CivBETerrains_Updates.xml.
Code:
<Resource_YieldChanges>
<Row>
<TerrainType>TERRAIN_CANYON</TerrainType>
<YieldType>YIELD_SCIENCE</YieldType>
<Yield>1</Yield>
</Row>
</Resource_YieldChanges>
Spoiler :
And another Database.log error.
<Resource_YieldChanges>
Spoiler :
[118681.645] Database::XMLSerializer (XML/CivBETerrains_Updates.xml): <Update> element requires a child <Set> element.
Code:
<Resource_YieldChanges>
<Update>
<Row>
<TerrainType>TERRAIN_CANYON</TerrainType>
<YieldType>YIELD_SCIENCE</YieldType>
<Yield>1</Yield>
</Row>
</Update>
</Resource_YieldChanges>