Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#5510 closed defect (fixed)

Stuck unit at obstruction corner

Reported by: elexis Owned by: wraitii
Priority: Release Blocker Milestone: Alpha 24
Component: Simulation Keywords: regression
Cc: Patch: Phab:D2087

Description (last modified by elexis)

Units occasionally become stuck at obstruction corners.

In this r22484 replay at minute 9:14 it was most visible.

The difference to #5480 was that the unit could be moved again.

https://trac.wildfiregames.com/raw-attachment/ticket/5510/screenshot0566.jpg

Attachments (4)

commands.txt (869.5 KB ) - added by elexis 5 years ago.
screenshot0566.jpg (1.2 MB ) - added by elexis 5 years ago.
commands.2.txt (3.8 KB ) - added by wraitii 5 years ago.
Minimal reproduction replay
commands.3.txt (3.4 KB ) - added by elexis 5 years ago.
Possibly related or same bug, minimal r22489 replay. The cavalry unit receives one gather order against the metal mine and gets stuck in walking animation.

Change History (10)

by elexis, 5 years ago

Attachment: commands.txt added

by elexis, 5 years ago

Attachment: screenshot0566.jpg added

comment:1 by elexis, 5 years ago

Description: modified (diff)

comment:2 by wraitii, 5 years ago

Few issues there: at 7:50 entity 22733 is trying to "walktottarget" the dropside. Sadly, it's trying to walk in max-range 0, which means it must collide with it, and that won' happen. However it's succeeding in moving ever so slightly every frame, so it doesn't fail.

I need to fix such max-range for targets, as they are effectively unreachable.

The units being stuck at 9:14 have the same cause.

by wraitii, 5 years ago

Attachment: commands.2.txt added

Minimal reproduction replay

by elexis, 5 years ago

Attachment: commands.3.txt added

Possibly related or same bug, minimal r22489 replay. The cavalry unit receives one gather order against the metal mine and gets stuck in walking animation.

comment:3 by wraitii, 5 years ago

Owner: set to wraitii
Patch: D2087

Indeed that's the same issue, as it can't gather from the metal mine, so it gets WalkToTarget. You can check if Phab:D2087 fixes it.

comment:4 by elexis, 5 years ago

Patch: D2087Phab:D2087

comment:5 by wraitii, 5 years ago

Resolution: fixed
Status: newclosed

In 22496:

Fix walk-to-target and other movements with max-range "0" for target entities

Entities may never get to a distance of "0" when trying to reach other entities, as that would mean they are right next to each other, or even overlapping, which can fail.
Always give some leeway to distance when trying to move to a target with no specified max-range.

This fixes WalkToTarget orders which resulted in units being stuck on mines or on dropsites occasionally.

Reported by: elexis

Fixes #5510

Differential Revision: https://code.wildfiregames.com/D2087

comment:6 by elexis, 5 years ago

Keywords: regression added
Note: See TracTickets for help on using tickets.