howto fix "Error AtlasSystem.cpp:1499"

Place to get help with not working mods / modding interface.
Post Reply
ixu
Fast Inserter
Fast Inserter
Posts: 105
Joined: Sun May 29, 2016 6:18 pm
Contact:

howto fix "Error AtlasSystem.cpp:1499"

Post by ixu »

A Mod gives the following error message:

Code: Select all

Error AtlasSystem.cpp:1499: The given sprite rectangle (left_top=0x0, right_bottom=64x64) is outside the actual sprite size (left_top=0x0, right_bottom=32x32).
If this is being used as an icon you may need to define the icon_size property.: __hardCrafting__/graphics/icons/big-processing-machine.png; mods: hardCrafting
How can I fix this?
Attachments
factorio-current.log
(15.09 KiB) Downloaded 33 times
Mods: ingteb, ixuClock, ixuAutoSave, NoCheating, hardCrafting (Maintainer) and more
Desperately tried to implement redo :)

User avatar
Optera
Smart Inserter
Smart Inserter
Posts: 2916
Joined: Sat Jun 11, 2016 6:41 am
Contact:

Re: howto fix "Error AtlasSystem.cpp:1499"

Post by Optera »

That's what you get when you deepcopy a prototype, change icon and don't bother setting icon_size.
It only worked in 0.17 since icon_size was 32 for all base icons.
0.18 changed all base icons to a mipmap of 64, 32, 16 and 8.

To prevent such errors always set icon_size to match the file referenced in icon.
With 0.18 also set icon_mipmaps to match or it'll spam warnings during loading.

Post Reply

Return to “Modding help”