[0.14] Fluid UI panel flickering (reproducible)
Posted: Fri Oct 14, 2016 7:25 pm
The fluid info panel (that appears near bottom-right when hovering a pipe) will flicker if the following conditions are met:
1. The pipe prototype has a fluid_box.base_area less than 1
2. A row of those pipes, with no consumers/producers altering their fluids, contains a small amount of leftover fluid
3. Some of the pipes in the row are deleted, then hover mouse over remaining pipes to the right
Steps to reproduce
Easiest way to see it in action is with a few lines of scripting...
1. data.lua
2. control.lua
3. In game, manually build a line of pipes like this:
=================
4. Mine some of the pipes towards the left end
=== === ========
5. Hover over the pipes towards the right end - the fluid UI should start flickering
I know fluid mechanics are getting reworked in 0.15 so hopefully this will already be fixed.
1. The pipe prototype has a fluid_box.base_area less than 1
2. A row of those pipes, with no consumers/producers altering their fluids, contains a small amount of leftover fluid
3. Some of the pipes in the row are deleted, then hover mouse over remaining pipes to the right
Steps to reproduce
Easiest way to see it in action is with a few lines of scripting...
1. data.lua
Code: Select all
data.raw.pipe.pipe.fluid_box.base_area = 0.5
Code: Select all
-- this just sets up pipes with small amount of water in them
script.on_event( defines.events.on_built_entity, function( event )
local entity = event.entity
if entity.type == "pipe" then
entity.fluidbox[1] = {
type = "water";
amount = 0.1;
temperature = 0.15;
}
end
end )
=================
4. Mine some of the pipes towards the left end
=== === ========
5. Hover over the pipes towards the right end - the fluid UI should start flickering
I know fluid mechanics are getting reworked in 0.15 so hopefully this will already be fixed.