Skip to main content

Fluid rounding incorrect

Alternate title - the evils of units that are not what they seem…

Game setting - Recipe Parts Multiplier 0.5

Refinery with HOR alt recipe: In game, the 30 input oil become 15. The modeler displays 20.

The cause seems to be that the config files for modeler handle fluids with an implicit multiplier of 1000. The game also handles fluid quantities as multiples of 1000 - but divides by 100 for UI display. So, naturally, the config files say the input is “-3” meaning -3,000 oil. That’s OK so far.

The issue relates to the fact that the game calculates the ½ price recipe parts as 3×1000×0.5 yielding a display of 15 (but handled internally as 1500). The problem is that the modeler seems to be doing (3×0.5)*1000 with rounding on the first sub-calculation.

3 comments

Log in to comment and vote

Comments3

  • Arcane Tourist

    •

    Jul 4

    Sorry - Just noticed that it’s only the tooltip recipe display that is incorrect. The calculations in the graph are fine:

    HOR.sfmd

    605 bytes

  • satisfactorymodeler

    Team•

    Jul 4

    I could not reproduce this. Adding a Heavy Oil Residue machine set to 1 with a Recipe Parts Costs Multiplier of .5 has the oil input correctly display 15. The directions for filing bugs instructs you to include screenshots and the exported .sfmd save because 90% of the time I cannot tell what the issue is without those.

  • Arcane Tourist

    •

    Jul 3

    P.S. Thanks to McGalleon on the SF discord for explaining the cause.