Vinifera-Developers / Vinifera

Vinifera is a C&C: Tiberian Sun engine extension implementing new logics and fixing bugs.
GNU General Public License v3.0
44 stars 10 forks source link

[Vanilla Bug] Harvesters prefer far away refineries on large maps #1025

Closed Bittah closed 2 weeks ago

Bittah commented 1 year ago

First Check

Description

When you own refineries on opposite sides of a large map, harvesters will consistently move to the other side of the map to unload and back again, even when the refinery on the other side of the map is already occupied and the nearby one is free.

Required Code (optional)

No response

Steps To Reproduce

Vanilla TS:

  1. Extract sbr.mpr into vanilla TS game directory.
  2. Select the custom map (Super Bridgehead Redux; it should be at the bottom and have no preview image), select GDI and Gold and start the match.
  3. Use the pre-placed Engineers to capture the refineries in the upper right and bottom left corners of the map.
  4. Order the harvesters to start harvesting.

TS Client:

  1. Extract sbr.map into the \Maps\Custom folder.
  2. Select starting location 1 and start the match.

Expected Behaviour

The harvesters dock at the nearest refinery once they're full.

Actual Behaviour

The harvesters move to the refinery at the other side of the map to dock and then move back to the other side of the map to harvest again.

Additional Context

No response

Rampastring commented 2 weeks ago

Fixed in https://github.com/Vinifera-Developers/Vinifera/commit/23ecaec05d6f928588547b99c5acf6791957b242