#4599 closed defect (fixed)
Indefinite attack range with Skirmish formation
Reported by: | Grugnas | Owned by: | |
---|---|---|---|
Priority: | Must Have | Milestone: | Alpha 22 |
Component: | UI & Simulation | Keywords: | UnitAI |
Cc: | Patch: |
Description (last modified by )
Bug prologue: the macedonian player selected a group of slingers, archers and pikemen gave the command to form the Skirmisher formation then ordered to capture a civic center (probably at this point the formation disrupted). Since the units were to few, he retreated those units by commanding them to gather wood from the nearby trees then he commanded them to attack the cc again. What happened is that slingers and archers attacked the Civic Center from a distance of something like 100 - 120 meters (way further than their max range even when promoted to elite rank). The attackers tooltip didn't show any abnormal value nor elevation bonus, but i guess that pikemen within formation stopped to move as if they were halted or if they reached the target.
Attachments (6)
Change History (14)
by , 7 years ago
Attachment: | syntagma.zip added |
---|
by , 7 years ago
Attachment: | slinger.jpg added |
---|
comment:1 by , 7 years ago
Description: | modified (diff) |
---|
by , 7 years ago
Attachment: | ranged_melee.jpg added |
---|
comment:2 by , 7 years ago
Description: | modified (diff) |
---|---|
Priority: | Should Have → Must Have |
by , 7 years ago
Attachment: | indefinite_range.jpg added |
---|
by , 7 years ago
Attachment: | commands.txt added |
---|
comment:3 by , 7 years ago
comment:4 by , 7 years ago
Summary: | Very long range slingers → Indefinite attack range with Skirmish formation |
---|
comment:5 by , 7 years ago
Nice minimal replay.
The formation with that are the one for which FormationAttack
has CanAttackAsFormation
set to true ie
skirmish.xml testudo.xml phalanx.xml syntagma.xml wedge.xml
by , 7 years ago
Attachment: | formation.patch added |
---|
comment:6 by , 7 years ago
Looking at the code in helpers/Commands.js, it seems that when we switch to the null formation, we never remove entities from their previous formation. This is done in the attached patch, which fix the quoted problem (thanks for the small commands.txt). While testing, I noticed that when we remove all entities except one from the formation, the remaining entity keep its formation icon and we can't switch back to the null one from the gui. This is also fixed in the patch.
comment:7 by , 7 years ago
Milestone: | Backlog → Alpha 22 |
---|
From your description I suspect the patch to fix one of the greatest formation problems too (the fact that we often can't disband a formation) (This sounds like a candidate for a release blocker, but I guess it depends on our availability)
Minimal replay for r19694