Used fluid burning generator in mod with burns_fluid=true, scale_fluid_usage=true, and provided it with a fluid that has no fuel value. In particular it was a turbine in the Nullius overhaul, which burns compressed gases and where steam has a fixed fuel value that it uses instead of temperature.
What happened?
The turbine consumes fluids with no fuel value, and falsely displays the consumption rate at 0/s, even though it is actually destroying the non-fuel fluid at the maximum rate the generator allows. The generator is not animated and from all outward appearances seems to be idle even though it is consuming fluid quite rapidly.
In the first panel you can see the turbine is full of fluid, with consumption 0/s out of 1.2k/s, and power output of 0. It is also not showing an active animation.
In the second panel, you can see that the pump is still continuously filling it at 1.2k/s, even though it's apparently full already. The pump is capable of more throughput, but that rate suspiciously matches the max consumption rate of the turbine.
In the third panel, you can see that as soon as the pump is removed, the turbine's fluid contents rapidly decline to zero, even though it's not connected to anything and says it's not consuming anything.
What did you expect to happen instead?
Either one of 2 possibilities:
A) Ideally generators with burns_fluid=true and scale_fluid_usage=true would simply not burn fluids with no fuel value. One argument I've heard for the current behavior is that people may implement universal fluid void entities as generators, however, if so surely they would set scale_fluid_usage to false. scale_fluid_usage true indicates not to waste any more fuel than necessary to get the most energy production supported by that machine. Well if the fuel value is zero, then it gets as much energy as it's going to get consuming 0 fluid per second and anything more is a waste. If the goal is to waste as much as possible, then surely scale_fluid_usage = false would be the correct setting to accomplish that. I don't think the current behavior makes sense for any realistic use case with these settings. This behavior seems like perhaps more of a design flaw than a clear bug, yet there is a bug here and this would be the simplest and most sensible way to make the bug irrelevant.
B) At very least it should accurately display the amount being consumed. Showing 0/s is wrong when it's clearly consuming the full amount that the throughput of the generator allows. It should also be animated as it would be if consuming fuel. If the current behavior is intended, this display should at least be fixed. But if the behavior were improved then it would not longer be an issue because it would actually be consuming 0 like it shows.
Reproducing:
Key fields in fluid burning generator prototype:
Code: Select all
type = "generator",
name = "nullius-priority-turbine-2",
burns_fluid = true,
scale_fluid_usage = true,
fluid_usage_per_tick = 20,
max_power_output = "6MW",
effectivity = 1,
The overhaul mod I'm using here is Nullius, and the fluid is nitrogen, but the bug can be demonstrated with any fluid without a fuel value, and any mod that uses fluid burning generators. It happens consistently and doesn't require any special conditions beyond this. Nevertheless, I've attached my save if that helps in reproducing it more easily: