[Minor] Unexpected behaviour from fluid energy sources in inserters
Posted: Thu Oct 22, 2020 12:53 am
This is not a big deal and might or might not have been fixed already: viewtopic.php?f=30&t=88263
I'm experimenting with machines that are directly powered by steam and mostly it's smooth sailing. You can get easy and expected results from the standard energy value of steam versus the specified energy_usage of the machine with definitions like this:
However inserters with a fluid energy source go completely bonkers when you use the same template. At a guess I'd say it's because you don't specify energy_usage for inserters - the energy value shown in-game is derived through some function of energy_per_rotation and energy_per_movement. What you get is madly fluctuating fluid consumption in the inserter, from zero to thousands of units/s back and forth - the inserter literally decides to randomly eat beyond 30 MW of steam power even though the in-game tooltip shows an average consumption of 35 kW.
You can work around it by specifying fluid_usage_per_tick manually, which gave me a bit of a headache and produces interesting numbers like 0.0186666666666667, but you can get sane behaviour that way.
I'm experimenting with machines that are directly powered by steam and mostly it's smooth sailing. You can get easy and expected results from the standard energy value of steam versus the specified energy_usage of the machine with definitions like this:
Code: Select all
energy_source = {
type = "fluid",
fluid_box = {
filter = "steam",
base_area = 1,
base_level = -1,
height = 2,
production_type = "input-output",
pipe_connections = {
{ type="input-output", position = {2, 0} },
{ type="input-output", position = {-2, 0} },
},
pipe_picture = blah,
pipe_covers = blah,
},
maximum_temperature = 165
}
You can work around it by specifying fluid_usage_per_tick manually, which gave me a bit of a headache and produces interesting numbers like 0.0186666666666667, but you can get sane behaviour that way.