What did you do?
I was testing a new refuelling station. In order to test it I removed all fuel from the locomotive - I had a refuel condition "Fuel(any) Fuel(wildcard) <=1)".What happened?
NothingWhat did you expect to happen instead?
As the locomotive has no fuel left and the condition is to avoid that it runs out of fuel, I expected the refuel interrupt to fire.Does it happen always, once, or sometimes?
It happens always.I would suggest that either
- the Fuel(wildcard) condition becomes true if no valid fuel is on the locomotive.
- a new interrupt condition "Empty fuel", that returns true if all fuel slots are empty
------------------------------------------------------------
A workaround is a second condition that checks if all fuel types =0. So (Fuel(any) Rocket fuel =0) AND (Fuel(any) uncommon Rocket fuel =0) AND (Fuel(any) rare Rocket fuel =0) ,... + coal, solid fuel, nuclear fuel, all burables, ... Which becomes a really long list.
------------------------------------------------------------------------------------------------
Blueprint to display behaviour:
The locomotives are setup to alternate between the two lower stations. The middle station removes all fuel from a locomotive, the upper station refuels if refuelling is triggered - It has to be provided with fuel - the requester chest is set to request 120 rocket fuel.
Observable behaviour:
- Both locomotives start out with 1x rocket fuel, triggering the refuel condition "wildcard <=1".
- Both will refuel and start alternating between the 2x lower stations.
- The middle station will remove all present fuel from any locomotive
- The "broken" locomotive will alternate the lower stations and never trigger a refuel, even it has no fuel left and the fuel wildcard is empty
- The workaround locomotive that manually checks if any quality rocket fuel, nuclear fuel is 0, does refuel after visiting the middle station