Resourceless quarries

Aaroc

Warlord
Joined
Jan 23, 2010
Messages
104
Is it more than just an XML tune?

With the intention of making Hills less mandatory for production, I tried making a MOd that allows the building of quarries without the need for marble to be present on the tile, however, my attempts thus far have been.. less than fruitful. I was hoping someone could take a look at what I've got so far and let me know what I might be doing wrong:

Spoiler :

<GameData>
<Improvement_Yields>
<Row>
<ImprovementType>IMPROVEMENT_QUARRY</ImprovementType>
<YieldType>YIELD_FOOD</YieldType>
<Yield>-1</Yield>
</Row>
<Row>
<ImprovementType>IMPROVEMENT_QUARRY</ImprovementType>
<YieldType>YIELD_PRODUCTION</YieldType>
<Yield>1</Yield>
</Row>
</Improvement_Yields>

<Improvement_ValidTerrains>
<Row>
<ImprovementType>IMPROVEMENT_QUARRY</ImprovementType>
<TerrainType>TERRAIN_GRASS</TerrainType>
</Row>
<Row>
<ImprovementType>IMPROVEMENT_QUARRY</ImprovementType>
<TerrainType>TERRAIN_PLAINS</TerrainType>
</Row>
<Row>
<ImprovementType>IMPROVEMENT_QUARRY</ImprovementType>
<TerrainType>TERRAIN_DESERT</TerrainType>
</Row>
<Row>
<ImprovementType>IMPROVEMENT_QUARRY</ImprovementType>
<TerrainType>TERRAIN_TUNDRA</TerrainType>
</Row>
</Improvement_ValidTerrains>

<Improvement_TechYieldChanges>
<Row>
<ImprovementType>IMPROVEMENT_QUARRY</ImprovementType>
<TechType>TECH_ENGINEERING</TechType>
<YieldType>YIELD_PRODUCTION</YieldType>
<Yield>1</Yield>
</Row>
<Row>
<ImprovementType>IMPROVEMENT_QUARRY</ImprovementType>
<TechType>TECH_RAILROAD</TechType>
<YieldType>YIELD_PRODUCTION</YieldType>
<Yield>1</Yield>
</Row>
</Improvement_TechYieldChanges>


</GameData>


Since adding in valid terrains and resourceless yield changes haven't done the trick, I'm wondering if there's some other tidbit of information I'm missing. I've done searches through al of the XML files for anything having to do with quarries and haven't found anything that looks like it limits them to being built on marble, so I'm at a loss. I'm thinking it might mean there's some sort of non-XL thing making them unable to be built unless marble is present.
 
I've been searching for a tag like that and haven't found one. Plantations and pastures don't appear to have any sort of tags like that either. They just don't have any valid terrains assigned. It's all very confusing trying to figure out how to do what you want to do when modding this game, unless you want to do a simple tweak like changing numbers on stuff that already exists.
 
Back
Top Bottom