[0.17.3] Crash using 1x1 empty.png
Posted: Fri Mar 01, 2019 8:41 pm
I stumbled into the weirdest hard to reproduce error.
For Deep Mine I'm generating a module to add mining productivity to assembler type mines:
This works fine until I load Dectorio alongside it, suddenly Factorio throws an error:
However this is not Dectorio messing with my prototype, but the Atlas system getting confused as you can see in the serpent.block made in the attached logfile the icon_size is still set to 1.
Setting the icon to any 32x32 icon, even leaving the size at 1 it loads without problem.
For Deep Mine I'm generating a module to add mining productivity to assembler type mines:
Code: Select all
{
type = "module",
name = "deep-mine-prod-module",
icon = "__core__/graphics/empty.png",
icon_size = 1,
flags = { "hidden" },
subgroup = "module",
category = "productivity",
tier = 0,
stack_size = 1,
effect = { productivity = {bonus = 0.02}} -- productivity step size is 2% we use as many as actual force mining-bonus requires
},
Code: Select all
AtlasSystem.cpp:1204: The given sprite rectangle (left_top=0x0, right_bottom=32x32) is outside the actual sprite size (left_top=0x0, right_bottom=1x1).
Sprite name: __core__/graphics/empty.png.: __core__/graphics/empty.png
Setting the icon to any 32x32 icon, even leaving the size at 1 it loads without problem.