Smooth Fluids

by Shingen

Smoothes out fluid-using recipes, making them proportionally take less time, use fewer resources, and create fewer products.

Tweaks
2 months ago
0.18 - 2.0
924
Fluids

Changelog

Version: 1.0.0
Date: 2020-06-27
  Other:
    - Initial release.
Version: 1.0.1
Date: 2020-07-03
  Fixes:
    - Fixed a rare case of a nearly infinite recursion caused by floating point number imprecisions.
Version: 1.0.2
Date: 2020-09-20
  Features:
    - Removed checking/skipping recipes with probabilities - they should work.
    - Added a recipe blacklist.
Version: 1.0.3
Date: 2020-09-24
  Fixes:
    - Skipping ingredients and results with amounts = 0 causing another infinite recursion.
  Other:
    - Changed dependencies to hidden.
Version: 1.0.4
Date: 2020-11-23
  Other:
    - Factorio 1.1 version bump.
Version: 1.1.0
Date: 2023-10-02
  Features:
    - Improved common divisor calculations to allow for non-integer divisors.
    - Added support for result ranges.
    - Added support for single-result recipes.
    - Added support for normal/expensive recipes.
    - Added a setting to enable smoothing also non-fluid-involving recipes.
Version: 1.1.1
Date: 2023-10-03
  Fixes:
    - Fixed integer detection to prevent yet another infinite loop.
Version: 1.2.0
Date: 2024-03-24
  Changes:
    - Decreased the default shortest crafting time to 0.18s.
  Fixes:
    - Fixed operations on non-round values sometimes resulting in multiplying ('bulking') the recipe instead of dividing ('smoothing') it.
    - Improved the 'precision' of crafting time from being equal to the shortest crafting time, to 0.01s.
Version: 1.3.0
Date: 2024-07-08
  Fixes:
    - Moved main code to data-final-fixes and added dependencies to Krastorio2 and 248k, to fix an issue of those and possibly other mods modifying recipes their own way after they've been smoothed.
Version: 1.3.1
Date: 2024-10-21
  Fixes:
    - Factorio 2.0 compatibility - support for recipes with no ingredients
  Other:
    - Factorio 2.0 version bump.