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

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

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

Post by lovely_santa » Sun Dec 03, 2017 11:15 pm

Hi,

While modding I came across this detailed (alt) view:
alt-view.png
alt-view.png (207.7 KiB) Viewed 992 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.
Image

kovarex
Factorio Staff
Factorio Staff
Posts: 7424
Joined: Wed Feb 06, 2013 12:00 am
Contact:

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

Post by kovarex » Mon Dec 11, 2017 8:46 pm

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”

Who is online

Users browsing this forum: No registered users