Opened 6 years ago
Closed 3 years ago
#4935 closed defect (fixed)
Formation movement
Reported by: | Silier | Owned by: | wraitii |
---|---|---|---|
Priority: | Must Have | Milestone: | Alpha 24 |
Component: | Simulation | Keywords: | |
Cc: | Patch: | Phab:D3209 |
Description
Units in formation stuck on movement if they / or part of them are / is surrounded by units without formation.
They move if their formation is released.
steps to reproduce: https://imgur.com/a/KfJRD
Attachments (2)
Change History (9)
by , 6 years ago
Attachment: | commands.txt added |
---|
comment:1 by , 6 years ago
comment:2 by , 6 years ago
Milestone: | → Backlog |
---|
comment:3 by , 5 years ago
Component: | UI & Simulation → Simulation |
---|
Move tickets to Simulation
as UI & Simulation
got some sub components.
comment:4 by , 5 years ago
Can be reproduced with upstream changes - I agree with temple above that this is likely just the formation controller being stuck.
by , 4 years ago
Attachment: | commands.2.txt added |
---|
A24 replay, also showing the "elephant surrounded by units" case but with rams
comment:5 by , 4 years ago
Milestone: | Backlog → Alpha 24 |
---|
Seems confirmed in the above replay.
Removing collision with units from the formation controller sounds like it _could_ fix it, but it would also make the formation controller able to "get away" from the formation units, in case they are stuck behind some entity (see https://trac.wildfiregames.com/ticket/5624#comment:4, if the formation controller has no collisions with units, it will simply move through the gap and think it's at destination). This may or may not be a problem, depending on other factors.
I think a simpler handling would be to try giving units an individual move-order if the formation controller appears sufficiently stuck (E.G. on "likely_failure", not on "obstructed").
I'm moving this to A24, it sounds easy enough to try a fix.
The formation controller has a large passability class so I think it's getting stuck inside/between the other units (like if you had an elephant surrounded by units with no space to escape). Maybe the formation controller should only collide with static obstructions?
There's a separate issue with individual units getting stuck on obstructions: https://i.imgur.com/GHLGRMH.jpg