[0.17.43] round down floats <1.0 leads to undesired behaviors

Bugs that are actually features.
Post Reply
Posts: 42
Joined: Sat Sep 24, 2016 1:33 pm

[0.17.43] round down floats <1.0 leads to undesired behaviors

Post by Cobaltur »

reading fluids from entities like tanks and trains will be rounded down.
in case of values lower than 1 no signal will be transported.
Therefore decions like "<1" or "!=0" are correct at the the target

Even though programatically everthing seems fine, personally the overall case is incorrect.

Maybe you can think about rounding up values before sending them to the network. But I guess you took this consideration already because this would be to obvious :D

2 samples:
  • checking for undesired fuilds in the network: in the tank is a minimal amount of a certain fluid.
    • Expectation:An alert should be raised.
    • Actual: nothing happens. (Even worse the tank cannot be used for any other liquid)
  • unloading train:
    • Expectation: A pump should unload the fluid until anything is in.
    • Actual: it's not working it the train arrives with a real small amount (a workaround skipping logistics and use train condition:empty train is not suitable within the "logsitic train mod" and reusing a single train for different purposes)
low_fuilds.jpg (585.41 KiB) Viewed 325 times
as you can see the poles already indicates there are no signals in case of <1 and in case of 2.6 only 2 is shown
(2.68 MiB) Downloaded 9 times

Factorio Staff
Factorio Staff
Posts: 2790
Joined: Sat Aug 13, 2016 9:20 am

Re: [0.17.43] round down floats <1.0 leads to undesired behaviors

Post by Bilka »

I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.

Post Reply

Return to “Not a bug”