Opened 9 years ago

Last modified 4 years ago

#3144 closed enhancement

Formations - 'Dropoff resources and move somewhere else' doesn't work properly with many units in formations — at Version 5

Reported by: elexis Owned by:
Priority: Nice to Have Milestone: Alpha 24
Component: Simulation Keywords:
Cc: Patch:

Description (last modified by wraitii)

If you have like 40+ units, gathered some resources with them, right click storehouse and shift-rightclick somewhere else, then you expect the units to go to the storehouse and then go to the next target in formation after that.

Without formation they do. With formation they surround the storehouse. The units that dropped of their resources keep waiting at the storehouse, until the other units have dropped off.

However since they surrounded the storehouse already, some units cant droppoff.

Those units then walk around for about 30 seconds until every unit has reached the closest point to the storehouses possible. The "dropoff resources" command is cancelled then and finally the units do the next command.

http://trac.wildfiregames.com/raw-attachment/ticket/3144/surrounded_storehouse.gif (due to the limitation of gifs I could only upload a sample where they wait for few seconds, but they can wait up to 80 seconds with more units).


leper said it 'could just be fixed by making sure the units are in the same formation and disabling collision checks for them'

Change History (6)

comment:1 by elexis, 9 years ago

10 fishing boats have the same problem with docks. (was fixed with the disabling of fish boat formations)

Last edited 9 years ago by elexis (previous) (diff)

by elexis, 9 years ago

Attachment: surrounded_storehouse.gif added

Sample with 25 units. The problem gets worse with the number of units. If you do it with 100 units, it will consume 80 seconds.

comment:2 by elexis, 9 years ago

Description: modified (diff)

comment:3 by elexis, 9 years ago

Component: Core engineUI & Simulation
Priority: Nice to HaveShould Have
Summary: [Formations] 'Dropoff resources and move somewhere else' doesn't work properly with many units in formationsFormations - 'Dropoff resources and move somewhere else' doesn't work properly with many units in formations

comment:4 by Imarok, 5 years ago

Component: UI & SimulationSimulation

Move tickets to Simulation as UI & Simulation got some sub components.

comment:5 by wraitii, 5 years ago

Description: modified (diff)

Still happens with the UM changes.

I agree with leper above, the diagnostic is first that some units in INDIVIDUAL.RESOURECERETURN.APPROACHING can't get in-range of the storehouse as there are other units in the way, and these aren't part of the same formation since locally these are individuals.

Possibly then going back in formation is also buggy.

This is tricky to fix - keeping units to have the same obstruction group when in individual orders seems dangerous (attacking?), making units go to the next waypoint not in formation when they deposited would fix the stuck-ness but not the formation behaviour. Possibly we should add an intermediate order to go away from the store-house in these cases?

Alternatively unit Pushing would likely fix this.

Note: See TracTickets for help on using tickets.