Post by islandia on Dec 10, 2006 2:12:33 GMT -5
I've made two map scripts for Inland Sea and TBG that place resources in several passes in an attempt to get food resources very close to the city fat cross and vital resources for later eras placed within 4 or 5 cultural expansions of where you set down.
I rambled a bit about this in the balanced map discussion quoted here:
In general terms there is a balance string that is used to determine what resources get balanced and those resources are placed in 4 passes through a certain looping algorithm that is specified to be x = (-5,6) y = (-5,6) from the starting location of the player. We can obviously add two more resource strings and break up the placement as follows
foodresourcesToBalance = ( 'BONUS_PIG', 'BONUS_RICE', 'BONUS_SHEEP', 'BONUS_GOLD', 'BONUS_WHEAT', 'BONUS_CORN', 'BONUS_COW')
niceresourcesToBalance ('BONUS_MARBLE', 'BONUS_STONE', 'BONUS_IVORY', 'BONUS_GOLD', 'BONUS_SILVER')
stratresourcesToBalance('BONUS_IRON', 'BONUS_HORSE', 'BONUS_COPPER', 'BONUS_OIL', 'BONUS_URANIUM', 'BONUS_ALUMINUM', 'BONUS_COAL')
The first pass through we will try to place the food resources in a x = (-2,4) y = (-2,4) plot. Then when that bonus placement is done we place the nice to have resources in a x = (-4,5) y = (-4,5) plot. And finally we place the remaining strat resrouces in a x = (-5,6) y=(-5,6) plot.
This would ensure that in valid spaces nearest the city would get the food placement first followed by the spaces closer to the city not in the fat cross getting most of the bonus happy/wonder buildling resources and finally the strategic resources being placed on the last pass through in the biggest area allowed and thus would be in the 7 squares away radius but almost definitely not in the city radius.
The big drawback I see to this is that with the number of resources added it would actually be a disadvantage to start on a floodplains because those squares are not eligible for bonus resources (along with Mountains, lakes etc...) Thus if you have too many of those near your city, you are pretty much SOL on some food resources. Also note that these bonus resources are placed *before* map normalization of your start position so sometimes it might be hard to place corn, wheat, rice if you happen to start near the poles and your native city was really tundra before it got map normalized to plains/grasslands.
-------------------------------------------------------------------------------
Mainly this is intended for OCC, but even in a normal game it will mean that you will get your strategic resources close to your capital and will have some bonus food as well.
www.civ4fans.com/modcentral.php
I rambled a bit about this in the balanced map discussion quoted here:
In general terms there is a balance string that is used to determine what resources get balanced and those resources are placed in 4 passes through a certain looping algorithm that is specified to be x = (-5,6) y = (-5,6) from the starting location of the player. We can obviously add two more resource strings and break up the placement as follows
foodresourcesToBalance = ( 'BONUS_PIG', 'BONUS_RICE', 'BONUS_SHEEP', 'BONUS_GOLD', 'BONUS_WHEAT', 'BONUS_CORN', 'BONUS_COW')
niceresourcesToBalance ('BONUS_MARBLE', 'BONUS_STONE', 'BONUS_IVORY', 'BONUS_GOLD', 'BONUS_SILVER')
stratresourcesToBalance('BONUS_IRON', 'BONUS_HORSE', 'BONUS_COPPER', 'BONUS_OIL', 'BONUS_URANIUM', 'BONUS_ALUMINUM', 'BONUS_COAL')
The first pass through we will try to place the food resources in a x = (-2,4) y = (-2,4) plot. Then when that bonus placement is done we place the nice to have resources in a x = (-4,5) y = (-4,5) plot. And finally we place the remaining strat resrouces in a x = (-5,6) y=(-5,6) plot.
This would ensure that in valid spaces nearest the city would get the food placement first followed by the spaces closer to the city not in the fat cross getting most of the bonus happy/wonder buildling resources and finally the strategic resources being placed on the last pass through in the biggest area allowed and thus would be in the 7 squares away radius but almost definitely not in the city radius.
The big drawback I see to this is that with the number of resources added it would actually be a disadvantage to start on a floodplains because those squares are not eligible for bonus resources (along with Mountains, lakes etc...) Thus if you have too many of those near your city, you are pretty much SOL on some food resources. Also note that these bonus resources are placed *before* map normalization of your start position so sometimes it might be hard to place corn, wheat, rice if you happen to start near the poles and your native city was really tundra before it got map normalized to plains/grasslands.
-------------------------------------------------------------------------------
Mainly this is intended for OCC, but even in a normal game it will mean that you will get your strategic resources close to your capital and will have some bonus food as well.
www.civ4fans.com/modcentral.php