Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#2545 closed defect (fixed)

Units ungarrisoned from a ship run back to the point they garrisoned

Reported by: sanderd17 Owned by: sanderd17
Priority: Should Have Milestone: Alpha 17
Component: Core engine Keywords:
Cc: mimo Patch:

Description

When you ungarrison units from a ship, they want to run back to their garrison point (which isn't always possible). This behaviour seems to only happen once per unit (so it doesn't happen the second time you garrison the same unit).

It also doesn't happen with the siege tower (which also is a moveable garrisonholder), so it's probably related to Ships moving towards the units themselves.

Change History (5)

comment:1 by mimo, 10 years ago

The problem seems to be with the formation: when units in formation are asked to garrison, the formation is not disbanded and the garrison position is the last position before garrisoning. Then when we ungarrison the units after having moved the ship, this last formation position is used by Formation.js in MoveMembersIntoFormation. But I must have missed something in this interpretation as otherwise, the problem would always appear while it seems to be random (and quite rare). A simple fix would be to disband the formation when garrisoning it.

comment:2 by serveurix, 10 years ago

I've seen this bug happening with siege engines too, nut just ships.

comment:3 by sanderd17, 10 years ago

I think we should remove the members from the formation instead of disabling the formation on garrison. When you queue garrison orders (i.e. to split a group between two towers), disbanding the formation will lead to not executing the second command. While only removing some members will not.

comment:4 by sanderd17, 10 years ago

Owner: set to sanderd17
Resolution: fixed
Status: newclosed

In 15181:

Remove members from a formation when they garrison. Fixes #2545

comment:5 by sanderd17, 10 years ago

Milestone: BacklogAlpha 17
Note: See TracTickets for help on using tickets.