Hello,
If you connect a storage tank with a fluid between 0 and 1 (e.g. 0.7) to a circuit network and check if the amount of the fluid equals 0, it is evaluated to true. I would expect a fluid amount of 0.7 to not be equal to zero.
Attached is an savegame from a wave defense since it was easy to setup, but I encountered this problem in the normal game too.
[0.15.37] Circuit network reports fluid between 0 and 1 as=0
[0.15.37] Circuit network reports fluid between 0 and 1 as=0
- Attachments
-
- WaterTest.zip
- (1.38 MiB) Downloaded 99 times
Re: [0.15.37] Circuit network reports fluid between 0 and 1 as=0
Oh sorry. Though rather hard to find with that title )-:
Did the devs ever mention why moving to integer based fluids is not an options?
Did the devs ever mention why moving to integer based fluids is not an options?
Re: [0.15.37] Circuit network reports fluid between 0 and 1 as=0
Because it's not precise enough. double precision floating points aren't precise enough so removing the floating point completely also isn't an option.tobyas wrote:Oh sorry. Though rather hard to find with that title )-:
Did the devs ever mention why moving to integer based fluids is not an options?
If you want to get ahold of me I'm almost always on Discord.