The-International-Open-Source icon indicating copy to clipboard operation
The-International-Open-Source copied to clipboard

Bug: Harvesters keep dancing when 1 creep wants to go to the same location as the other

Open pieterbrandsen opened this issue 2 years ago • 2 comments

Describe the bug screeps.com/s/imFsDG See there, both want to go to same spot Expected behaviour When 1 is at mining pos it should path around or get other sourceTarget pos

How can we reproduce this? 2 sources next to each other, both 1 entry

Potential fix Check if sourceContainer? is already placed at pos

Applicable media image

pieterbrandsen avatar Sep 20 '22 07:09 pieterbrandsen

image @CarsonBurke This should do it. Tested and worked. Would not work optimal but would handle the case and stop them from fighting for the same spot

pieterbrandsen avatar Sep 20 '22 17:09 pieterbrandsen

Thanks, I have a better fix in mind relating to initial construction of sourcePositions. We also need to account for upgrade and harvest positions that can conflict like this. I’ve got it

CarsonBurke avatar Sep 20 '22 20:09 CarsonBurke

Stale, re-open if issue persists

pieterbrandsen avatar Sep 18 '23 13:09 pieterbrandsen