[1.0.0] tanks with fluids not giving a signal
Posted: Tue Oct 27, 2020 12:22 am
If a tank has less then 1 fluid but more then 0 (ex: 0.3 fluid) then it will not output a signal on a circuit network despite containing fluid
Recreating bug:
1) Placed blueprint 1 and waited a bit for it to stop moving liquid
2) Mouse over center tank and observe that there is liquid in it
3) Mouse over substation and note that the red signal is the only signal there
I expected it to not output 0 unless the tank is empty
Posable fix:
round up instead of down when dealing with fractional fluid amounts
Blueprint 1:
0eNq9WE2OmzAUvkrldRhhgyHJootueohqFDngMFbBIGPSpiMO0Fv0bD1JHzCBZGJiPB1NFlH8MN/73r+dZ7TPG14pITXaPiORlLJG22/PqBaZZHkn06eKoy06CqUbkKyQZEUnGHZ4GLUrJGTKf6Itbh9XiEsttOADTL847WRT7LmCDdPbulQs455m8jtgVmUNL5WyUwhAXkgf6Aqd4BcJHyhoSIXiybCDtKsbYDIBN/tas37nLSz1X0ABA4GtcsCsu+e4+8oU5/KSuUjRNrpQ2K3j9rFtDSSCkUTVFJXJqmi06oWAVmW+2/MndhSl6rYlQiWN0Dt4lo7vHoSq9e4mJIe8ATqj0ifOjievFDkasMENXVT9blFUTDHdqUB/f/9BrYv5c+aGi4NJRrPxkmDSEZjnsE+JxOOSq+zkQZpydWAJN8U2Ouu41gDifXM4cAUO/AWg2B8/Bt3RqPvsQQ+8txey955BKx5t83vbTEE9iBx4OxaW4ukQyKaLIr4sMpfokZnoxYujF58txJub6DkRua6i4NV6/WpN6AzztbXMriNyw/c9iy4X2ZP+wKLbTMaLylQG0VhseA3mGyCwb8XAVgxsxfCtGMSGQTdWjMCKsbZiXDSyguW5N3adqszNneaqIkyQ1EorttKKrBiRFSO2YlArxtqKEVoxrGlLAxsGsaYttaY+saYttaY+Ibb+cz5l9Ajv3X/mxsXX+w3oMzK2EzLVD/QwmDkHAZP2dL+eaW8WGCV6Riw9MpnwtOuCXqXKhNe1kBkyqQuXqrvIy/9QR62jYuoO8XWowncfFRXv0HhTeBmrP2hckOgNYz6cSfzYYW6QGYzrZuLp0ssUnHDS+xlHFt0BNg7zZIZf4C/ndzFZbvhFJmzs0NDn+BEHftTNf0Hg0Ojn+IUO/AJH/1GH3JlGwaIrRxA55DaesT1+U27jRbY71M3F0WKZ7RuHvJyxPZzqRkho6vDMs4MN5/PzC7uaaw2dvG91L2A/GFycOhCuElAJ/au/CmlegITpRvHhsFWUaT8btJdzVmtk5IjfVDuL4hMSh9qZ82Gw3Iehgw8T1aS8v6Lc9yMx+vERwGEbCKd/ilYoZ3sOow59Ocs+YZAe4ZI7pNkah3G4iaMY+xGN2vYf6Gv57w==
Recreating bug:
1) Placed blueprint 1 and waited a bit for it to stop moving liquid
2) Mouse over center tank and observe that there is liquid in it
3) Mouse over substation and note that the red signal is the only signal there
I expected it to not output 0 unless the tank is empty
Posable fix:
round up instead of down when dealing with fractional fluid amounts
Blueprint 1:
0eNq9WE2OmzAUvkrldRhhgyHJootueohqFDngMFbBIGPSpiMO0Fv0bD1JHzCBZGJiPB1NFlH8MN/73r+dZ7TPG14pITXaPiORlLJG22/PqBaZZHkn06eKoy06CqUbkKyQZEUnGHZ4GLUrJGTKf6Itbh9XiEsttOADTL847WRT7LmCDdPbulQs455m8jtgVmUNL5WyUwhAXkgf6Aqd4BcJHyhoSIXiybCDtKsbYDIBN/tas37nLSz1X0ABA4GtcsCsu+e4+8oU5/KSuUjRNrpQ2K3j9rFtDSSCkUTVFJXJqmi06oWAVmW+2/MndhSl6rYlQiWN0Dt4lo7vHoSq9e4mJIe8ATqj0ifOjievFDkasMENXVT9blFUTDHdqUB/f/9BrYv5c+aGi4NJRrPxkmDSEZjnsE+JxOOSq+zkQZpydWAJN8U2Ouu41gDifXM4cAUO/AWg2B8/Bt3RqPvsQQ+8txey955BKx5t83vbTEE9iBx4OxaW4ukQyKaLIr4sMpfokZnoxYujF58txJub6DkRua6i4NV6/WpN6AzztbXMriNyw/c9iy4X2ZP+wKLbTMaLylQG0VhseA3mGyCwb8XAVgxsxfCtGMSGQTdWjMCKsbZiXDS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