Goonstation Forums
Chemistry Micro Errors (Annoying) - Printable Version

+- Goonstation Forums (https://forum.ss13.co)
+-- Forum: Discussion (https://forum.ss13.co/forumdisplay.php?fid=6)
+--- Forum: Bug Reports (https://forum.ss13.co/forumdisplay.php?fid=9)
+---- Forum: Open Bugs (https://forum.ss13.co/forumdisplay.php?fid=22)
+---- Thread: Chemistry Micro Errors (Annoying) (/showthread.php?tid=7476)



Chemistry Micro Errors (Annoying) - aft2001 - 11-16-2016

When I say micro errors I mean literally less than a millionth of a unit of reagent from a whole number.

Sometimes, when doing chemistry, the units decide that they'll all leave a few millionths of a unit left for each reagent that just won't mix into the new reagent. This means that there's residual reagents that fuck up stuff, and the final product has .00000001 units less than the expected amount, leading to bottling and pill making fucking up. I literally had to dump nearly 200 units of pentetic acid because there was a tiny, TINY amount of residual shit left that would've screwed up pill making.

To fix this, simply add a script that rounds units to the nearest thousandth, and anything less than .001 would just leave existence, and something that's 9.999 units would become 10 units. It just makes life easier, and, who's really gonna use .0001 units of something?


RE: Chemistry Micro Errors (Annoying) - somepotato - 11-20-2016

Adding an epsilon value to reagent holders is a good idea