Odd warnings in log about icon scales?
Posted: Wed Nov 25, 2020 8:06 pm
I feel like this kind of thing has come up before but can't put my finger on it ... This has started appearing since 1.1.0.
The above is appearing in my log. "empty-barrel.png" is my replacement for the empty barrel item and is also the bottom layer of filled barrels. The filled barrel item prototypes comes out like this, I don't feel like there's anything amiss:
What's really odd though is the same warning appearing for the base mod's accumulator.png. I don't touch the accumulator item (I've triple checked). I do touch the entity but I don't change its icon. Yet if I remove my mod (and all the barrel changes), the warning about the accumulator icon goes away. I also checked by removing every other mod except mine.
The only thing that accumulators and empty barrels have in common is in both cases, the icon file is used for multiple items, one of which has a single icon definition and the other(s) use layered icons. In the accumulator's case it's used for the default Electric Energy Interface item as well, but with the single icon in an icons definition. Scale isn't set explicitly in any of the definitions though so I'm not sure why the warning about different scales. I know that there are various shenanigans involving scale and layers but in all cases these icons are 64x64 with 4 mipmap levels and those properties are set explicitly by both my mod and the base mod - scale is never set.
If I comment out my barrel changes then I still get the accumulator.png warning. Yet I'm 100% certain that I don't go anywhere near either the accumulator or the EEI item.
So, uh. Um?
Code: Select all
6.208 Warning AtlasSystem.cpp:155: Image "__base__/graphics/icons/accumulator.png" was used for an icon multiple times with different scale. Icon background might not be consistent with other icons.
6.208 Warning AtlasSystem.cpp:155: Image "__IndustrialRevolution__/graphics/icons/64/empty-barrel.png" was used for an icon multiple times with different scale. Icon background might not be consistent with other icons.
6.208 Warning AtlasSystem.cpp:155: Image "__IndustrialRevolution__/graphics/icons/64/empty-barrel.png" was used for an icon multiple times with different scale. Icon background might not be consistent with other icons.
6.208 Warning AtlasSystem.cpp:155: Image "__IndustrialRevolution__/graphics/icons/64/empty-barrel.png" was used for an icon multiple times with different scale. Icon background might not be consistent with other icons.
6.208 Warning AtlasSystem.cpp:155: Image "__IndustrialRevolution__/graphics/icons/64/empty-barrel.png" was used for an icon multiple times with different scale. Icon background might not be consistent with other icons.
6.208 Warning AtlasSystem.cpp:155: Image "__IndustrialRevolution__/graphics/icons/64/empty-barrel.png" was used for an icon multiple times with different scale. Icon background might not be consistent with other icons.
6.208 Warning AtlasSystem.cpp:155: Image "__IndustrialRevolution__/graphics/icons/64/empty-barrel.png" was used for an icon multiple times with different scale. Icon background might not be consistent with other icons.
6.208 Warning AtlasSystem.cpp:155: Image "__IndustrialRevolution__/graphics/icons/64/empty-barrel.png" was used for an icon multiple times with different scale. Icon background might not be consistent with other icons.
6.208 Warning AtlasSystem.cpp:155: Image "__IndustrialRevolution__/graphics/icons/64/empty-barrel.png" was used for an icon multiple times with different scale. Icon background might not be consistent with other icons.
Code: Select all
{
icons = {
{
icon = "__IndustrialRevolution__/graphics/icons/64/empty-barrel.png",
icon_mipmaps = 4,
icon_size = 64
},
{
icon = "__IndustrialRevolution__/graphics/icons/64/barrel-mask.png",
icon_mipmaps = 4,
icon_size = 64,
tint = {
a = 1,
b = 1,
g = 0.66250000000000018,
r = 0.25
}
}
},
localised_name = {
"item-name.filled-barrel",
{
"fluid-name.water"
}
},
name = "water-barrel",
order = "b[water-barrel]",
stack_size = 10,
subgroup = "barrel",
type = "item"
}
The only thing that accumulators and empty barrels have in common is in both cases, the icon file is used for multiple items, one of which has a single icon definition and the other(s) use layered icons. In the accumulator's case it's used for the default Electric Energy Interface item as well, but with the single icon in an icons definition. Scale isn't set explicitly in any of the definitions though so I'm not sure why the warning about different scales. I know that there are various shenanigans involving scale and layers but in all cases these icons are 64x64 with 4 mipmap levels and those properties are set explicitly by both my mod and the base mod - scale is never set.
If I comment out my barrel changes then I still get the accumulator.png warning. Yet I'm 100% certain that I don't go anywhere near either the accumulator or the EEI item.
So, uh. Um?