Barbarian activity and .xml files

fritzyoski

Chieftain
Joined
May 28, 2006
Messages
2
Hi,
I like to play on very large maps so I edited the settings in "civ4\Assets\XML\GameInfo\CIV4GamespeedInfo.xml" to get a 160x100 map size. Playing Highlands which is mostly land this game has turned into barbarian hell. They attack with stacks of 3-5 archers and spearmen when I might have 2 or 3 warriors. I actually won the game because they wiped out every other civ. Not really very interesting to me. Fighting barbarians is OK but I don't like if that's the only focus of the game. So my goal is to drastically reduce barbarian activity by editing the .xml files.
I found in CIV4GamespeedInfo.xml:
<iBarbPercent>400</iBarbPercent>

and in \civ4\Assets\XML\GameInfo\CIV4HandicapInfo.xml
<iUnownedTilesPerBarbarianUnit>50</iUnownedTilesPerBarbarianUnit>
...and similarly: iUnownedWaterTilesPerBarbarianUnit, iUnownedTilesPerBarbarianCity, iBarbarianCreationTurnsElapsed, iBarbarianCityCreationTurnsElapsed, iBarbarianCityCreationProb

I want to reduce the barbarian spawning rate. So I assume setting <iUnownedTilesPerBarbarianUnit>50 to maybe <iUnownedTilesPerBarbarianUnit>250 which should cut it to about 1/5 of the current rate.
What exactly does "iBarbPercent" control and how does it related to the parameters found in CIV4HandicapInfo.xml? Any help would be appreciated.
Thanks
 
You're on the right tracks.

iBarbPercent defines the rate at which barbarians appear. It's another modifier, based on game speed. Modifiers are often defined in several files, per game speed, per handicap, per world size. The game takes them all into consideration.
 
I increased iUnownedTilesPerBarbarianUnit from 50 to 250 and iUnownedTilesPerBarbarianCity to a similar value and barbarian activity slowed noticeably. There were still Barbarians so you couldn't send out an unprotected settler or worker but there were no stacks of 3-5 advanced level barbarian military attacking my cites that are defended by 2 warriors every 5 turns or so.
I didn't modify the iBarbPercent, left it at 400 for huge maps.
 
Back
Top Bottom