Mining Control Tower Export location issue

Vehicles & Roads
NanoCE [github] · 3 years ago

Issue description

The issue stems from the fact the pathing algorithm fails fast when trying to determine if a mining vehicle can export to any of the available export locations. For example, I have two export locations on either side of my dig site for stone. For the time being, one of the export locations for stone is blocked, but because it is closer (between two points without taking into account anything else), the truck tries to path to that one, even though another export location that accepts stone is available.

Yes this is a niche issue that straddles the line of an edge case, but it should be easily fixable by just looping through the rest of the available export locations and trying to path to any that match, rather than failing on the first try.

Reproduction steps

Load attached save, view results.

The issue should be showing itself when you first load the save at the new stone quarry near a bunch of rainwater collectors. If you force the trucks with issues slightly closer to the other export points, they realize they can export there instead.

Game version and build number

v0.5.2a b215

Operating system

Windows

Attachments

odd pathing.save

1 attachment only for registered users
17 Showing 1–1 of 1