Page 1 of 1

[0.15.10] Modded fluid with layered icons can't be barreled

Posted: Tue May 16, 2017 1:48 am
by AndrolGenhald
If a mod adds a fluid with the icons property instead of icon:

Code: Select all

  {
    type = "fluid",
    name = "water-test",
    default_temperature = 15,
    max_temperature = 100,
    heat_capacity = "0.2KJ",
    base_color = {r=0, g=0.34, b=0.6},
    flow_color = {r=0.7, g=0.7, b=0.7},
    icons = {{icon = "__base__/graphics/icons/fluid/water.png"}},
    order = "a[fluid]-a[water]",
    pressure_to_speed_ratio = 0.4,
    flow_to_energy_ratio = 0.59
  },
The fluid won't get barreling recipes/item generated due to:

Code: Select all

if (fluid.auto_barrel == nil or fluid.auto_barrel) and fluid.icon then
Probably fairly low priority, I'm not really bothered by it myself but I expect someone will eventually try to make some fluids using tinted icons and go crazy trying to figure out why they can't be barreled :)

Related: viewtopic.php?f=34&t=47676

Re: [0.15.10] Modded fluid with layered icons can't be barreled

Posted: Tue May 16, 2017 3:05 am
by Rseding91
Thanks for the report but this isn't a bug :) It was purposefully setup to not auto-barrel fluids with layered icons because it simply doesn't work as the game handles icons now.

That may change some day but for now it's working as intended.

Re: [0.15.10] Modded fluid with layered icons can't be barreled

Posted: Tue May 16, 2017 3:13 am
by AndrolGenhald
That's what I expected, I was looking for a feature request forum to put this in but I didn't see one so I put it here, looking again I can see it should have gone in Ideas and Suggestions...oops :)