[0.15.25] Train Station fluid Content signal Rounding error

Things that has been reported already before.
Post Reply
firebladed3
Manual Inserter
Manual Inserter
Posts: 3
Joined: Fri Jun 30, 2017 5:22 pm
Contact:

[0.15.25] Train Station fluid Content signal Rounding error

Post by firebladed3 »

Train stations Signal output appears to be rounding incorrectly

have fluid wagon with each tank containing 0.5 train show content as 1.5
however a signal wire attached to train staion reads 0

i would guess train summing before rounding round(0.5+0.5+0.5) = 1.5
where as station is rounding before summing round(0.5)+round(0.5)+round(0.5) = 0
train4.png
train4.png (720.23 KiB) Viewed 1008 times
train5.png
train5.png (775.29 KiB) Viewed 1008 times
train6.png
train6.png (653.03 KiB) Viewed 1008 times
a second case have fluid wagon with each tank containing 0.3 train show content as 1 rather than 1.3
however a signal wire attached to train staion reads 0

i would guess train summing before rounding round(0.3+0.3+0.3) = 1
where as station is rounding before summing round(0.3)+round(0.3)+round(0.3) = 0
train1.png
train1.png (658.54 KiB) Viewed 1008 times
train2.png
train2.png (551.98 KiB) Viewed 1008 times
train3.png
train3.png (739.5 KiB) Viewed 1008 times
if stations listing total should probably sum before rounding for signal output

notice when trying to setup stations that dont acidently unload wrong things, but at the moment even with three pumps using inventory > 0 condition leaves fractions in the train
Attachments
factorio-current.log
(28.34 KiB) Downloaded 76 times


Post Reply

Return to “Duplicates”