If the item has the icons (ending with s) array defined, but does not specify an individual icon_size in every member, the game will crash because Robot Attrition will only copy the contents of the icons node and not the (in this case mandatory) fallback icon_size on the root level.
The crash can be reproduced by installing SE and the slightly outdated mod "creative-mod".
Suggested Fix:
The fix would be to also copy the icon_size property to the recipes root node in data-updates.lua between lines 34 and 35
existing code
table.insert(item.icons, {icon="__core__/graphics/icons/alerts/destroyed-icon.png", icon_size = 64, scale = 0.25})
table.insert(recipe_repair.icons, {icon="__core__/graphics/icons/alerts/destroyed-icon.png", icon_size = 64, scale = 0.25})
table.insert(recipe_recombine.icons, {icon="__core__/graphics/icons/alerts/destroyed-icon.png", icon_size = 64, scale = 0.25})
-->insert the following fragment here
else
Robot Attrition has an issue if the icon definition is slightly uncommon but valid (see wiki.factorio.com):
If the item has the icons (ending with
s
) array defined, but does not specify an individualicon_size
in every member, the game will crash because Robot Attrition will only copy the contents of theicons
node and not the (in this case mandatory) fallbackicon_size
on the root level.The crash can be reproduced by installing SE and the slightly outdated mod "creative-mod".
Suggested Fix: The fix would be to also copy the
icon_size
property to the recipes root node indata-updates.lua
between lines 34 and 35existing code
new additional code