deestar12 / keeperfx

Automatically exported from code.google.com/p/keeperfx
0 stars 0 forks source link

Computer player will not make more hatchery when needed #629

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
When the computer player has more creatures than his hatchery can support he 
will not make more hatchery. He should.

Attached a map to reproduce the issue.

Last reproduced in r1850.

Original issue reported on code.google.com by Loobinex on 23 May 2015 at 4:06

Attachments:

GoogleCodeExporter commented 8 years ago
Hmm tried it on newdig, it does only build one hatchery, but it didn't appear 
emptied. How long must I wait before it starts to empty? Otherwise, a save game 
where hatchery isn't filled with chickens might be easier.

Original comment by eatpajdi...@gmail.com on 23 May 2015 at 9:24

GoogleCodeExporter commented 8 years ago
Steps to reproduce:
- Use reveal map special
- Speed up game until blue claimed portal and has a few creatures
- Build a single treasure room tile (like the objective says)
-> this will give blue several bile demons which will clear out the hatchery.

Note that looking at the room flag is no use, a hatchery never looks empty 
because the spawning chickens are counted.

Original comment by Loobinex on 23 May 2015 at 9:45

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Note that newdig ai build a larger hatchery on Comp4 that regular AI, but a 
smaller hatchery than Comp0 does on regular AI.

With normal AI Comp0 and Comp4 will hardly ever run out of food, Comp0 because 
he builds a big 6x5 hatchery, Comp4 because he will generally not attract that 
much creatures and no bile demons. They will only run into issues when on a 
custom map they receive a whole lot of creatures somehow.
Newdig AI however has a slightly bigger chance he will  have some issues 
because a 5x5 hatchery will not always suffice and the new algorithm will dig 
more doors in hatchery walls reducing efficiency of room(good behavior 
though!). The proper solution would be to build another hatchery on the ‘not 
enough food event’, but a temp solution would be to increase the default 
hatchery to 6x5.

I’ve attached a -newdig save with an empty hatchery.

Original comment by Loobinex on 23 May 2015 at 10:43

Attachments:

GoogleCodeExporter commented 8 years ago

Original comment by eatpajdi...@gmail.com on 24 May 2015 at 12:32

GoogleCodeExporter commented 8 years ago
Should work better in r1857

Note that on that test save, upgraded newdig will first build a series of lairs 
in increasing size. The fact it builds many should probably be ignored (it 
would have to be observed from start).

Original comment by eatpajdi...@gmail.com on 24 May 2015 at 4:49

GoogleCodeExporter commented 8 years ago

Original comment by Loobinex on 24 May 2015 at 5:30

GoogleCodeExporter commented 8 years ago
Tested ok with TC629_1 on r1857.

Original comment by Loobinex on 26 May 2015 at 6:01