.com.unity Forums

.com.unity Forums (http://forum.shrapnelgames.com/index.php)
-   Space Empires: IV & V (http://forum.shrapnelgames.com/forumdisplay.php?f=20)
-   -   Stubborn AI (http://forum.shrapnelgames.com/showthread.php?t=11643)

Kevin Arisa March 18th, 2004 01:30 AM

Stubborn AI
 
I have my AI's set to build 3 different sizes of ships using the AI_DesignCreation files. However they only want to build the first "attack ship" They seem to be completly ignoring the other ones. I checked in the AI_Settings files but i already had them set to use whatever size they want from the start. I need help! My AI's wont move past destroyer!

Master Belisarius March 18th, 2004 01:52 AM

Re: Stubborn AI
 
Quote:

Originally posted by Kevin Arisa:
I have my AI's set to build 3 different sizes of ships using the AI_DesignCreation files. However they only want to build the first "attack ship" They seem to be completly ignoring the other ones. I checked in the AI_Settings files but i already had them set to use whatever size they want from the start. I need help! My AI's wont move past destroyer!
<font size="2" face="sans-serif, arial, verdana">IF you want to include different names, you need to do something like that:

Entry 2 Type := Attack1
Entry 2 Planet Per Item := 0
Entry 2 Must Have At Least := 3
Entry 3 Type := Attack2
Entry 3 Planet Per Item := 0
Entry 3 Must Have At Least := 6
Entry 4 Type := Attack3
Entry 4 Planet Per Item := 0
Entry 4 Must Have At Least := 9

Then, the AI will build 3 Attack1, 3 Attack2 and finally 3 Attack3.

You can do it using the PlanetPerItem too.

Atrocities March 18th, 2004 02:34 AM

Re: Stubborn AI
 
Boy I can see my work is cut our for me now. I need to do this very same thing.

Also Try setting up the ship designs in the designCreation file by tonnage size.

Escort = 200 so set it from Min 190 to Max 210 and see if the AI designs them.

Kevin Arisa March 18th, 2004 09:28 AM

Re: Stubborn AI
 
Thank you, and yes, the AI designs ships no problem. in fact some of it's ships have been rolling mine downtown. Thanks Belisarius for the tip. I will try it now.

Kevin Arisa March 18th, 2004 10:04 AM

Re: Stubborn AI
 
*sigh* it didn't work. here is an example of what my construction file looks like:

AI State := Prepare for Attack, Attack
Num Queue Entries := 9
Entry 1 Type := Attack Ship
Entry 1 Planet Per Item := 2
Entry 1 Must Have At Least := 3
Entry 2 Type := Medium Attack Ship
Entry 2 Planet Per Item := 2
Entry 2 Must Have At Least := 2
Entry 3 Type := Heavy Attack Ship
Entry 3 Planet Per Item := 2
Entry 3 Must Have At Least := 1
Entry 4 Type := Mine
Entry 4 Planet Per Item := 5
Entry 4 Must Have At Least := 2
Entry 5 Type := Fighter
Entry 5 Planet Per Item := 2
Entry 5 Must Have At Least := 20
Entry 6 Type := Weapon Platform
Entry 6 Planet Per Item := 5
Entry 6 Must Have At Least := 10
Entry 7 Type := Satellite
Entry 7 Planet Per Item := 5
Entry 7 Must Have At Least := 10
Entry 8 Type := Mine Layer
Entry 8 Planet Per Item := 0
Entry 8 Must Have At Least := 1
Entry 9 Type := Carrier
Entry 9 Planet Per Item := 30
Entry 9 Must Have At Least := 1

I'm not sure what is wrong. It only builds attack ships. nothing higher. Is this file directly tied to hard coded design types? If not do I need to add some by editing the default design types? http://forum.shrapnelgames.com/image...s/confused.gif

Atrocities March 18th, 2004 10:09 AM

Re: Stubborn AI
 
The problem is the AI only recognizes four types of ships.

Attack Ship
Defense Ship
Carrier
and one other.

Look at the modding tutorial at www.spaceempires.net

That should help out a lot.

TNZ March 18th, 2004 10:28 AM

Re: Stubborn AI
 
Try using Attack Base, Boarding Ship and Kamikaze Attack Ship these design types act similarly to the Attack Ship design type. http://forum.shrapnelgames.com/images/icons/icon7.gif

oleg March 19th, 2004 02:52 AM

Re: Stubborn AI
 
Quote:

Originally posted by Kevin Arisa:
*sigh* it didn't work. here is an example of what my construction file looks like:

AI State := Prepare for Attack, Attack
Num Queue Entries := 9
Entry 1 Type := Attack Ship
Entry 1 Planet Per Item := 2
Entry 1 Must Have At Least := 3
Entry 2 Type := Medium Attack Ship
Entry 2 Planet Per Item := 2
Entry 2 Must Have At Least := 2
Entry 3 Type := Heavy Attack Ship
Entry 3 Planet Per Item := 2
Entry 3 Must Have At Least := 1
Entry 4 Type := Mine
Entry 4 Planet Per Item := 5
Entry 4 Must Have At Least := 2
Entry 5 Type := Fighter
Entry 5 Planet Per Item := 2
Entry 5 Must Have At Least := 20
Entry 6 Type := Weapon Platform
Entry 6 Planet Per Item := 5
Entry 6 Must Have At Least := 10
Entry 7 Type := Satellite
Entry 7 Planet Per Item := 5
Entry 7 Must Have At Least := 10
Entry 8 Type := Mine Layer
Entry 8 Planet Per Item := 0
Entry 8 Must Have At Least := 1
Entry 9 Type := Carrier
Entry 9 Planet Per Item := 30
Entry 9 Must Have At Least := 1

I'm not sure what is wrong. It only builds attack ships. nothing higher. Is this file directly tied to hard coded design types? If not do I need to add some by editing the default design types? http://forum.shrapnelgames.com/image...s/confused.gif

<font size="2" face="sans-serif, arial, verdana">Take a closer look on PvK' post. SEIV use cumulative numbers for ship types. Thus, iin your example if all ships are of generic "attack ship" type but with different names, SEIV will build ships only from first entry. When it looks on the second entry, it "thinks" it alresy has enough "attack ships" and does not build new.

Mofify your file like this:

Entry 1 Type := Attack Ship
Entry 1 Planet Per Item := 2
Entry 1 Must Have At Least := 3
Entry 2 Type := Medium Attack Ship
Entry 2 Planet Per Item := 2
Entry 2 Must Have At Least := 5
Entry 3 Type := Heavy Attack Ship
Entry 3 Planet Per Item := 2
Entry 3 Must Have At Least := 6

Now it will build 3 As, 5-3=2 Mas and 6-5=1 Has ! http://forum.shrapnelgames.com/images/icons/icon7.gif

You also must play a bit with planet per item numbers to get stable ship production.


All times are GMT -4. The time now is 08:30 PM.

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