Opened 3 years ago

Closed 3 years ago

#6096 closed defect (fixed)

In some cases, rams ignore buildings and don't attack nearby buildings

Reported by: Andy Alt Owned by:
Priority: Must Have Milestone: Alpha 25
Component: Simulation Keywords:
Cc: Patch:

Description (last modified by Andy Alt)

As mentioned in this forum post, for example, if there are houses surrounding a defense tower, the rams will bunch up around the houses and not destroy any of them. They even ignore the CC which is very close by. (video)

Replay attached.

On the forum, wraiti explained:

I've sen that one before. I think the problem is rams target the tower. Then they fail to reach it. So they look for a new target... Which happens to be the same tower. Endless loop I'm not entirely sure if the loop is in UnitAI or the real AI or both though.

Attachments (1) (202.3 KB ) - added by Andy Alt 3 years ago.

Download all attachments as: .zip

Change History (7)

by Andy Alt, 3 years ago

Attachment: added

comment:1 by Andy Alt, 3 years ago

Description: modified (diff)

comment:2 by Andy Alt, 3 years ago

Description: modified (diff)

comment:3 by Freagarach, 3 years ago

Component: UI & SimulationSimulation
Priority: Release BlockerMust Have

comment:4 by Silier, 3 years ago

Well its both. UnitAi because ram will always use preference <PreferredClasses datatype="tokens">Gate Defensive Structure</PreferredClasses>

Ai because if (


targetClassesUnit.avoid = targetClassesUnit.avoid.concat("House", "Storehouse", "Farmstead", "Field", "Forge"); targetClassesSiege.avoid = targetClassesSiege.avoid.concat("House", "Storehouse", "Farmstead", "Field", "Forge");


but given Ai does not run updates so often, I would say UnitAi is more annoying.

lets blame for introducing defensive class to prefered ones

comment:6 by wraitii, 3 years ago

Resolution: fixed
Status: newclosed

The preferredClasses thing is fixed in r25481, I'm going to close this as fixed.

Note: See TracTickets for help on using tickets.