Page 1 of 1

icon_size prototype specification breaks with size 1

Posted: Sun Jun 23, 2019 5:25 am
by Reika
Specifically, it somehow interprets

Code: Select all

icon_size = 1
as specifying a size of 32, something that only affects a specification of one.


Image

Image
Image


Worth noting is that this issue does not affect me, implying something to do with mods is involved.

Re: icon_size prototype specification breaks with size 1

Posted: Sun Jun 23, 2019 5:28 am
by EnigmaticAussie
From Discord Chat at time.

Code: Select all

return
    {
        type = "item",
        name = getRefname(data.name),
        icon = "__core__/graphics/empty.png",
        icon_size = 1,
        stack_size = 1,
        order = parseColor(data),
        hidden = true
    }
icon_size = 1
Image
icon_size = 7
Image
icon_size = 2
Image

Re: icon_size prototype specification breaks with size 1

Posted: Sun Jun 23, 2019 5:32 am
by Bilka
Please post a minimal mod that reproduces the issue in an otherwise vanilla game.

Re: icon_size prototype specification breaks with size 1

Posted: Sun Jun 23, 2019 6:20 am
by posila
Reika wrote: Sun Jun 23, 2019 5:25 am Specifically, it somehow interprets

Code: Select all

icon_size = 1
as specifying a size of 32, something that only affects a specification of one.

Worth noting is that this issue does not affect me, implying something to do with mods is involved.
One of the listed mods must be taking all item icons and assumes they all are 32x32, instead of using icon_size.
To narrow down which mod, copy empty.png to your mod and use the copy (so it is not referenced by bunch of other mods for other purpose)

Re: icon_size prototype specification breaks with size 1

Posted: Sun Jun 23, 2019 6:26 am
by Therax
It’s likely something that is creating recipe icons for void recipes to destroy items, and is using “icons” to build a composite icon with an overlay over or under the item icon, and it’s that mod that has the bug. It’s probably something in the PyMods suite.