Advertisement
Civilization Fanatics' Center  

Welcome to Civilization Fanatics' Center.

You are currently viewing our site as a guest which gives you limited access to our site features. By joining our free community, you will be able to participate in the discussions, search the forum, send private messages, vote in polls, upload your own screenshots to the gallery, and access many other special features. Registration is fast, simple and absolutely free, so sign up today! If you have any problems with the registration process or your account login, please contact support.

Go Back   Civilization Fanatics' Forums > CIVILIZATION IV > Civ4 - Creation & Customization > Civ4 - Project & Mod Development > Civ4 - Rise of Mankind > RoM Modmods > Rise of Mankind: A New Dawn

Notices

Reply
 
Thread Tools
Old May 13, 2012, 06:43 AM   #1
cfeyyaz
Chieftain
 
cfeyyaz's Avatar
 
Join Date: Oct 2005
Location: Istanbul
Posts: 17
Angry AI City Placement

Hi, I've been working on improving and optimizing the gameplay aspects of A New Dawn for several months. I am neither a professional modder, nor a learned programmer, so what I was doing, is simply editing XML files. And I need at this point your help.

AI builds too many cities on resources itself, which isn't advantegous at all. I mostly have to raze an enemy city, so that I can build the city on a next tile.

I think, when building a city, the AI considers the third ring of the city too, and the optimized city placement ends up being on a bonus resource. Since I don't use and I don't want to use "Larger Cities" option in my games, most of the AI cities stand ridiculous.

So my question is: Is there any possible way to deactivate the feature "Larger Cities" and its all effects on the game? (The settlers think the way in normal BtS, the resources on 2nd ocean tiles don't appear, etc...)

If not, is it at least possible to implement, that AI never/almost never builds cities on resources? Forbidding cities on resources can be also a possible solution here?

I am really forward for your advices.

Thank you
cfeyyaz is offline   Reply With Quote
Old May 15, 2012, 10:50 PM   #2
IPEX-731BA5DD06
Emperor
 
IPEX-731BA5DD06's Avatar
 
Join Date: Dec 2005
Location: Melbourne, Victoria, Australia
Posts: 1,571
I think you'll find, they are settling these cities, on top of resources, BEFORE, they have the tech to "see" these resources.

An Example:

Settles a city on top of a copper resource, doesn't have bronze working as yet.

Settles on top of a gold resource, they don't have the tech to see gold (an early one)

Settles on top of Coal, they don't have steam power (I think)
__________________
10,000 Yr Reign of Atotoztli - Current story write up of the 'Rise of Mankind - 'A New Dawn" Stand alone Mod
Installing Civ 4 under Linux, or Ubuntu specifically. 12.04.1 latest Long Term Support Edition, 64 bit Linux used
The end of days The tale of Lord Monty the Barbaric
IPEX-731BA5DD06 is offline   Reply With Quote
Old May 16, 2012, 02:19 PM   #3
cfeyyaz
Chieftain
 
cfeyyaz's Avatar
 
Join Date: Oct 2005
Location: Istanbul
Posts: 17
I tried a start from classical age instead, so that AI knows where for instance marmor or silk is. However AI continued building his cities on valauble resources, which otherwise could be used much more advantageous.

So, your promising suggestion didn't work unfortunately
cfeyyaz is offline   Reply With Quote
Old May 20, 2012, 04:20 AM   #4
steevo
Chieftain
 
Join Date: Nov 2010
Posts: 9
i too have noticed this- I'm uncerertain as to the details but has anyone else noticed the AI settles right next to tiles that are river-adjacent? Even on the highest difficulty it still continually denies itself the opportunity to establish cities with the most potential growth (irrigation canals) and eventually production (levees) not to mention trade connection because when it comes to expanding via settlement AI priorities are curiously out of order.
steevo is offline   Reply With Quote
Old May 25, 2012, 01:00 PM   #5
cfeyyaz
Chieftain
 
cfeyyaz's Avatar
 
Join Date: Oct 2005
Location: Istanbul
Posts: 17
Hey steevo, I've just discovered a code at the file named A_New_Dawn_GlobalDefines:

<Define>
<DefineName>AI_SETTLE_ON_RIVERS_VALUE_BOOST</DefineName>
<iDefineIntVal>250</iDefineIntVal>
</Define>

I think, if you increase the value, the ai will more likely build on rivers. I hope this works

I hope that someone might code for me something like build_city_on_resources = -9999 or something
cfeyyaz is offline   Reply With Quote
Reply

Bookmarks

Go Back Civilization Fanatics' Forums > CIVILIZATION IV > Civ4 - Creation & Customization > Civ4 - Project & Mod Development > Civ4 - Rise of Mankind > RoM Modmods > Rise of Mankind: A New Dawn > AI City Placement

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Advertisement

All times are GMT -6. The time now is 07:58 PM.


Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
This site is copyright © Civilization Fanatics' Center.
Support CFC: Amazon.com | Amazon UK | Amazon DE | Amazon CA | Amazon FR