Generator and scale_fluid_usage
Posted: Sun Mar 07, 2021 3:58 am
I have a generator entity and I would like it to consume fluid at a constant rate regardless of power consumption on the network.
I thought `scale_fluid_usage = false` would do that, but apparently not. The property didn't seem to have any effect and eventually my test setup became fully backed up on fluid and fuel, at which point the generator stopped consuming fluid altogether as there were no more power consumers on the network.
I could use a Lua-driven combination of storage tank + electric energy interface to manually consume fluid, but I think we can all agree that's not a great idea. It is an option though, and if done properly with spreading updates out across ticks, it should be performant enough for all but the biggest bases.
But I just wanted to know if I should be using `scale_fluid_usage` since the name and documentation seem to imply that setting this to false will in fact cause it to consume fluid constantly.
I thought `scale_fluid_usage = false` would do that, but apparently not. The property didn't seem to have any effect and eventually my test setup became fully backed up on fluid and fuel, at which point the generator stopped consuming fluid altogether as there were no more power consumers on the network.
I could use a Lua-driven combination of storage tank + electric energy interface to manually consume fluid, but I think we can all agree that's not a great idea. It is an option though, and if done properly with spreading updates out across ticks, it should be performant enough for all but the biggest bases.
But I just wanted to know if I should be using `scale_fluid_usage` since the name and documentation seem to imply that setting this to false will in fact cause it to consume fluid constantly.