Something similar:
9.627 Mods to disable:Failed to load mods: 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.: __Natural_Evolution_Buildings__/graphics/icons/behemoth-biter_32.png
Mods to be disabled:
• creative-mod
The only place where that file is referenced in Natural Evolution Buildings is this:
{
type = "unit",
name = "tame-behemoth-biter",
order = "204",
icon = "__Natural_Evolution_Buildings__/graphics/icons/behemoth-biter_32.png",
icon_size = 32,
[…]
},
It seems your mod copies entities of type "unit" and sets their icon_size to 64 in data-final-fixes.lua:
local function clone_enemy_entities_in_data_raw_and_create_recipe(raw_name)
[…]
if
(raw_name == "unit" and has_spawner_for_enemy_unit(entity)) or
(raw_name ~= "unit" and not has_item_for_enemy_entity(entity))
then
[…]
-- Create item for the entity.
table.insert(
new_data,
{
type = "item",
name = item_name,
localised_name = entity_localised_name, -- Item does not know the entity's custom localised name, so we have to also use custom localised name for it.
icon_size = 64,
icon_mipmaps = 4,
icon = entity.icon,
[…]
This doesn't work if the original icon has a smaller size. Obviously, the easiest fix would be to use 64x64 icons in NE. However, I don't have access to the sources of the graphics, and scaling up a 32x32 icon from PNG won't give nice results. So it would be nice if you could add a check for the original icon_size before changing it to something bigger.