Hello All,
Please see the attached game save.
I have created an interrupt for fueling my trains once the onboard fuel falls below a configured level. The issue here is that the once the fuel is loaded, the trains do not proceed to the next station in the list.
Thanks!
Train Interrupt goes into an infinite loop.
Train Interrupt goes into an infinite loop.
- Attachments
-
- game-04-middle-02.zip
- (15.06 MiB) Downloaded 6 times
Re: Train Interrupt goes into an infinite loop.
The interrupt triggers again, because the solid fuel < 25 part of the OR is still true. You need to use AND instead of OR.
Re: Train Interrupt goes into an infinite loop.
This is how I did my refuel interrupts, no more infinit loops, here for krastorio2
Wise men speak because they have something to say Fools because they have to say something. (Plato)
Re: Train Interrupt goes into an infinite loop.
Ok, a full proper universal refuel interrupt for vanilla Nauvis looks like this. It will trigger if there is less than half a stack of fuel remaining, whatever fuel it is.
Literally, the interrupt condition triggers if all possible fuel types are below threshold. Or the other way round, if no fuel type is above threshold.
This means as long as any (whatever) fuel is above threshold, the interrupt doesn't trigger, which finally means if there is enough fuel of whatever it doesn't trigger, which is exactly what we want.
It will not retrigger, because the train will not leave until all locomotives are fully fueled. And if all locomotives are fully fueled at least one of the fuels in the interrupt trigger has more than the threshold, so the interrupt trigger condition will be false.
Unfortunately, the green "fuel" wildcard is completely useless because of the different fuel stack sizes. This is something to fix for Wube.
Ok, you can use it to target fuel specific refuel stations, but that's not generally used, I guess. It's the task of the refueling station to force some given fuel into the locomotive(s). For example, if you upgrade to rocket fuel, and some of your locomotives still have lower fuel, you build a filtered inserter taking every fuel out off the locomotive(s) except the wanted fuel (rocket fuel), so blacklist=rocket fuel. To upgrade from that to nuclear fuel, you simply change the blacklist to nuclear fuel.
Literally, the interrupt condition triggers if all possible fuel types are below threshold. Or the other way round, if no fuel type is above threshold.
This means as long as any (whatever) fuel is above threshold, the interrupt doesn't trigger, which finally means if there is enough fuel of whatever it doesn't trigger, which is exactly what we want.
It will not retrigger, because the train will not leave until all locomotives are fully fueled. And if all locomotives are fully fueled at least one of the fuels in the interrupt trigger has more than the threshold, so the interrupt trigger condition will be false.
Unfortunately, the green "fuel" wildcard is completely useless because of the different fuel stack sizes. This is something to fix for Wube.
Ok, you can use it to target fuel specific refuel stations, but that's not generally used, I guess. It's the task of the refueling station to force some given fuel into the locomotive(s). For example, if you upgrade to rocket fuel, and some of your locomotives still have lower fuel, you build a filtered inserter taking every fuel out off the locomotive(s) except the wanted fuel (rocket fuel), so blacklist=rocket fuel. To upgrade from that to nuclear fuel, you simply change the blacklist to nuclear fuel.