SmartMap got your wheat and sugar? Here's the solution!

DieselBiscuit

Shoggoth tickler
Joined
Oct 23, 2005
Messages
117
Location
Land of the ice and snow (and oil)
I you're using SmartMap (or a derivative) for generating your maps for FFH you will probably have noticed the relative lack of wheat and sugar. Here's two simple fixes for this:

NOTE: Before you do any modifications to your files you should back them up! This is an issue of good programmers habits. Yes, you can always reinstall but it really is a waste of time.

Wheat:
In vanilla Civ wheat spawns on plains tiles. In FFH it is set to spawn on grassland. Enter the xml\terrain-folder and open the file CivIVBonusInfos.xml. On line 1105 you will see the text

<TerrainType>TERRAIN_GRASS</TerrainType>

Rewrite this to

<TerrainType>TERRAIN_PLAINS</TerrainType>

, save and the wheat part should be taken care of. I've found that this creates rather much wheat at the moment, perhaps due to lack of other health resources set to spawn on plains.​

Sugar:
To effectively get at least a couple of sugar per continent you should enter the SmartMap.py file located in your PublicMaps folder. In my version (2.0) you simply have to add sugar to the list of resources that are important early on in line 50.

Original line:

resourcesImportantEarly = ('BONUS_STONE', 'BONUS_MARBLE', 'BONUS_COPPER', 'BONUS_IRON', 'BONUS_HORSE')

Modified line:

resourcesImportantEarly = ('BONUS_STONE', 'BONUS_MARBLE', 'BONUS_COPPER', 'BONUS_IRON', 'BONUS_HORSE', 'BONUS_SUGAR')

The effect of this is a modest increase of sugar on your maps from nearly zero (got 1 sugar in about 25 maps) to a modest 5-6 on a regular map.​

Ok, that was all. I hope I've contributed to solving more than just my own sugar and wheat deficiency :p
 
Thank you, this is exactly the sort of thing I've been looking for. I haven't noticed a wheat shortage, but sugar is definitely missing or low on tectonics maps. Would this work for that as well?
 
I've not tried tectonics but a quick glance at the forum for the script tells me that it might be tied to it generating a lot of plains and thus less grassland with jungle, which are the only tiles suitable for spawning sugar.

I also noticed that the fix I posted for SmartMap 2.0 might be seriously out of date, since it's already in version 9.1 :blush: Well, that's what I get for not reading up on what I use.
 
Im not sure why wheat is set for grasslands instead of plains in FfH. Unless anyone knows why it was set that way I will put it back to plains.
 
Back
Top Bottom