.com.unity Forums
  The Official e-Store of Shrapnel Games

This Month's Specials

Raging Tiger- Save $9.00
winSPMBT: Main Battle Tank- Save $6.00

   







Go Back   .com.unity Forums > Shrapnel Community > Space Empires: IV & V

Reply
 
Thread Tools Display Modes
  #1  
Old June 4th, 2003, 01:05 AM
Grand Deceiver's Avatar

Grand Deceiver Grand Deceiver is offline
Corporal
 
Join Date: Nov 2002
Location: North Carolina
Posts: 52
Thanks: 0
Thanked 0 Times in 0 Posts
Grand Deceiver is on a distinguished road
Default 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
Reply With Quote
  #2  
Old June 4th, 2003, 02:46 AM

Baron Munchausen Baron Munchausen is offline
General
 
Join Date: Aug 2000
Location: Ohio, USA
Posts: 4,323
Thanks: 0
Thanked 0 Times in 0 Posts
Baron Munchausen is on a distinguished road
Default 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 ]
Reply With Quote
  #3  
Old June 4th, 2003, 03:05 AM
Grand Deceiver's Avatar

Grand Deceiver Grand Deceiver is offline
Corporal
 
Join Date: Nov 2002
Location: North Carolina
Posts: 52
Thanks: 0
Thanked 0 Times in 0 Posts
Grand Deceiver is on a distinguished road
Default 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
Reply With Quote
  #4  
Old June 4th, 2003, 09:08 PM
cybersol's Avatar

cybersol cybersol is offline
Corporal
 
Join Date: May 2003
Location: SF Bay Area, CA
Posts: 145
Thanks: 0
Thanked 0 Times in 0 Posts
cybersol is on a distinguished road
Default 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?
Reply With Quote
  #5  
Old June 4th, 2003, 09:14 PM
oleg's Avatar

oleg oleg is offline
Lieutenant General
 
Join Date: Jan 2001
Location: Oxford, UK
Posts: 2,592
Thanks: 0
Thanked 0 Times in 0 Posts
oleg is on a distinguished road
Default 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
Reply With Quote
  #6  
Old June 4th, 2003, 09:36 PM

Baron Munchausen Baron Munchausen is offline
General
 
Join Date: Aug 2000
Location: Ohio, USA
Posts: 4,323
Thanks: 0
Thanked 0 Times in 0 Posts
Baron Munchausen is on a distinguished road
Default 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.
Reply With Quote
Reply

Bookmarks


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 On

Forum Jump


All times are GMT -4. The time now is 03:34 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2024, Shrapnel Games, Inc. - All Rights Reserved.