Mod help: build naval units in inland-fresh-water-tile-adjacent city

windmilltilter

Chieftain
Joined
Mar 18, 2006
Messages
46
I have a current game where I have an inland lake with two cities on it. The first city can build naval units because it's also adjacent to the ocean. The other city can't, even though any naval units it made could patrol the lake and also get to the ocean via the first city.

Is there an easy tweak to make inland-fresh-water-tile-adjacent cities be able to build naval units ?

Thanks!
 
You can go into the CIV4UnitInfos.xml file and find the unit you want to change. Then look for the code <iMinAreaSize>. The number inbetween the brackets is how many water tiles inside the lake/sea you need next to the city to build the unit.

For a 1 tile lake you'd put 1, to build the unit without water you'd put -1. You'll have to edit the number for each ship unit you want to change.
 
Thanks for the info.

I was wondering if there's some AI function or something that can tell if a city can connect up to an ocean square, like through another city or fort. The AI must have something like this in order to sail a ship into inland lakes/cities as I've seen it do before.

Thanks!
 
Back
Top Bottom