Page 1 of 1

[Raiguard] [2.0.11] storage tank display is inconsistent

Posted: Sat Oct 26, 2024 10:25 pm
by hgschmie
Storage tank shows different values when opening it (25k) and in the side box (24k of 25k).
Screenshot 2024-10-26 at 15.22.11.png
Screenshot 2024-10-26 at 15.22.11.png (2.21 MiB) Viewed 470 times

Re: [Raiguard] [2.0.11] storage tank display is inconsistent

Posted: Fri Nov 01, 2024 5:29 pm
by hgschmie
This is still the case with 2.0.14 (which fixes the "teleport a storage tank" problem).

This might be related to viewtopic.php?f=7&t=117768

Re: [Raiguard] [2.0.11] storage tank display is inconsistent

Posted: Sat Nov 02, 2024 12:34 am
by raiguard
I think this is just a rounding issue in the tooltip GUI.

Re: [Raiguard] [2.0.11] storage tank display is inconsistent

Posted: Sat Nov 02, 2024 1:08 am
by hgschmie
There is more fun with storage tanks and the fluid system:

- create two tanks, fill each with a different liquid to 75% (I use an infinity pipe set to "exactly 75%" from Editor Extension). Each tank shows 19k Pipeline contents, but 18k in the side box. The real value should be 18,750 so that is probably some rounding problem:
Screenshot 2024-11-01 at 17.41.14.png
Screenshot 2024-11-01 at 17.41.14.png (1.36 MiB) Viewed 347 times
- connect them to a fluid level indicator (https://mods.factorio.com/mod/Fluid-level-indicator). Both show 75%.

So now I have this setup:
Screenshot 2024-11-01 at 17.42.37.png
Screenshot 2024-11-01 at 17.42.37.png (533.14 KiB) Viewed 347 times
Place a ghost pipe in the middle and have a robot connect the two fluid systems:

One of the fluid "wins". The pipeline shows "19k lubricant" and "19k water", but none of the tanks contains the water:
Screenshot 2024-11-01 at 17.44.21.png
Screenshot 2024-11-01 at 17.44.21.png (1.12 MiB) Viewed 347 times
You can't get the water out either (this is a pump with a filter set to "water")
Screenshot 2024-11-01 at 17.45.46.png
Screenshot 2024-11-01 at 17.45.46.png (1.75 MiB) Viewed 347 times
But you can get out the lubricant (this is a pump with a filter set to "lubricant"). If all is gone, the water suddenly reappears:
Screenshot 2024-11-01 at 18.01.34.png
Screenshot 2024-11-01 at 18.01.34.png (2.26 MiB) Viewed 347 times
Finally, it turns out that the storage tank "lies" about its capacity. While it claims to hold only 25k of fluids, if you create the same scenario as above again
and then remove the robot generated pipe...

... then the fluid system (which consists of a tank and a single pipe, which should have 25,100 capacity) can hold 28.4k of fluid:
Screenshot 2024-11-01 at 18.05.10.png
Screenshot 2024-11-01 at 18.05.10.png (634.59 KiB) Viewed 347 times
... which you still can't pump out. :-)

Re: [Raiguard] [2.0.11] storage tank display is inconsistent

Posted: Sat Nov 02, 2024 1:51 am
by Jap2.0
For any interested observers, round vs floor has a bit of a contentious history (29184, 32439, 49274, 78370).

Re: [Raiguard] [2.0.11] storage tank display is inconsistent

Posted: Fri Dec 06, 2024 11:32 pm
by raiguard
I'm not going to poke the bear on this again.

The fluid mixing stuff was a separate issue that has been fixed (the whole "extra fluids" concept was removed).