fuel_icon graphics can't be replaced

Place to get help with not working mods / modding interface.
Zaflis
Filter Inserter
Filter Inserter
Posts: 526
Joined: Sun Apr 24, 2016 12:51 am
Contact:

fuel_icon graphics can't be replaced

Post by Zaflis »

I have a topic here with more details:
https://mods.factorio.com/mod/SmoothWar ... 0437e08a48
data.raw["utility-sprites"]["default"].fuel_icon = {
filename = "__SmoothWarnings__/graphics/fuel-icon-red.png",
priority = "extra-high",
width = 64,
height = 64,
flags = {"icon"},
scale = 1.4
}
It worked before but broke in 2.0, other icons were fine. This is the only icon that isn't replacing, and i recently added even frozen and thunderstorm ones.
fuel-icon-red.png
fuel-icon-red.png (5.66 KiB) Viewed 173 times
User avatar
Silari
Filter Inserter
Filter Inserter
Posts: 567
Joined: Sat Jan 27, 2018 10:04 pm
Contact:

Re: fuel_icon graphics can't be replaced

Post by Silari »

Entities with a burner energy source specify their out of fuel icon in the burner energy source. You need to override THAT, instead of the one in the utility-sprites. I ran into the issue with my mod No Power Icons.

https://lua-api.factorio.com/latest/pro ... .html#icon

The three defined in Factorio are data.raw["burner-usage"]["fuel"]["icon"] for fuel burners (like the boiler), and data.raw["burner-usage"]["food"]["icon"] for food burners (Space Age only), and data.raw["burner-usage"]["nutrients"]["icon"] for nutrient burners (Space Age only).
Post Reply

Return to “Modding help”