|
|
|
|
June 4th, 2003, 01:05 AM
|
|
Corporal
|
|
Join Date: Nov 2002
Location: North Carolina
Posts: 52
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Explanation of AI State??
Can someone give me a hand in understanding what the different AI States do and mean?
AI State:
Exploration, Infrastructure, Prepare for Attack, Attack,
Secure Holdings After Attack, Incursion, Prepare for Defense,
Defend (Short Term), Defend (Long Term), Not Connected
Looking through the files I see that they are used in the following files:
Default_AI_Planet_Types
Default_AI_Research
Default_AI_Construction_Facilities
Default_AI_Research
Default_AI_Construction_Vehicles
__________________
Grand Deceiver
SSgt USMC
SEMPER FIDELIS
The only reason some people are still alive is because it is illegal to kill them
|
June 4th, 2003, 02:46 AM
|
General
|
|
Join Date: Aug 2000
Location: Ohio, USA
Posts: 4,323
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Re: Explanation of AI State??
Most of the AI is hard coded. It will assess what is happening and go into a particular 'state' according to its decision criteria. The names of the possible states are what you have posted. It's not too difficult to figure out what they mean. Exploration and Infrastructure are used when no enemies are present. Prepare to attack and attack are used when an enemy is judged to be in the AI's claimed territory and it finds itself strong enough to attack. Secure holdings after Incursion I'm not sure about -- it might be after the AI attacks, it might be after the AI has been attacked. The defend options are easy enough. I've never seen Defend (Long Term) actually used by the AI, though. Not Connected is for when the AI realizes it's cut off from the rest of the map (no warp points).
Theoretically, you could use all those various state names to make the AI behave differently according to it's 'state' when selecting colony types, researching, building ships, etc. In practice the only place where this is useful is in ship/unit construction.
Think about it. If the AI were told to research weapons only when in one of the 'threatened' states -- presumably to speed 'infrastucture' research like resource extraction technologies -- it would be a sitting duck for the first enemy that came along after an extended pause in weapons research. Which would probably be the first contact with a major rival. It would be far behind an empire that researched weapons without pause and just be ripe for the picking of those infrastructure techs. And of course it doesn't make any sense at all to have it reversed, researching weapons only when not threatened.
The same goes for selecting colony types. The AI is already very bad at balancing its resources. It would be foolish to tell it to not build military installations or not build 'Intelligence' colonies when not at war. And you can't tell it to not develop resource planets when at war, because available resources can make all the difference in a war. There is no mechanism to re-assign colony types, either. It would be stuck, again, with lots of juicy undefended but developed stuff easily taken. You must tell it to develop its holdings in the same way at all times.
The only place where using different AI states is actually worthwhile is in *_AI_Construction_Vehicles.txt where you can tell it to build different types of ships or units when exploring, defending, or attacking. The 'scripting' is just too crude to be useful in the other files.
[ June 04, 2003, 01:50: Message edited by: Baron Munchausen ]
|
June 4th, 2003, 03:05 AM
|
|
Corporal
|
|
Join Date: Nov 2002
Location: North Carolina
Posts: 52
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Re: Explanation of AI State??
Baron,
Thanks, you actually answered my question rather well...I am hoping to make a foray into making my own mod. NowI know how NOT to limit the AI any more than it is.
__________________
Grand Deceiver
SSgt USMC
SEMPER FIDELIS
The only reason some people are still alive is because it is illegal to kill them
|
June 4th, 2003, 09:08 PM
|
|
Corporal
|
|
Join Date: May 2003
Location: SF Bay Area, CA
Posts: 145
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Re: Explanation of AI State??
Does anyone know what specifically causes the AI to switch from exploration to infrastructure?
And how is incursion different from attack?
|
June 4th, 2003, 09:14 PM
|
|
Lieutenant General
|
|
Join Date: Jan 2001
Location: Oxford, UK
Posts: 2,592
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Re: Explanation of AI State??
JLC posted a good explanation about AI states some time ago, but I can not find his post
May be if he reads this, he will post it again.
__________________
It is forbidden to kill; therefore all murderers are punished unless they kill in large numbers and to the sound of trumpets. - Voltaire
|
June 4th, 2003, 09:36 PM
|
General
|
|
Join Date: Aug 2000
Location: Ohio, USA
Posts: 4,323
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Re: Explanation of AI State??
Quote:
Originally posted by cybersol:
Does anyone know what specifically causes the AI to switch from exploration to infrastructure?
And how is incursion different from attack?
|
Exactly why it switches states is not very clear.
Incursion seems to mean 'attacked by someone else' while Attack means 'attack someone else'. So, I think the 'secure holdings after incursion state' is repair of your empire after it's been attacked. A useful state. But it might also be triggered after you've conquered a new system. The AI 'advances' by claiming a system and then attacking the 'foreign' presence there, remember.
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is On
|
|
|
|
|