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

This subforum contains all the issues which we already resolved.
Muche
Fast Inserter
Fast Inserter
Posts: 219
Joined: Fri Jun 02, 2017 6:20 pm
Contact:

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

Post 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.)
Attachments
factorio-current-InfinityPipeTooHotFluid.log
(7.62 KiB) Downloaded 143 times
Rseding91
Factorio Staff
Factorio Staff
Posts: 14343
Joined: Wed Jun 11, 2014 5:23 am
Contact:

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

Post by Rseding91 »

Thanks for the report. It's now fixed for the next release.
If you want to get ahold of me I'm almost always on Discord.
Post Reply

Return to “Resolved Problems and Bugs”