AI ignores BuiltAt=

Bug #1529632 reported by mevitar on 2015-12-28
This bug affects 1 person
Affects Status Importance Assigned to Milestone

Bug Description

As the title says, the AI will still build units from a building not listed in BuiltAt=. Infantry coming out of kennels, tanks coming out of starports, are not a problem for the AI.

Not sure how ExplicitOnly=yes affects this.

mevitar (mevitar) wrote :

It also ignores Factory.ExplicitOnly=yes tag (only now i noticed that one of the buildings that was giving these issues had this tag listed there too).

The units (and infantry) keep coming out of these structures even if all buildings listed in BuiltAt= list were destroyed long time ago. The AI completely ignores them, just like it ignores the Prerequisite= tag.

AlexB (alexander-b) on 2016-01-12
Changed in ares:
assignee: nobody → AlexB (alexander-b)
milestone: none → 0.b
importance: Undecided → Medium
status: New → Fix Committed
mevitar (mevitar) wrote :

16.15.1117, the AI still builds from factories it's not supposed to. I think it might be best if i explain the issue with every detail.

Checked it with a regular barrack structure (used NAHAND) and a secondary "barracks" that is there only for the purpose of of build-speed increase (NACLON converted into barracks, without any cloning capabilities). All infantry has BuiltAt and prerequisites set to the primary barracks (NAHAND). Secondary barracks (NACLON) isn't listed for any of them, and it also has Factory.ExplicitOnly=yes.

The effect is that once NAHAND is gone, the AI will finish building infantry that was already building, and it will exit from NACLON. It won't produce more infantry, though, until the NAHAND is rebuilt. However, once it has NAHAND again, all infantry goes out of NACLON as if it was treated as primary factory, even though they don't have NACLON listed under BuiltAt.

When i made some infantry have NACLON in their prerequisite and BuiltAt listed instead of NAHAND, the situation looked like this: the AI still pumped out all infantry from NAHAND, because NAHAND was build first. However, if i destroyed NAHAND, now NACLON was used, and only infantry with BuiltAt=NACLON was being produced. If the AI rebuild NAHAND and i destroyed NACLON, the situation reversed (nothing with BuiltAt=NACLON was produced).
However, after some time of me doing that, the AI simply stopped building infantry altogether, until i destroyed both NAHAND and NACLON.

BTW, it seems to work exactly the same in 0.A (at least as far as the first case, didn't test with mixed BuiltAt for infantry there).

mevitar (mevitar) wrote :

I checked it again in 0.B, this issue still happens. Furthermore, it looks like now the AI doesn't stop producing units from an incorrect factory after it finishes a team - it goes on as usual.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers