Page 1 of 1

[0.15.37] Circuit network reports fluid between 0 and 1 as=0

Posted: Wed Oct 18, 2017 4:34 am
by tobyas
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.

Re: [0.15.37] Circuit network reports fluid between 0 and 1 as=0

Posted: Wed Oct 18, 2017 11:48 am
by Loewchen

Re: [0.15.37] Circuit network reports fluid between 0 and 1 as=0

Posted: Fri Oct 20, 2017 12:08 pm
by tobyas
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?

Re: [0.15.37] Circuit network reports fluid between 0 and 1 as=0

Posted: Fri Oct 20, 2017 8:53 pm
by Rseding91
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?
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.