.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
  #1  
Old March 23rd, 2003, 11:36 AM

trooper trooper is offline
First Lieutenant
 
Join Date: Sep 2002
Location: Cannes, France
Posts: 698
Thanks: 0
Thanked 0 Times in 0 Posts
trooper is on a distinguished road
Default 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 ?
Reply With Quote
  #2  
Old March 23rd, 2003, 07:45 PM

trooper trooper is offline
First Lieutenant
 
Join Date: Sep 2002
Location: Cannes, France
Posts: 698
Thanks: 0
Thanked 0 Times in 0 Posts
trooper is on a distinguished road
Default Re: AI making : Duplicate entries in construction_vehicles.txt



Did I post a stupid question or did noone understand the subject of this post ?
Reply With Quote
  #3  
Old March 23rd, 2003, 09:50 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: 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.
Reply With Quote
  #4  
Old March 24th, 2003, 12:24 AM

trooper trooper is offline
First Lieutenant
 
Join Date: Sep 2002
Location: Cannes, France
Posts: 698
Thanks: 0
Thanked 0 Times in 0 Posts
trooper is on a distinguished road
Default Re: AI making : Duplicate entries in construction_vehicles.txt

Just what I wanted to know.
Thanks Belisarius.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 09:56 AM.


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