Opened 3 years ago

Closed 3 years 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

Description

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 years ago.
2021-03-04_0001.zip (5.1 KB ) - added by Langbart 3 years ago.
replay file for the issue

Download all attachments as: .zip

Change History (9)

by Langbart, 3 years ago

Attachment: wood.gif added

by Langbart, 3 years ago

Attachment: 2021-03-04_0001.zip added

replay file for the issue

comment:1 by Freagarach, 3 years 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 years 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 Silier, 3 years ago

Component: UI – In-gameSimulation

comment:4 by Langbart, 3 years 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, 3 years ago

Owner: set to Freagarach
Priority: Should HaveRelease Blocker

comment:6 by Freagarach, 3 years ago

Keywords: UnitAI added
Patch: Phab:D4146

comment:7 by Freagarach, 3 years 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: https://code.wildfiregames.com/D4146
Fixes: #6085
Reviewed by: @Imarok
Tested by: @Langbart
Comments by: @marder, @Stan, @wraitii

Note: See TracTickets for help on using tickets.