Bug 112454 - ai might deadlock itself with facility productions
Summary: ai might deadlock itself with facility productions
Status: RESOLVED FIXED
Alias: None
Product: boson
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: The Boson Team
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-12 07:42 UTC by Andreas Beckermann
Modified: 2005-09-19 20:58 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Beckermann 2005-09-12 07:42:18 UTC
Version:            (using KDE KDE 3.4.2)

The AI (ai.py) tries to place a facility only on UnitWithTypeProduced events for the corresponding factory. However when placing fails, it does not try to place the facility again and consequently the factory can most probably never be used for productions again until the game is over.

However I did not test whether this is actually the case or whether I missed something - but I cannot see anything in the code that may prevent the deadlock.
The factory won't place the facility before it received the event, but it won't send another event unless another facility got produced (which requires placing the previous one first).

CU
Andi
Comment 1 Andreas Beckermann 2005-09-19 20:58:48 UTC
A deadlock indeed was possible and actually was even the normal case.

With the new scripts this should be fixed now.

CU
Andi