[kovarex] [2.0.10] Train interrupts for refueling can't identify trains with no fuel

Bugs that are actually features.
bluedot55
Manual Inserter
Manual Inserter
Posts: 1
Joined: Thu Oct 24, 2024 7:58 pm
Contact:

[kovarex] [2.0.10] Train interrupts for refueling can't identify trains with no fuel

Post by bluedot55 »

Train interrupts were advertised as, and work great as a method for fueling trains. You can set a fuel parameter, which will get the first fuel type and compare it against some set fuel types, to check to see if you need to refuel based on how low each fuel type is. However, if there is no fuel in the train, then it will not be able to get a fuel parameter, and therefore not be able to see that the fuel is at zero via interrupts. This is mainly an issue with nuclear fuel, since 0 nuclear fuel is still a long time worth of fuel for a train, but once it hits zero, it won't ever try to refuel.

I'd hazard a guess that the fuel parameter just was never intended to pickup nothing, but it does create a very weird user experience. Either defaulting it to a blank zero or something may help, or just adding a interrupt condition of locomotive out of fuel.

To reproduce, setup a train with a refueling interrupt that sends a train to refuel on fuel less then like 10, give it some long lasting fuel so it can function, then compare how it prioritizes going to the refueling interrupt when you give it one piece of fuel, vs when it has none.
Attachments
Creative.zip
(1.95 MiB) Downloaded 30 times
kovarex
Factorio Staff
Factorio Staff
Posts: 8211
Joined: Wed Feb 06, 2013 12:00 am
Contact:

Re: [kovarex] [2.0.10] Train interrupts for refueling can't identify trains with no fuel

Post by kovarex »

In this case, it is better to write a custom condition, like "nuclear fuel" < 1 or something.
Post Reply

Return to “Not a bug”