Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#5545 closed defect (fixed)

Entity fails to find path to center of clump of units.

Reported by: Freagarach Owned by: wraitii
Priority: Should Have Milestone: Alpha 24
Component: Simulation Keywords: pathfinder, regression
Cc: wraitii Patch: Phab:D2135

Description (last modified by Freagarach)

A24 SVN 22574. In the attached replay, entity 670 (right in the second group of units) can't find its patch to the center of the clump of units and keeps walking. The behaviour starts around 1:10, turn 358. The behaviour is kind of reproducible, it happens often, though not always.

Attachments (1)

commands.txt (10.5 KB ) - added by Freagarach 5 years ago.
Replay.

Download all attachments as: .zip

Change History (5)

by Freagarach, 5 years ago

Attachment: commands.txt added

Replay.

comment:1 by Freagarach, 5 years ago

Description: modified (diff)

comment:2 by wraitii, 5 years ago

Owner: set to wraitii
Patch: Phab:D2135

I was tempted to backlog this as generally unfixable, but in this particular instance I can actually fix it, I've realised I forgot to reject paths that are worse than the current path.

See Phab:D2135

comment:3 by wraitii, 5 years ago

Resolution: fixed
Status: newclosed

In 22609:

Unit Motion - Improve behaviour around obstructions and unreachable goals

Use the "pretend correct path" behaviour for short goals too. This is a fix for #5545, since the position check now works correctly without needing to add a tricky check for path-vs-path distance.

Simplify HandleObstructedMove to use ComputePathToGoal more. This means we occasionally compute a long path when stuck, which fixes two cases of stuck units reported in #5547.

Move some common calls into functions for convenience.

Make sure the short-path-waypoint-range-relaxing introduced in rP22526 doesn't happen for the last waypoint, which caused units to occasionally never get in range of the last waypoint.

Clear short path waypoints when computing a long path.

This won't fix all instances of unit dancing, but it should improve most of them.

Fixes #5545, Fixes #5547

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

comment:4 by elexis, 5 years ago

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