SatisfactoryTools icon indicating copy to clipboard operation
SatisfactoryTools copied to clipboard

An option to show splitting fractions

Open aldanor opened this issue 3 years ago • 5 comments

When designing perfect splitting, often ratios pop up like 7/15 and 8/15 etc, which is very hard to figure from numbers like 124.44/min and 142.22/min.

It would be nice if it could be displayed like this:

--> 124.44/min (7/15) --> 142.22/min (8/15)

aldanor avatar Mar 19 '21 14:03 aldanor

Hi, not sure about fractions, but I think I can show percentages, if that's enough? Fractions are sometimes hard/impossible to calculate.

greeny avatar Mar 19 '21 14:03 greeny

Fractions are much better when designing splitters, percentages don't tell you much quite often.

E.g. how do you split 53.33% off?.. Well, if you know that it's 7:8 (i.e., 7/15 and 8/15), you can do this:

  • split 1/3, 1/3, 1/3
  • the middle one you now have to split into 8/15-1/3=3/15 and 7/15-1/3=2/15, so basically it's a 2:3 ratio, this can be simply done e.g. like so
  • merge the side ones back and you're done, perfect 7:8 ratio

(The example above is not even so bad, what about 77.14285714285715%? Well, it's 27/35 in fact, so it's a 27:8 split ratio)

Using fractions is generally better than using floats for computations like this because it's completely lossless and there's no rounding errors (you can always show a fraction as a decimal, but you can't do the inverse). IIRC there's some JS libraries like Fractions.js that are pretty good at this, too, which provides drop-in replacements for the built-in Number.

If this app supported proper fractions, it would surely be a step ahead compared to all other calculators, I think :)

aldanor avatar Mar 19 '21 15:03 aldanor

I'm gonna have a look at it, thanks. Although I never had any issues like that since I usually don't care about splitting ratios, manifolds (overflow method) work the same eventually, so I'm saving myself the pain of designing splitters and I just connect everything and it works :)

greeny avatar Mar 19 '21 15:03 greeny

Agreed, manifolds are great within factories, it's more for cases of splitting some raw resources at the very-very start before they flow into production. Anyways, it's not that critical :)

Another thing I've noted - it takes a while to figure how much each node produces since you have to add it all up yourself, e.g. you have a constructor producing iron plates and then it splits into three nodes - you have numbers for all those arrows but not for the constructor node itself.

aldanor avatar Mar 19 '21 17:03 aldanor

Thanks for the suggestion! There are plans to improve on displaying the info, so I'll definitely consider adding some extra QOL.

greeny avatar Mar 19 '21 17:03 greeny