Opened 3 months ago

Closed 4 days ago

#6085 closed defect (fixed)

Wood gathers go to the wrong tree

Reported by: Langbart Owned by: Freagarach
Priority: Release Blocker Milestone: Alpha 25
Component: Simulation Keywords: UnitAI
Cc: Patch: Phab:D4146


I noticed a strange behavior of wood gathers. In the GIF below I create 10 spearmen in the CC and send them to a tree, two lumberjacks don't go where they are supposed to go.

I tested it with [24999] and [25000] the strange behavior can first be noticed with [25000].

Attachments (2)

wood.gif (1.4 MB ) - added by Langbart 3 months ago. (5.1 KB ) - added by Langbart 3 months ago.
replay file for the issue

Download all attachments as: .zip

Change History (9)

by Langbart, 3 months ago

Attachment: wood.gif added

by Langbart, 3 months ago

Attachment: added

replay file for the issue

comment:1 by Freagarach, 3 months ago

This behaviour is expected, since the first target, the tree, is full, so the two entities will search for trees nearest to where they are at the moment.

I think this is usually what a player wants, but I understand that not always this is the case.

comment:2 by Freagarach, 3 months ago

I guess on user orders we want to gather near the clicked location, but on autocontinue nearest to the current location?

comment:3 by Angen, 3 months ago

Component: UI – In-gameSimulation

comment:4 by Langbart, 13 days ago

This is annoying, was attacked from the north on my wood line and wanted to move my 30 ladies to the south, 22 ladies just keep chopping wood in the north because the tree I selected in the south only hold 8 ladies.

This will be on the list that the players will report. Inconveniently, I can click with Shift on a point near the forest line in the south and then press the desired tree.

comment:5 by Freagarach, 7 days ago

Owner: set to Freagarach
Priority: Should HaveRelease Blocker

comment:6 by Freagarach, 6 days ago

Keywords: UnitAI added
Patch: Phab:D4146

comment:7 by Freagarach, 4 days ago

Resolution: fixed
Status: newclosed

In 25776:

Look for resources nigh the order when forced.

When tasked to gather, entities looked for resources close to their current location when the target was invalid (e.g. full).
Now on forced orders the entities will look for resources close to that order's location, when possible.

Differential revision:
Fixes: #6085
Reviewed by: @Imarok
Tested by: @Langbart
Comments by: @marder, @Stan, @wraitii

Note: See TracTickets for help on using tickets.