Forum Discussion

Re: Harvesters and Ore Trucks have broken

The Code should of not equated to:
IF Next Local Cell has Value Lower than X, THEN Scan for Next Closest Available Cell of Value Higher than X. Setting Scan Range to 256 (MAX Range).
This means that the Harvester actively ignore Cells that have a low Value, meaning if you want to build anywhere, that you have to babysit your Harvester every Cell of the way.

The Algorithm should have been something like:
IF Current Cell has been Harvested, THEN Scan Local Immediate Cells (N/NE/E/SE/S/SW/W/NW) for Highest Value Cell, IF all are equal value, calculate Harvester Facing Angle to Logical Cell.

This would mean a Harvester would move to the Cell Closest to the Harvester that had the Highest Value. Assuming that all of the Local Immediate Cells have equal value, and the Harvester is Facing South, then the Harvester would Move South. If all of the Local Immediate Cells were empty, then it could reset Scanning Range to the next Tier of Local Cells. None of this going 64 Cells away or more, even though there is Valuable Cells right next to the Harvester.

1 Reply

  • Nyerguds's avatar
    Nyerguds
    Hero+
    6 years ago

    @GENERALZOOL wrote:
    What happens when the bug occurs? Ore Truck will willing travel over 64 Cells away, just for a Cell that has Diamonds on it that are of High Value. Ignoring the most Local Cell even though it has Diamonds on it, just because they're only worth 50.

    Ow. That's not supposed to happen, no 😞

About Command & Conquer Franchise Discussion

Chat about your favorite games in the Command and Conquer franchise and get help from the player community.13,549 PostsLatest Activity: 12 hours ago