Page 1 of 1

[Rseding91] [1.0.0] Error changing too hot fluid in Infinity pipe's filter

Posted: Wed Nov 11, 2020 11:33 am
by Muche
When the fluid set in Infinity pipe's filter has higher default_temperature than 100, trying to change the fluid to one with max_temperature less or equal than 100 (or trying to clear it) leads to an "Error Util.cpp:83: Can't set max value to < min value".
I first discovered it using SeaBlock pack(Angel's smelting specifically)+EditorExtension's Infinity pipe.

Steps to reproduce:
  1. Add the following fluid:

    Code: Select all

    {
      type = "fluid",
      name = "superheated-water",
      default_temperature = 101,
      max_temperature = 200,
      heat_capacity = "0.2KJ",
      base_color = {r=0, g=0.17, b=0.3},
      flow_color = {r=0.7, g=0.7, b=0.7},
      icon = "__base__/graphics/icons/fluid/water.png",
      icon_size = 64, icon_mipmaps = 4,
      order = "a[fluid]-a[water]"
    }
  2. Have an Infinity pipe placed (in play via added dummy recipe; EE's Infinity pipe; in Editor; or in a custom scenario).
  3. Set the filter to superheated-water.
  4. Clear the filter (by right-clicking the button).
    Alternatively, set the filter to regular water.
  5. The error dialog shows up.
The important part is that superheated-water's default_temperature is higher than water's max_temperature. (Going from superheated-water to steam to water is fine and doesn't produce the error.)

Re: [Rseding91] [1.0.0] Error changing too hot fluid in Infinity pipe's filter

Posted: Wed Nov 11, 2020 5:18 pm
by Rseding91
Thanks for the report. It's now fixed for the next release.