- install https://mods.factorio.com/mod/TFMG version 2.0
- factorio --dump-icon-sprites and factorio --dump-data
- in the script output folder, the .../factorio/script-output/recipe/organic-carbon-liquefaction.png looks cropped and offset compared to in-game (see in-game screenshot vs. attached organic-carbon-liquefaction.png)
This happens reliably.
My understanding is that the --dump-icon-sprites command is supposed to fully handle flattening, offsetting, etc. layers and icons so that you just an icon that looks like what you see in-game. I see in the --dump-data output that recipe.organic-carbon-liquefaction indeed has some more icon layers that scale and shift:
Code: Select all
{
// ...
"recipe": {
// ...
"organic-carbon-liquefaction":
{
"type": "recipe",
"category": "chemistry-plant",
"subgroup": "fluid-recipes",
"name": "organic-carbon-liquefaction",
"icons":
[
{
"icon": "__base__/graphics/icons/solid-fuel.png",
"tint":
[
0.5,
1,
0.5
]
},
{
"icon": "__base__/graphics/icons/fluid/lubricant.png",
"shift":
[
-10,
0
],
"scale": 0.7
}
],
// ...
},
// ...
}
// ...
}

