Bug 112454

Summary: ai might deadlock itself with facility productions
Product: [Applications] boson Reporter: Andreas Beckermann <b_mann>
Component: generalAssignee: The Boson Team <boson-bugs>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:

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