Icon Badges

by Galdoc

Designed to make icons and recipes easier to distinguish for those with various forms of colorblindness.

Tweaks
7 months ago
1.1
1.43K

b Icon Badges with Sea Block Pack

11 months ago

Hi there,
we try to add support for the Sea Block pack, but there are already errors, when we simply add the icon badges mod to the mix, without adding anything yet:

The first error is:
.703 Error AtlasSystem.cpp:1567: 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.
See the log file for more information.: boblibrary/graphics/icons/cylinder/canister-bottom.png; mods: icon-badges bobplates angelsrefining angelspetrochem
Prototypes using sprite:
sulfuric-acid-barrel

I tried to find the problem and I figured out, that commenting out the line, does help
vanilla.lua:69
["sulfuric-acid-barrel"] = {badge = "SA", },

The problem is obviously, that the sulfuric-acid-barrel gets changed by bobsmod, where also the icon size changes.

followup problems occur also with:
petroleum-gas-barrel
electronic-circuit
advanced-circuit
processing-unit

I also tried to call the vanilla.lua in data-final-fixes and that solves the problems with the circuits, but not with the barrels.
So, the problem is twofold:
- a matter of loading order, where things get changes in data-updates in different mods.
- something with barrels and icon sizes.

This is the error regarding the circuits:
2.811 Error AtlasSystem.cpp:1567: The given sprite rectangle (left_top=0x0, right_bottom=128x128) is outside the actual sprite size (left_top=0x0, right_bottom=120x64).
If this is being used as an icon you may need to define the icon_size property.
See the log file for more information.: reskins-compatibility/graphics/icons/circuitprocessing/circuits/basic-electronic-board.png; mods: reskins-compatibility icon-badges CircuitProcessing
Prototypes using sprite:
cp-electronic-circuit-board

Note, in order reproduce this, you'd have to use the seablock meta pack, which contains all the dependencies and not only the seablock mod itself.
https://mods.factorio.com/mod/SeaBlockMetaPack

Best regards

New response