[0.12.27] Modded technology icon being upscaled and clipped

Bugs that are actually features.
GotLag
Filter Inserter
Filter Inserter
Posts: 534
Joined: Sat May 03, 2014 3:32 pm
Contact:

[0.12.27] Modded technology icon being upscaled and clipped

Post by GotLag »

The Rail Tanker technology icon is a 128x128 24-bit PNG, but in-game it's being scaled up and cut off:
Image

If I specify one of the base technology icons that displays correctly.
GotLag
Filter Inserter
Filter Inserter
Posts: 534
Joined: Sat May 03, 2014 3:32 pm
Contact:

Re: [0.12.27] Modded technology icon being upscaled and clipped

Post by GotLag »

So how come the base tech definitions don't specify a size?
orzelek
Smart Inserter
Smart Inserter
Posts: 3928
Joined: Fri Apr 03, 2015 10:20 am
Contact:

Re: [0.12.27] Modded technology icon being upscaled and clipped

Post by orzelek »

If value is not present it has a default. Base game defaults to 128x128 but mods use 64x64. It makes olds mods work with upscaling and drawback is that you need to add it by hand if you want 128x128 icons in mod.
Post Reply

Return to “Not a bug”