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

This Month's Specials

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

   







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

Reply
 
Thread Tools Display Modes
  #61  
Old June 22nd, 2003, 12:28 AM

JLS JLS is offline
Lieutenant Colonel
 
Join Date: Feb 2003
Location: RI. USA
Posts: 1,470
Thanks: 0
Thanked 0 Times in 0 Posts
JLS is on a distinguished road
Default Re: My AI Design Q&A

Quote:
Originally posted by JLS:
Regarding mine sweepers and cloasks).I don't see why not. I need and will test this, for both of us, I use this for 2 or 3 AI designs.
Quote:
Originally posted by cybersol:
Scout and Colony ships with mine sweeping and cloak died horribly without sweeping any of the mines. Mine sweepers will de-cloak for a previously marked mine field, but then they will cloak and move forward and happily die without sweeping any mines on the next warp point that has not been marked. So it sort of works for mine sweepers, but not at all for the rest.

Cybersol, thanks for the tip.
I was able to change a few things around in a few of the AIC designs in this Last Version

Again, thanks

[ June 21, 2003, 23:30: Message edited by: JLS ]
__________________
>~~~~~~AI CAMPAIGN -NEW-v4.191a AIC ~~~~~~<

Optimized for[i] Solitaire Play!
With or without all Warp points, Finite resources, same starts and Simultaneous movement


~~~ CLICK ON &gt;&gt;&gt; (((&gt; <font color="green"> AI CAMPAIGN v4.191 </font> &lt)) &lt;&lt;&lt; To Get ~~~
Reply With Quote
  #62  
Old June 22nd, 2003, 05:55 AM
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: My AI Design Q&A

Quote:
Originally posted by JLS:
Cybersol, thanks for the tip.
I was able to change a few things around in a few of the AIC designs in this Last Version

Again, thanks
I'm glad you found something I wrote useful, because you have been much more helpful to me in my AI design efforts.

Quote:
Originally posted by cybersol:
What other state transitions are possible starting in the exploration state?
quote:
Reply posted by JLS:
Again, there are many possible Scenarios that can occur.

However, along with the AI Exploration State change in the Scenarios posted above. I would say the most Common would be if:

Your AI had an agreement with another Player and Your AI no longer had Systems, reasonably close to Explore, your AI would go into the Infrastructure State.

How would the AI go from Exploration to Prepare for Attack? Or to Incursion?

When is Prepare for Defense used?

How long do Prepare for Attack and Prepare for Defense typically Last?
Reply With Quote
  #63  
Old June 22nd, 2003, 04:11 PM
Master Belisarius's Avatar

Master Belisarius Master Belisarius is offline
Colonel
 
Join Date: Jul 2000
Location: Montevideo Uruguay
Posts: 1,598
Thanks: 0
Thanked 0 Times in 0 Posts
Master Belisarius is on a distinguished road
Default Re: My AI Design Q&A

Quote:
Originally posted by cybersol:
How would the AI go from Exploration to Prepare for Attack? Or to Incursion?
When is Prepare for Defense used?
How long do Prepare for Attack and Prepare for Defense typically Last?
Good questions... and I have only a few answers.

Defend Short Term: The most important thing, is know that 95% of the time during the game, the AI is under the "Defend (Short Term)"...
IF the AI see a enemy ship into a system where the AI have a single planet, then the AI will change to "Defend (Short Term)".

Exploration: the AI always start into the Exploration state until the first contact. The AI could move again to the Exploration state, after some time without see ships/planets of another race.

Infraestructure: can remember that Aaron said that the AI move to Infraestructure state, after a long time without change the current state.

When Gold was near to be released, some beta testers had a chat into a Shrapnel forum with Aaron (I was unable to be Online when this happened ). Can remember that Aaron did a post explaining how the AI change the state, but now this forum was erased.

Anyway IMHO, because the AI most the time will be into the Defense Short Term (and exploration in the early game), the modder should consider the these states as the most importants.
Reply With Quote
  #64  
Old June 22nd, 2003, 06:37 PM

JLS JLS is offline
Lieutenant Colonel
 
Join Date: Feb 2003
Location: RI. USA
Posts: 1,470
Thanks: 0
Thanked 0 Times in 0 Posts
JLS is on a distinguished road
Default Re: My AI Design Q&A

Quote:
Originally posted by cybersol:

How would the AI go from Exploration to Prepare for Attack? Or to Incursion?
Assuming no changes from se4 Version 1.78
============================

On average the most AI State Changes, from the Exploration State is to:
1: Defend Short Term State
2: Infrastructure State
3: Not Connected State

Ok, from the first Exploration State; your AI just went into Infrastructure State, as we have previously discussed, by either (A)or(B)

A: Your AI had an agreement with another Player and Your AI no longer had Systems, reasonably close to Explore, your AI would go into the Infrastructure State.

If (A) was the only Variable, the AI or AI’s will live happily ever-after. Remain in Infrastructure and (may) Consider Not Connected State, at some point.

However, ALL: AI Settings Files, Anger Files, Politics Files and Accept Treaties; WILL always be in play. It is probable at some point, that/those AI may not like; living happily ever-after forever, and break the (Existing Treaty with the other Original Player)

===

B: If there is an Enemy Near but not in the Claimed Territory, then your AI may go into Infrastructure State

If (B) is the only variable to consider, and other Player had no agreement, then from the Infrastructure State.

If the Enemy Players System are Nearby, the AI may Consider the Prepare Attack State then to consider the actual * Attack State.
(This is why continuing a new game, when you start next to Psychos, like the XiChung; is not usually a winnable choice, in any se4 Game)
-
The AI may just consider the Incursion State early with a quick Muster, if that AI considers the enemies systems, is not well defended.
---
(C):The AI (may) Consider a Prepare for Defense State.
If the (adjacent system vs. Home/System) Ship strength numbers are not even near favorable
====
((D)): If your AI, IS IN any State mentioned above, and ANY ENEMY Player has entered your territory, then your AI WILL Change to Defend Short Term State for a few turns :

Your AI will now; analyze its current Situation, IF-THEN :

IF enemy is still in its territory after a few turns go by, it will remain in the Defend Short Term State * that may continue to * Prepare for Defense State, and in the end; to Defend (Long Term) State.
-----
Until:
(E) Enemy is NOT IN that AI’s territory and there are NO Systems to Explore; then your AI may revert to the ~(B) Infrastructure State

FROM (E)to(B)THEN and IF , Enough time since the Last Attack has passed from your AI Settings File (XiChung @ Turns to Wait until next attack := 6) then your AI WILL consider from (B) Infrastructure State again, for an Attack or an Incursion

(F) However, from Defend Short Term, if no enemy is in that AI territory, or nearby and there are Systems to Explore still; then your AI may revert all the way back to the Exploration State and start the above process, from the Scenario you presented; all over again.

========================================

* ~Tip~ * (IMO) To maintain the continuity and the transition to the next AI State; designers may want to stay with the default format intact for both:

AI State := Prepare for Defense, Defend (Short Term), Defend (Long Term)

(AND)

AI State := Prepare for Attack, Attack

---
Also (IMO FWIW):
Absolutely, a deviation from the from the above Format, may yield some FUNKY results, but this may also, lead to a distortion of the intended MODs, logical and total Combat (or Design TYPE) Ship totals.
It may also lead, to the dreaded Defend (Long Term) or just to stay stuck in Defend (Short Term); and/or resulting in no logic.
===========================================

Definitions and Actions:

AI Defend Short Term Strategic State:
This would be the first stage for the AI Player, to boot the other Enemy player out of his territory and for that AI to analyze its current Status for that current Situation
(Continues for about 5 turns. Then this AI will make a decisive decision; for the next State Change)
As outlined in ((D)),(E), and (F).
-

AI Prepare to Attack State:
AI considers a nearby enemy system is weak and could be conquered. Your AI will now prepare a Fleet/Fleets and get ready to attack that system.

AI Attack State:
Your AI will now consider this to be a valid and doable Attack, if so, then the AI will attack that Enemy System and attempt to conquer it.

In both the above, Prepare for Attack, Attack States, your AI has some save guards, so your AI may revert to various other states, however, the State you DO want to see, as the next change, is the:

Secure Holdings State
Your AI’s attack has been completed and it was VICTORIOUS.

Your AI will send in ships to secure the system (a few pre-built defense ships will do well here, if any planets were captured +Happy , and your AI will now want to colonize any empty planets…
This is were your next best Colony Expansion Policy, should reap, the next best and safest rewards

When in the Secure Holdings State and that newly conquered System is now totally secured; your AI will revert back to ~(B) Infrastructure State...
And your AI, may start the process all over again, begining from ~(B) Infrastructure State

Also note: If any Enemy enters any Territory, also from the Secure Holdings State.
Your AI will revert, briefly; to the ((D)) AI Defend Short Term Strategic State:
To re-evaluate
===
END
===
After over 6 hours, with this post. I think, I thought; every thing, trough
=
==
=
Any questions, please don’t hesitate to ask.

[ June 24, 2003, 02:07: Message edited by: JLS ]
__________________
&gt;~~~~~~AI CAMPAIGN -NEW-v4.191a AIC ~~~~~~&lt;

Optimized for[i] Solitaire Play!
With or without all Warp points, Finite resources, same starts and Simultaneous movement


~~~ CLICK ON &gt;&gt;&gt; (((&gt; <font color="green"> AI CAMPAIGN v4.191 </font> &lt)) &lt;&lt;&lt; To Get ~~~
Reply With Quote
  #65  
Old June 22nd, 2003, 09:18 PM

JLS JLS is offline
Lieutenant Colonel
 
Join Date: Feb 2003
Location: RI. USA
Posts: 1,470
Thanks: 0
Thanked 0 Times in 0 Posts
JLS is on a distinguished road
Default Re: My AI Design Q&A

Quote:
Originally posted by Master Belisarius:

Defend Short Term: The most important thing
Absolutely MB, I agree.
This is by far the most Critical of all the States to set up.

Actually the entire Prepare for Defense, Defend (Short Term) upto the Defend (Long Term) AI State falls under this need, for that AI; to do its best to oust the intruder; ASAP. (*See Note)

If it is unable, this AI has, in essence; resigned, to defend it-self with a costly, Defend (Long Term) State
=
==
=
(*Note):
Without this AI designer, distorting and/or undermining the se4 or MODS, LOGICAL total Combat(or Design TYPE) Ship PPI and MHAL Parameters.

[ June 22, 2003, 23:27: Message edited by: JLS ]
__________________
&gt;~~~~~~AI CAMPAIGN -NEW-v4.191a AIC ~~~~~~&lt;

Optimized for[i] Solitaire Play!
With or without all Warp points, Finite resources, same starts and Simultaneous movement


~~~ CLICK ON &gt;&gt;&gt; (((&gt; <font color="green"> AI CAMPAIGN v4.191 </font> &lt)) &lt;&lt;&lt; To Get ~~~
Reply With Quote
  #66  
Old June 23rd, 2003, 10:44 AM
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: My AI Design Q&A

MB and JLS, thanks for both of your very helpful comments explaining more about AI state to me. I am beginning to have enough of an understanding to break out construction queues in more detail. Here are my thoughts so far.

Right now I'm using these 3 groupings:
Exploration

Not Connected

Infrastructure, Prepare for Attack, Attack, Incursion, Prepare for Defense, Defend (Short Term), Defend (Long Term), Secure Holdings After Attack

I'm considering the following 6 groupings:
Exploration

Not Connected

Infrastructure

Secure Holdings After Attack

Prepare for Attack, Attack, Incursion

Prepare for Defense, Defend (Short Term), Defend (Long Term)

In the new groupings, I broke out Exploration and Not Connected for critical early game considerations. I broke out infrastructure because its the only relatively peaceful mid-game state. I broke out secure holdings after attack to emphasize a little extra colonization (but not as much as exploration), and with expectations of another attack soon. Finally I group the aggressive states together, and the defensive states together.

What do you guys think of those 6 groupings?
Reply With Quote
  #67  
Old June 23rd, 2003, 08:52 PM

JLS JLS is offline
Lieutenant Colonel
 
Join Date: Feb 2003
Location: RI. USA
Posts: 1,470
Thanks: 0
Thanked 0 Times in 0 Posts
JLS is on a distinguished road
Default Re: My AI Design Q&A

Quote:
Originally posted by Rollo:

5) everything else - don't bother with this queue too much. Other AI states than the ones already covered are very rare.

Hope this helps,
Rollo
I do not under stand, Rollo, What other AI state Changes are you referring to, and what event or other, would make it very rare?

[ June 23, 2003, 19:53: Message edited by: JLS ]
__________________
&gt;~~~~~~AI CAMPAIGN -NEW-v4.191a AIC ~~~~~~&lt;

Optimized for[i] Solitaire Play!
With or without all Warp points, Finite resources, same starts and Simultaneous movement


~~~ CLICK ON &gt;&gt;&gt; (((&gt; <font color="green"> AI CAMPAIGN v4.191 </font> &lt)) &lt;&lt;&lt; To Get ~~~
Reply With Quote
  #68  
Old June 23rd, 2003, 08:58 PM

JLS JLS is offline
Lieutenant Colonel
 
Join Date: Feb 2003
Location: RI. USA
Posts: 1,470
Thanks: 0
Thanked 0 Times in 0 Posts
JLS is on a distinguished road
Default Re: My AI Design Q&A

Quote:
Originally posted by cybersol:
I'm considering the following 6 groupings:
Exploration

Not Connected

Infrastructure

Secure Holdings After Attack

Prepare for Attack, Attack, Incursion

Prepare for Defense, Defend (Short Term), Defend (Long Term)

In the new groupings, I broke out Exploration and Not Connected for critical early game considerations. I broke out infrastructure because its the only relatively peaceful mid-game state. I broke out secure holdings after attack to emphasize a little extra colonization (but not as much as exploration), and with expectations of another attack soon. Finally I group the aggressive states together, and the defensive states together.

What do you guys think of those 6 groupings?
This may work for you, Cybersol. And you have the most critical States covered: Prepare for Defense, Defend (Short Term), Defend (Long Term)
=
What (MAY or MAY NOT) prove to be problematic, is the AI in its pocket, has specific safe guards, for some specific events or order of events; in each specific State.

It will always be a wonder, if the AI did and has followed all the possable, reactionary State Changes and logic.

More fuel for thought

AI State := Secure Holdings After Attack, Incursion

The interesting aspect of the default combined AI strategic state of Secure Holdings After Attack and Incursion, is that in in both these States, your AI will immediately MUSTER ships that are already available, to include the ships that are already nearby for your AI to direct towards that TARGETED system.
All in the same while, your AIs Ship Yards are cranking out the needed support ships and replacements for either mission, and if you really think about it. Both missions require the exact same needs.
=
Please consider:
For the Attack, your AI’s is required to: Prepare First, long before the actual Commitment will be made on an Attack State; for that AI's already been pre-determined, enemy targeted System.

Once Prepaired, and the forces are ready to attack. The AI WILL now evaluate if this Attack is still valid: and if so, then commit to the; AI Attack State.

To name a few COMMON events/safe gaurds, your AI WILL evaluate:
1: Is the target system even good anymore.
2: Is there enough ships to make this attack.
3: Can Target system still be conquered.
4: Fleet/System build up, is it (valid).
5: Does it have enough ships to continue this attack.
6: Too long in this state.

Please also consider, your AI may be taking on a big objective, so your AI will Prepare needed Attack Ships, loaded CVs, loaded Troop Ships and Mine Sweepers. In the Prepare State. Then after the deed is done and you should win, A few colony ships, layers, Pop Transports, etc. will only then be required.
====

I would consider the basic mission needs, and compare them.

Secure Holdings After Attack, Incursion. Both here require a quick strike with a few assets and the need for speedy reinforcements.

[ June 23, 2003, 23:03: Message edited by: JLS ]
__________________
&gt;~~~~~~AI CAMPAIGN -NEW-v4.191a AIC ~~~~~~&lt;

Optimized for[i] Solitaire Play!
With or without all Warp points, Finite resources, same starts and Simultaneous movement


~~~ CLICK ON &gt;&gt;&gt; (((&gt; <font color="green"> AI CAMPAIGN v4.191 </font> &lt)) &lt;&lt;&lt; To Get ~~~
Reply With Quote
  #69  
Old June 23rd, 2003, 10:05 PM
Rollo's Avatar

Rollo Rollo is offline
Brigadier General
 
Join Date: Jul 2001
Location: Kiel, Germany
Posts: 1,896
Thanks: 0
Thanked 0 Times in 0 Posts
Rollo is on a distinguished road
Default Re: My AI Design Q&A

Quote:
Originally posted by JLS:
quote:
Originally posted by Rollo:

5) everything else - don't bother with this queue too much. Other AI states than the ones already covered are very rare.

Hope this helps,
Rollo
I do not under stand, Rollo, What other AI state Changes are you referring to, and what event or other, would make it very rare?
I am referring to the AI states that were not covered in queues 1) - 4). Namely: Secure Holdings After Attack, Incursion, Prepare for Defense, Defend (Long Term). I have seen the AI very rarely (if ever) in these states. When I say rare I mean less than 5%.

Defend (Short Term) is the dominant AI state. Infrastructure is second. Occasionally the AI goes to 'Prepare for Attack' and 'Attack' after that.

Rollo

[ June 23, 2003, 21:08: Message edited by: Rollo ]
__________________
SE4
Devnull Mod Gold:
Version 1.80
Dungeon Odyssey:
Hack and Slash
Version 0.53e
Reply With Quote
  #70  
Old June 23rd, 2003, 10:56 PM

JLS JLS is offline
Lieutenant Colonel
 
Join Date: Feb 2003
Location: RI. USA
Posts: 1,470
Thanks: 0
Thanked 0 Times in 0 Posts
JLS is on a distinguished road
Default Re: My AI Design Q&A

Quote:
Originally posted by Rollo:
quote:
Originally posted by JLS:
quote:
Originally posted by Rollo:

5) everything else - don't bother with this queue too much. Other AI states than the ones already covered are very rare.

Hope this helps,
Rollo
I do not under stand, Rollo, What other AI state Changes are you referring to, and what event or other, would make it very rare?
I am referring to the AI states that were not covered in queues 1) - 4). Namely: Secure Holdings After Attack, Incursion, Prepare for Defense, Defend (Long Term). I have seen the AI very rarely (if ever) in these states. When I say rare I mean less than 5%.

Defend (Short Term) is the dominant AI state. Infrastructure is second. Occasionally the AI goes to 'Prepare for Attack' and 'Attack' after that.

Rollo

Rollo,
What Vehicle Construction File of your design, would you suggest be referenced, as it involves the less dominate AI states. Namely: Secure Holdings After Attack, Incursion, Prepare for Defense, Defend (Long Term).
__________________
&gt;~~~~~~AI CAMPAIGN -NEW-v4.191a AIC ~~~~~~&lt;

Optimized for[i] Solitaire Play!
With or without all Warp points, Finite resources, same starts and Simultaneous movement


~~~ CLICK ON &gt;&gt;&gt; (((&gt; <font color="green"> AI CAMPAIGN v4.191 </font> &lt)) &lt;&lt;&lt; To Get ~~~
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 07:26 PM.


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