Page 1 of 1

icon not displaying?

Posted: Sat Apr 01, 2017 6:05 pm
by Bizobinator
I've created an icon to use in my mod, but it shows up blank. However, the picture isn't blank (though it does have a transparent background). Even pulling it up in Windows picture viewer shows the picture.

What did I do wrong? :P

Here's the picture:
air-horn.png
air-horn.png (131.29 KiB) Viewed 3457 times

Re: icon not displaying?

Posted: Sat Apr 01, 2017 6:37 pm
by steinio
Bizobinator wrote:I've created an icon to use in my mod, but it shows up blank. However, the picture isn't blank (though it does have a transparent background). Even pulling it up in Windows picture viewer shows the picture.

What did I do wrong? :P

Here's the picture:
air-horn.png
It's probably to loud.

Re: icon not displaying?

Posted: Sat Apr 01, 2017 7:28 pm
by Arch666Angel
pictures have to be the right size, else they get cropped. :D Icons = 32x32 px

Re: icon not displaying?

Posted: Sun Apr 02, 2017 5:11 pm
by Bizobinator
Arch666Angel wrote:pictures have to be the right size, else they get cropped. :D Icons = 32x32 px
Yeah, that seems to be the source of it, but it's having issues still >_<. So, when I make the icon *.png file 32x32 pixels, the mod crashes on load-up, saying that it's trying to access the 64x64 loc. But, if I make the image 64x64, it cuts off half the image.

:P

Do I have to make it 33x33?

Re: icon not displaying?

Posted: Sun Apr 02, 2017 5:51 pm
by Arch666Angel
0.15 will have bigger icon option, but for now you have to stick to the 32x32 px icons.

You might want to delete the cropcache, perhaps that helps. Also: Dont save pngs in anything higher than 16bit colors.

Re: icon not displaying?

Posted: Sun Apr 02, 2017 6:06 pm
by Rseding91
Arch666Angel wrote:Also: Dont save pngs in anything higher than 16bit colors.
What? That's a terrible suggestion. You absolutely want to save all PNGs with 32 bit color support if you're using them in Factorio or you loose a massive amount of granularity.

Re: icon not displaying?

Posted: Sun Apr 02, 2017 6:08 pm
by Arch666Angel
Rseding91 wrote:
Arch666Angel wrote:Also: Dont save pngs in anything higher than 16bit colors.
What? That's a terrible suggestion. You absolutely want to save all PNGs with 32 bit color support if you're using them in Factorio or you loose a massive amount of granularity.
Then it was above 32bit, something made problems with mac users

Re: icon not displaying?

Posted: Sat Apr 22, 2017 12:04 am
by Bizobinator
So, icons themselves are 32x32 pixels. What about for group icons? Are those also 32x32?

Re: icon not displaying?

Posted: Sat Apr 22, 2017 12:35 am
by Arch666Angel
item/entity icons 32x32
group icons 64x64
tech icons 128x128 (or smaller if you set the matching value to icon_size)

Re: icon not displaying?

Posted: Sat Apr 22, 2017 9:09 pm
by Bizobinator
Arch666Angel wrote:item/entity icons 32x32
group icons 64x64
tech icons 128x128 (or smaller if you set the matching value to icon_size)
Awesome, thanks Angel!