Thread: Stubborn AI
View Single Post
  #8  
Old March 19th, 2004, 02:52 AM
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: 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?
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 !

You also must play a bit with planet per item numbers to get stable ship production.
__________________
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