.com.unity Forums
  The Official e-Store of Shrapnel Games

This Month's Specials

Raging Tiger- Save $9.00
winSPMBT: Main Battle Tank- Save $6.00

   







Go Back   .com.unity Forums > Shrapnel Community > Space Empires: IV & V

Reply
 
Thread Tools Display Modes
  #1  
Old November 5th, 2001, 04:45 PM

HreDaak HreDaak is offline
Corporal
 
Join Date: Nov 2000
Location: Helsinki, Finland
Posts: 99
Thanks: 0
Thanked 0 Times in 0 Posts
HreDaak is on a distinguished road
Default AI build queue is \'leaking\' ? (v1.49)

It looks like that the XXX_AI_Construction_Vehicles.txt file is sort of leaking. AI will always move to the next queue Entry even if it did not build ALL the required items to move forward in the queue.

Example:
AI State := Exploration
Num Queue Entries := 2
Entry 1 Type := Attack Ship
Entry 1 Planet Per Item := 0
Entry 1 Must Have At Least := 2
Entry 2 Type := Colonizer
Entry 2 Planet Per Item := 0
Entry 2 Must Have At Least := 2

On the first turn AI will build 1 Attack ship, but after this it moves to the Entry 2. It clears shipyards build queue and just moves forward in the list even though it does not fullfill the Must Have At Least line requirement...
I have tested this numerous times but a confirmation would be nice before i dare to bug Aaron .
Reply With Quote
  #2  
Old November 5th, 2001, 05:02 PM
Rollo's Avatar

Rollo Rollo is offline
Brigadier General
 
Join Date: Jul 2001
Location: Kiel, Germany
Posts: 1,896
Thanks: 0
Thanked 0 Times in 0 Posts
Rollo is on a distinguished road
Default Re: AI build queue is \'leaking\' ? (v1.49)

Hmm, I am just not sure, if I have seen this. But I have also never used "Planet per Item :=0". Have you ever tested this for other values? If you want exactly 2 ships to be build, perhaps try a 5000 instead of a 0.
Just an idea. Anyway, I will check this out and let you know.

Rollo
__________________
SE4
Devnull Mod Gold:
Version 1.80
Dungeon Odyssey:
Hack and Slash
Version 0.53e
Reply With Quote
  #3  
Old November 5th, 2001, 05:40 PM
Rollo's Avatar

Rollo Rollo is offline
Brigadier General
 
Join Date: Jul 2001
Location: Kiel, Germany
Posts: 1,896
Thanks: 0
Thanked 0 Times in 0 Posts
Rollo is on a distinguished road
Default Re: AI build queue is \'leaking\' ? (v1.49)

Hi,
I could not reproduce this. I used your lines and it worked just fine. First two attack ships were built, then 2 Colonizers after that whatever comes as entry3. I tried this both in turn based and simultaneous movement and saw no problem.

Rollo
__________________
SE4
Devnull Mod Gold:
Version 1.80
Dungeon Odyssey:
Hack and Slash
Version 0.53e
Reply With Quote
  #4  
Old November 5th, 2001, 05:42 PM

HreDaak HreDaak is offline
Corporal
 
Join Date: Nov 2000
Location: Helsinki, Finland
Posts: 99
Thanks: 0
Thanked 0 Times in 0 Posts
HreDaak is on a distinguished road
Default Re: AI build queue is \'leaking\' ? (v1.49)

quote:
Originally posted by Rollo:
Hmm, I am just not sure, if I have seen this. But I have also never used "Planet per Item :=0". Have you ever tested this for other values? If you want exactly 2 ships to be build, perhaps try a 5000 instead of a 0.
Just an idea. Anyway, I will check this out and let you know.



MM does use that Planet per Item :=0 line in their Default_AI_Construction_Vehicles.txt file and as far as i know this has no effect on AI building. As long as the line Must Have At Least is 'dominant' in the Entry X the AI will behave the way i described in my earlier post. Anyhow this could just as well be a feature to prevent AI from getting stuck in certain build Entries, like the line Must Have At Least :=10000 ...


Reply With Quote
  #5  
Old November 5th, 2001, 05:45 PM

HreDaak HreDaak is offline
Corporal
 
Join Date: Nov 2000
Location: Helsinki, Finland
Posts: 99
Thanks: 0
Thanked 0 Times in 0 Posts
HreDaak is on a distinguished road
Default Re: AI build queue is \'leaking\' ? (v1.49)

quote:
Originally posted by Rollo:
Hi,
I could not reproduce this. I used your lines and it worked just fine. First two attack ships were built, then 2 Colonizers after that whatever comes as entry3. I tried this both in turn based and simultaneous movement and saw no problem.

Rollo



Ouch.. did you have more than one space yard active when you tested this? Since this feature will not happen if the AI empire is able to build all the Entry X items on the same turn...

[This message has been edited by HreDaak (edited 05 November 2001).]
Reply With Quote
  #6  
Old November 5th, 2001, 06:26 PM
Mephisto's Avatar

Mephisto Mephisto is offline
Brigadier General
 
Join Date: Sep 2000
Location: Frankfurt, Germany
Posts: 1,994
Thanks: 0
Thanked 0 Times in 0 Posts
Mephisto is on a distinguished road
Default Re: AI build queue is \'leaking\' ? (v1.49)

Just a thought. You can meet this line in two ways:
1.) You have that many ships of this type in existence.
2.) You have a number of this type of ships in existence and a number of this type of ship in the build queue (not necessarily building them at the moment) and the total equals the amount of ships to build.

Could that be the problem?
__________________
For, in the final analysis, our most basic common link is that we all inhabit this small planet. We all breathe the same air. We all cherish our children's futures. And we are all mortal. - JFK
Reply With Quote
  #7  
Old November 5th, 2001, 06:40 PM

HreDaak HreDaak is offline
Corporal
 
Join Date: Nov 2000
Location: Helsinki, Finland
Posts: 99
Thanks: 0
Thanked 0 Times in 0 Posts
HreDaak is on a distinguished road
Default Re: AI build queue is \'leaking\' ? (v1.49)

quote:
Originally posted by [K126]Mephisto:
Just a thought. You can meet this line in two ways:
2.) You have a number of this type of ships in existence and a number of this type of ship in the build queue (not necessarily building them at the moment) and the total equals the amount of ships to build.

Could that be the problem?



Tested this one too and it doesnt appear to be the case. Started a new game and on turn 2400.2 the AI has built a total of 1 Attack ship.
Also there are currently 2 colonizers being built in the AI space yard (first one has 1 turn left).

Some more info on the subject:
AI indeed has had 2 attack ships in its queue in the first turn. But as soon as the first one is completed it removes BOTH attack ships from the queue even though just one of them got built. This leaves just the 2 colony ships to be built...

Heh.. here is a bit more detailed description on what happens:
2400.0 AI's queues are empty.
2400.1 AI has its first attack ship built, there are now 1 more attack ship and 2 colony ships in its queue (in this order).
2400.2 Now AI has just 2 colony ships in its queue (first one has 1 turn left). And there were NO attack ships built this turn even though there should have been. Clearly something strange has happened between the turns 2400.1-2400.2 ?!?


[This message has been edited by HreDaak (edited 05 November 2001).]

[This message has been edited by HreDaak (edited 05 November 2001).]
Reply With Quote
  #8  
Old November 5th, 2001, 07:04 PM
Rollo's Avatar

Rollo Rollo is offline
Brigadier General
 
Join Date: Jul 2001
Location: Kiel, Germany
Posts: 1,896
Thanks: 0
Thanked 0 Times in 0 Posts
Rollo is on a distinguished road
Default Re: AI build queue is \'leaking\' ? (v1.49)

quote:
Originally posted by HreDaak:
Ouch.. did you have more than one space yard active when you tested this? Since this feature will not happen if the AI empire is able to build all the Entry X items on the same turn...


I started a new game to test this. Only one planet.

Rollo

__________________
SE4
Devnull Mod Gold:
Version 1.80
Dungeon Odyssey:
Hack and Slash
Version 0.53e
Reply With Quote
Reply

Bookmarks


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 04:46 PM.


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