icon_size prototype specification breaks with size 1

Bugs that are actually features.
Post Reply
User avatar
Reika
Filter Inserter
Filter Inserter
Posts: 582
Joined: Tue May 19, 2015 1:56 am
Contact:

icon_size prototype specification breaks with size 1

Post 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.
Image

EnigmaticAussie
Fast Inserter
Fast Inserter
Posts: 129
Joined: Mon Dec 18, 2017 7:53 am
Contact:

Re: icon_size prototype specification breaks with size 1

Post 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

Bilka
Factorio Staff
Factorio Staff
Posts: 3128
Joined: Sat Aug 13, 2016 9:20 am
Contact:

Re: icon_size prototype specification breaks with size 1

Post by Bilka »

Please post a minimal mod that reproduces the issue in an otherwise vanilla game.
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.

posila
Factorio Staff
Factorio Staff
Posts: 5201
Joined: Thu Jun 11, 2015 1:35 pm
Contact:

Re: icon_size prototype specification breaks with size 1

Post 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)

User avatar
Therax
Filter Inserter
Filter Inserter
Posts: 470
Joined: Sun May 21, 2017 6:28 pm
Contact:

Re: icon_size prototype specification breaks with size 1

Post 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.
Miniloader — UPS-friendly 1x1 loaders
Bulk Rail Loaders — Rapid train loading and unloading
Beltlayer & Pipelayer — Route items and fluids freely underground

Post Reply

Return to “Not a bug”