fuel truck refueling behavior

Vehicles & Roads
kennyb [ideas] · 1 year ago

refueling has dramatically improved in 0.7.8 and 0.7.9 (or so it seems anyway). I still notice this bug where the truck returns prematurely. here are two more samples:

refuel all excavators except the one out of fuel

two excs out of fuel with refuel truck on the way:
Image

he refuels everyone but the other guy out of fuel and returns with 1 fuel:
Image

bug - refuel 1 exc and leave the other without fuel.save

refuel tree planter but not harvester and planter out of fuel

on the way to refuel the planter (that's not yet out of fuel):
(bonus bug: notice how he drives to where the planter was - I know this is because it caches path calculation)
Image

now he goes over to refuel the tree harvester out of fuel (good behavior):
Image

now he drives back with 36 fuel left, leaving the planter in the back without fuel
Image

bug - refuels tree harvester but not planter.save


  1. ideally, refuel truck should not be returning with any extra fuel
  2. refuel truck should visit everyone else assigned to the tower/station that is nearby before returning with fuel (ie, it should only return if the next refuel target is farther away than the fuel station)
  3. refuel truck should optimally leave to refuel when the total of all fuel deficit for all refuel targets assigned to the station are missing more fuel than is the size of the truck's capacity
2 attachments only for registered users
19 Showing 1–1 of 1