.com.unity Forums

.com.unity Forums (http://forum.shrapnelgames.com/index.php)
-   Space Empires: IV & V (http://forum.shrapnelgames.com/forumdisplay.php?f=20)
-   -   AI making : Duplicate entries in construction_vehicles.txt (http://forum.shrapnelgames.com/showthread.php?t=8964)

trooper March 23rd, 2003 11:36 AM

AI making : Duplicate entries in construction_vehicles.txt
 
It consists in giving several entries for the same design and the same state in the construction_vehicles file.
It's a strategy used in some TDM AI races. How is it understooden by the AI ?

trooper March 23rd, 2003 07:45 PM

Re: AI making : Duplicate entries in construction_vehicles.txt
 
http://forum.shrapnelgames.com/images/icons/icon9.gif

Did I post a stupid question or did noone understand the subject of this post ?

Master Belisarius March 23rd, 2003 09:50 PM

Re: AI making : Duplicate entries in construction_vehicles.txt
 
Quote:

Originally posted by trooper:
did noone understand the subject of this post ?
<font size="2" face="Verdana, Helvetica, sans-serif">I vote for this.

Quote:

Originally posted by trooper:
How is it understooden by the AI ?
<font size="2" face="Verdana, Helvetica, sans-serif">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.

trooper March 24th, 2003 12:24 AM

Re: AI making : Duplicate entries in construction_vehicles.txt
 
Just what I wanted to know.
Thanks Belisarius.


All times are GMT -4. The time now is 12:28 PM.

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