[1.1.53] Rounding fluid amount in rolling stock
Posted: Tue Feb 08, 2022 11:11 pm
What did you do?
Created setup to transfer fluids like blood flow in the pulmonary and systemic circulations https://en.wikipedia.org/wiki/Circulatory_system.
But in "heart" I have a problem with amount of fluids. All conditions are like is full, is empty.
What happened?
Train filled in refinery reports 300k of fluid in whole rolling stock. It fulfil "is full" condition ad go to transfer station (heart). After arrive starts unloading by pumps until "is empty" condition will be fulfilled. Condition is OK and when is empty - goes back to refinery. Second train (brand new, placed on station, so EVERY wagon is empty ) fill by pumps only to 299k of fluid.. But signal reports 300k of fluids. Train have condition "is full" but this condition will be never met because train have only 299k of fluid.
What did you expect to happen instead? It might be obvious to you, but do it anyway!
Transfer every unit into second empty train. Pumps are empty. Tested on other similar station - all behavior is the same.
Tested it on editor but in editor works as intended. Weird.
I do not have an idea how to debug what is wrong and where fluids are gone.
Something useful is every wagon reports 50k of fluid but if its connected with loco - loco reports only 49k of fluid.
UPDATE:
Found an issue. Connected pumps into tanks. After train unload, tans gui reporting 50k of fluids but signal is 299934 units of fluid...
Where are my 66 units of fluid? Flushed tanks and after tanks are empty (0) some fluid flow from pumps and yes, every tank have 10,9 units
of fluid 6 tanks with 10,9 of fluid is... 65,4 units that not flown into tanks. Root cause found but how to resolve?
Created setup to transfer fluids like blood flow in the pulmonary and systemic circulations https://en.wikipedia.org/wiki/Circulatory_system.
But in "heart" I have a problem with amount of fluids. All conditions are like is full, is empty.
What happened?
Train filled in refinery reports 300k of fluid in whole rolling stock. It fulfil "is full" condition ad go to transfer station (heart). After arrive starts unloading by pumps until "is empty" condition will be fulfilled. Condition is OK and when is empty - goes back to refinery. Second train (brand new, placed on station, so EVERY wagon is empty ) fill by pumps only to 299k of fluid.. But signal reports 300k of fluids. Train have condition "is full" but this condition will be never met because train have only 299k of fluid.
What did you expect to happen instead? It might be obvious to you, but do it anyway!
Transfer every unit into second empty train. Pumps are empty. Tested on other similar station - all behavior is the same.
Tested it on editor but in editor works as intended. Weird.
I do not have an idea how to debug what is wrong and where fluids are gone.
Something useful is every wagon reports 50k of fluid but if its connected with loco - loco reports only 49k of fluid.
UPDATE:
Found an issue. Connected pumps into tanks. After train unload, tans gui reporting 50k of fluids but signal is 299934 units of fluid...
Where are my 66 units of fluid? Flushed tanks and after tanks are empty (0) some fluid flow from pumps and yes, every tank have 10,9 units
of fluid 6 tanks with 10,9 of fluid is... 65,4 units that not flown into tanks. Root cause found but how to resolve?