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

Notices

Reply
 
Thread Tools
Old Jan 08, 2007, 04:47 PM   #1
primem0ver
King
 
primem0ver's Avatar
 
Join Date: Jun 2006
Posts: 904
AI questions... SDK programming

OK I have two questions about the SDK and AI programming.

First... I know there are several classes that handle a lot of the AI stuff. Is this all? I am a mod developer who is looking to start understanding how to change the AI behaves/works and suggests so I need to know where to start.

Second...

I have made some new improvements that do not increase commerce or food or anything of the sort so the AI does not currently know that they can help him. (Two new kinds of improvements that will help him for military reasons). I know how I will help the AI evaluate whether the improvement will help him.

What I don't know is where is the code that changes the value the AI places on the improvement. Example:

if the AI sees that the an improvement is helpful, it highlights it blue for the human player. WHERE is the code for this? I want to be able to recommend a build for the human AND the AI!
__________________
Genetic Era Mod team member

The unofficial events expansion! Preview it here

"I set the wheels in motion, turn up all the machines
Activate the programs and run behind the scenes
I set the clouds in motion, turn up light and sound
Activate the window and watch the world go round"

from "Prime Mover" by Rush.
primem0ver is offline   Reply With Quote
Old Jan 08, 2007, 07:56 PM   #2
Impaler[WrG]
Civ4:Col UI programmer
 
Impaler[WrG]'s Avatar
 
Join Date: Dec 2005
Location: Vallejo, California
Posts: 1,736
Blake at Apolyton is the best source of knowlage about the AI, read his thread HEREand look at his AI codes in the 2.08 patch
__________________
Companions the creator seeks, not corpses, not herds and believers. Fellow creators, the creator seeks - those who write new values on new tablets. Companions the creator seeks, and fellow harvesters; for everything about him is ripe for the harvest. - Thus spoke Zarathustra, Fredrick Nietzsche

Civ 4 Community Core Project One DLL to Rule them ALL, Now a part of WoC, 3.02 version in the Progress
Modular XML Loading 3.0 True Drag and Drop modability, Included by Firaxis in Beyond the Sword
World Of Civilization A World of Mods under one roof
Impaler[WrG] is offline   Reply With Quote
Old Jan 09, 2007, 03:02 PM   #3
primem0ver
King
 
primem0ver's Avatar
 
Join Date: Jun 2006
Posts: 904
Thanks for the pointer! I will check it out. Meanwhile I am open to any other suggestions.
__________________
Genetic Era Mod team member

The unofficial events expansion! Preview it here

"I set the wheels in motion, turn up all the machines
Activate the programs and run behind the scenes
I set the clouds in motion, turn up light and sound
Activate the window and watch the world go round"

from "Prime Mover" by Rush.
primem0ver is offline   Reply With Quote
Reply

Bookmarks

Go Back Civilization Fanatics' Forums > CIVILIZATION IV > Civ4 - Creation & Customization > AI questions... SDK programming

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Mac programming questions Flintlock1415 Civ4 - Macintosh 14 Feb 23, 2009 07:42 PM
[SDK] How AI players change unit's AI? stmartin Civ4 - SDK/Python 6 Feb 11, 2009 08:46 PM
[SDK] Programming the AI to Perform a Unit Action Gaius Octavius Civ4 - SDK/Python 25 Oct 22, 2008 06:46 PM
AI Programming The Great Apple Civ4 - General Discussions 74 Feb 15, 2006 10:59 PM
Trading features and AI programming ShadowWarrior Civ3 - General Discussions 4 Aug 15, 2001 02:58 PM


Advertisement

All times are GMT -6. The time now is 01:21 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