[Raiguard] [2.0.11] storage tank display is inconsistent

User avatar
hgschmie
Inserter
Inserter
Posts: 38
Joined: Tue Feb 06, 2024 5:18 am
Contact:

[Raiguard] [2.0.11] storage tank display is inconsistent

Post 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 301 times
User avatar
hgschmie
Inserter
Inserter
Posts: 38
Joined: Tue Feb 06, 2024 5:18 am
Contact:

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

Post 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
User avatar
raiguard
Factorio Staff
Factorio Staff
Posts: 579
Joined: Wed Dec 13, 2017 8:29 pm
Contact:

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

Post by raiguard »

I think this is just a rounding issue in the tooltip GUI.
Don't forget, you're here forever.
User avatar
hgschmie
Inserter
Inserter
Posts: 38
Joined: Tue Feb 06, 2024 5:18 am
Contact:

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

Post 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 178 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 178 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 178 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 178 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 178 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 178 times
... which you still can't pump out. :-)
Jap2.0
Smart Inserter
Smart Inserter
Posts: 2372
Joined: Tue Jun 20, 2017 12:02 am
Contact:

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

Post by Jap2.0 »

For any interested observers, round vs floor has a bit of a contentious history (29184, 32439, 49274, 78370).
There are 10 types of people: those who get this joke and those who don't.
Post Reply

Return to “Assigned”