[kovarex] [0.15.37/40][Modding] Icon size / scale

This subforum contains all the issues which we already resolved.
User avatar
lovely_santa
Filter Inserter
Filter Inserter
Posts: 502
Joined: Sat Feb 18, 2017 9:41 pm
Contact:

[kovarex] [0.15.37/40][Modding] Icon size / scale

Post by lovely_santa »

Hi,

While modding I came across this detailed (alt) view:
alt-view.png
alt-view.png (207.7 KiB) Viewed 3411 times
As you see, the icon is too big to fit the assembler (same happens when extracting with inserter, or when it's in a chest).
I have one HD image for this entity/icon/technology/recipy. So I'm using a single image for everything, and it's resizing everywhere except the icon itself on the surface (it does resize in the inventory).

As I heard the devs want to increase icon resolution... well it's not working (yet)... Only solution would be to make a 32x32 image for the icon... would be a waste in my opinion..

Conclusion: I can use a HQ image for technology, icon in inventory, entity sprite, recipy and entities, but not for the icon on the surface. I also added the prototypes (as RSeding requested already).

Greetings
lovely_santa

Code: Select all

{
    type = "item",
    name = "corpse-flare",
    icon = "__BugZilla__/graphics/entity/corpse-flare.png",
    icon_size = 200,
    flags = {"goes-to-main-inventory"},
    subgroup = "tool",
    order = "z[flare]-z[corpse-flare]",
    stack_size = 1
  },

  {
    type = "recipe",
    name = "corpse-flare",
    enabled = false,
    ingredients =
    {
      {type="item", name="electronic-circuit", amount=5},
      {type="item", name="small-lamp", amount=5},
      {type="item", name="grenade", amount=1}
    },
    energy_required = 5,
    result= "corpse-flare",
    result_count = 1
  },
You can find all my mods on the mod portal. Also helping on Arch666Angel's mods.
Image
kovarex
Factorio Staff
Factorio Staff
Posts: 8207
Joined: Wed Feb 06, 2013 12:00 am
Contact:

Re: [kovarex] [0.15.37/40][Modding] Icon size / scale

Post by kovarex »

Hello, you are right.
Making extra file would not only be waste, but mainly, you wouldn't get the advantage of icon in higher resolution that don't look that pixelated when you zoom in.
The size of the picture drawn has been normalized so it is always the same.

Fixed for 0.16
Post Reply

Return to “Resolved Problems and Bugs”