Opened 9 years ago
Last modified 5 years ago
#3538 closed defect
Longrange-pathfinder ignoring new obstructions when moving big units — at Initial Version
Reported by: | elexis | Owned by: | |
---|---|---|---|
Priority: | Release Blocker | Milestone: | Alpha 19 |
Component: | Core engine | Keywords: | pathfinding |
Cc: | Patch: |
Description
Reproduce:
- Build something
- Create a big unit (siege or ship)
- Tell the big unit to move inside the new building (make sure it's a longpath)
By showing the pathfinder overlay in the developer menu, you see that the returned longpath has a goal inside the obstruction. The unit will follow that longpath and enter the building.
Notice if the building existed when the game started, the goal of the longpath will be outside the obstruction and the unit will not enter the building (besides #3532)
(Units in formation count as a single big unit (clearance 4) and also get a goal point inside the obstruction. But they disband when hitting the obstruction and don't enter it.)
Together with #3532, this bug accounts for the "ship on land" thing, which has been reported here http://wildfiregames.com/forum/index.php?showtopic=20083 and happened to me in some games (uploaded in #3513 and #3471). Replaying those games showed that ships always entered the land by moving through the obstructions of docks.
Change History (3)
by , 9 years ago
Attachment: | siege_inside_obstruction.gif added |
---|
by , 9 years ago
Attachment: | newly_constructed_dock.jpg added |
---|
by , 9 years ago
Attachment: | prebuilt_dock.jpg added |
---|
But if the dock existed when the game started, it works as expected (besides #3532).
The ship receives a longpath with the goal inside the obstruction (both goals inisde the clearance and inside the building are available).