Why are AI Civs ingnoring city distance rules?

MHKnights

Chieftain
Joined
Feb 17, 2006
Messages
29
Location
Madison WI
I modded the minimum distance between cities to four squares (default is two) but the AI Civs are ignoring this. When I try to create a city within four squares I get the normal error message. The AI Civs regularly build cities within two spaces of eachother or right next to mine.

The only thing I changed was the one line of code in an XML file (sorry, I forget where it is located). Did I need to change something in addition to that?
 
Try the attached file, it must be set in Assets/XML. In my case, I set a value of 3 between the cities.
 

Attachments

Hmm...

I just altered the regular GlobalDefines XML file. I always wondered what that Alt one was there for. I will see what the game does now and will try to get some screens.
 
Never modify GlobalDefines.xml. What you should do instead is copy the entire tag you want to alter into GlobalDefinesAlt.xml and make the change there.

Basically, GlobalDefines.xml is changed with every official patch, so if you make changes to it you'll get versioning errors all over the place. The values in GlobalDefinesAlt.xml are used to overwrite the default values in the base GlobalDefines.xml. That way Firaxis can make the changes they need to on global values, and you can safely modify them without gumming up the entire system.
 
Whoa, they've done something right. I wonder why they didn't do that for all files... It would be _so_ much easier to combine mods if each one only contained the changed things.
 
Zurai said:
Never modify GlobalDefines.xml. What you should do instead is copy the entire tag you want to alter into GlobalDefinesAlt.xml and make the change there.

Doh...

So I should probally go and change it back. Maybe that is why the AI Civs are still ignoring the change.

Round three I guess.
 
That shouldn't be your problem. As far as the game is concerned, it doesn't matter which file the value came from. I don't know why the AIs would be ignoring that distance restriction, unfortunately.
 
Back
Top Bottom