Helfima / helmod

Factorio Mod
149 stars 64 forks source link

Boiler Ingredient Fluid Temperature #496

Open KiwiHawk opened 5 months ago

KiwiHawk commented 5 months ago

Currently, boiler calculations in Helmod assume that the input fluid is at default temperature.

In Py, there are recipes that output 100° and 200° water. Feeding this water into a boiler should use less fuel than heating water from the default temperature.

image

If it is possible for the input fluid to be produced at multiple temperatures, add an additional dropdown to the Recipe Properties screen, allowing the input fluid temperature to be selected.


Boilers have a separate mode where they output the same fluid as was input, except at a higher temperature. For boilers of this type, the product fluid temperature should change, depending on the temperature selected for the input fluid. The "recipe" icon probably shouldn't include the temperature as this is no longer fixed.

https://lua-api.factorio.com/latest/classes/LuaEntityPrototype.html#boiler_mode

KiwiHawk commented 4 months ago

This could be expanded to fix a lot of Helmod's limitations around fluids with temperature. Current limitations:

For recipes that accept fluids at a range of temperatures:

If a fluid ingredient does not specify a temperature, then it can take any temperature:

Screenshot 2024-02-06 152915

KiwiHawk commented 4 months ago

Add a centralized place where users can set default temperatures. The default default temperature should come from these sources:

  1. Offshore pump (default fluid temperature)
  2. Boiler (minimum produced temperature)
  3. Recipe (minimum produced temperature)