
March 23rd, 2003, 09:50 PM
|
 |
Colonel
|
|
Join Date: Jul 2000
Location: Montevideo Uruguay
Posts: 1,598
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Re: AI making : Duplicate entries in construction_vehicles.txt
Quote:
Originally posted by trooper:
did noone understand the subject of this post ?
|
I vote for this.
Quote:
Originally posted by trooper:
How is it understooden by the AI ?
|
The problem is that you need to balance what the AI must build.
See this example:
Entry 1 Type := Attack Ship
Entry 1 Planet Per Item := 1
Entry 1 Must Have At Least := 0
Entry 2 Type := Colony Ship
Entry 2 Planet Per Item := 40
Entry 2 Must Have At Least := 3
It mean that the AI must build 10 ships x every planet that have. It could take a looong time (10 planets => 100 attack ships), and then, would take a long time to reach the Entry 2... and your AI will have problems to build Colony Ships.
Second example.
Entry 1 Type := Attack Ship
Entry 1 Planet Per Item := 50
Entry 1 Must Have At Least := 0
Entry 2 Type := Colony Ship
Entry 2 Planet Per Item := 40
Entry 2 Must Have At Least := 3
Entry 3 Type := Attack Ship
Entry 3 Planet Per Item := 1
Entry 3 Must Have At Least := 0
Now
- the AI must build 1 Attack ship x every 5 planets.
- the AI must build 1 Colony ship x every 4 planets (min 3 colony ships).
- The AI must build 10 attack ships x every planet.
Still this is not a good building queue (just an example), but it's better than the previous: first will build some attack ships, after it some colony ships and finally, lots of attack ships.
Hope it help you.
|