icon not displaying?

Place to get help with not working mods / modding interface.
Bizobinator
Fast Inserter
Fast Inserter
Posts: 193
Joined: Fri May 06, 2016 10:35 pm
Contact:

icon not displaying?

Post 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 3451 times
User avatar
steinio
Smart Inserter
Smart Inserter
Posts: 2638
Joined: Sat Mar 12, 2016 4:19 pm
Contact:

Re: icon not displaying?

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

Transport Belt Repair Man

View unread Posts
User avatar
Arch666Angel
Smart Inserter
Smart Inserter
Posts: 1636
Joined: Sun Oct 18, 2015 11:52 am
Contact:

Re: icon not displaying?

Post by Arch666Angel »

pictures have to be the right size, else they get cropped. :D Icons = 32x32 px
Bizobinator
Fast Inserter
Fast Inserter
Posts: 193
Joined: Fri May 06, 2016 10:35 pm
Contact:

Re: icon not displaying?

Post 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?
User avatar
Arch666Angel
Smart Inserter
Smart Inserter
Posts: 1636
Joined: Sun Oct 18, 2015 11:52 am
Contact:

Re: icon not displaying?

Post 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.
Rseding91
Factorio Staff
Factorio Staff
Posts: 16018
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: icon not displaying?

Post 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.
If you want to get ahold of me I'm almost always on Discord.
User avatar
Arch666Angel
Smart Inserter
Smart Inserter
Posts: 1636
Joined: Sun Oct 18, 2015 11:52 am
Contact:

Re: icon not displaying?

Post 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
Bizobinator
Fast Inserter
Fast Inserter
Posts: 193
Joined: Fri May 06, 2016 10:35 pm
Contact:

Re: icon not displaying?

Post by Bizobinator »

So, icons themselves are 32x32 pixels. What about for group icons? Are those also 32x32?
User avatar
Arch666Angel
Smart Inserter
Smart Inserter
Posts: 1636
Joined: Sun Oct 18, 2015 11:52 am
Contact:

Re: icon not displaying?

Post by Arch666Angel »

item/entity icons 32x32
group icons 64x64
tech icons 128x128 (or smaller if you set the matching value to icon_size)
Bizobinator
Fast Inserter
Fast Inserter
Posts: 193
Joined: Fri May 06, 2016 10:35 pm
Contact:

Re: icon not displaying?

Post 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!
Post Reply

Return to “Modding help”