View Single Post
  #11  
Old February 2nd, 2001, 12:13 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 construction queue problems (ship construction)


quote:
Originally posted by [K126]Mephisto:
I can think of 2 possible reasons for this:

1.) You need to have some storage facilities. Even if you have plenty of resources left and the ship/unit to build is no problem at all the AI will still stop building anything until you give them some storage facilities.



Yes, this can cause AI building problems, but AI usually had enough storages... (500k,250k,250k)


quote:

2.) You describe the problem as partial using of the queues. The AI will only process 1 line at a time no matter how much resources are left for building the second or later lines.



Hummh.. do you mean that AI will process only 1 entry from the construction.txt file each turn? I made a testconstuction.txt file that contained 30 emptry entries, all the stellar manipulation entries from the infrastructure state and at the end was a call to build 5 colonizers. AI had NO problems building those colonizers each and every turn. So i dont think this could be the reason. There seemed to be no limit how many lines it could process each turn.

quote:

A good example are colonizers:
If you make the AI build a large number of colonizers the Ai is nearly stuck in this build line as colonizers are often destroyed or reach their target. The AI will then try to reach the specified number of colonizers again so it is stuck at this build line. A solution is to build only a few colonizers in the first line (to make sure their are always some colonizers), add a second line for some warships and make a third line for some more colonizers.
This concept is true for warships, too. If you tell the Ai to build 1 ship per planet the AI is virtually stuck at this line as it is very hard to reach that many ships (to many are lost for some reason or another to .



Yes, i was very careful to avoid this problem in my testgames. The only entry that was impossible for the AI to build was the LAST entry at each AI state. While being in the exploration state (AI seems to always be on exploration state untill it makes first contact) AI's were building just fine. Then after they made contact, some of the AI's stopped building. Then the AI's that did not stop building started to whack those that did stop building. Even though the ones that stopped all building were losing huge amounts of ships they were not trying to replace their losses. They had enough resource production (maintenance was 0%), enough storage facilities and every AI state in the construction.txt file should have been screaming for them to build more ships.
But they didn't... this is the problem that has been bothering me.
Reply With Quote