Page 1 of 1

Unexpected behavior with UtilitySprites::fuel_icon

Posted: Wed Nov 20, 2024 7:15 am
by Unknow0059
Hi. I'm making a mod to replace some sprites, and conducting simple tests to that end.

I've found that I can replace most of the sprites from UtilitySprites, except for fuel_icon.

Code: Select all

data.raw['utility-sprites']['default']["fuel_icon"].filename = "__your-mod-folder__/your-subfolder/your-custom-64x64-icon.png"
if someone has that single line inside ".\Factorio\mods\your-mod-folder\data.lua"
and have a "\info.json"
then they can test replacing the icon.

I've verified paths are correct, and again, have had this work for all other icons.
I have not found anything else besides utilitysprites that relates to this.
My test mod is the only one I have enabled.
¿What explains this behavior?

Re: Unexpected behavior with UtilitySprites::fuel_icon

Posted: Thu Nov 21, 2024 4:25 am
by Silari
You're probably being bitten with the same problem I was with No Power Icons - the fuel-icon utility sprite doesn't seem to be used by anything anymore. You need to replace the ["burner-usage"]["fuel"]["icon"] instead.

There are separate icons for items which burn fuel, food, or nutrients.

Re: Unexpected behavior with UtilitySprites::fuel_icon

Posted: Thu Nov 21, 2024 5:01 am
by Unknow0059
Silari wrote: Thu Nov 21, 2024 4:25 am You're probably being bitten with the same problem I was with No Power Icons - the fuel-icon utility sprite doesn't seem to be used by anything anymore. You need to replace the ["burner-usage"]["fuel"]["icon"] instead.

There are separate icons for items which burn fuel, food, or nutrients.
Thanks. I can proceed testing now.

Your mod is interesting. I've made a series of alternate icons and am making a mod as a way to distribute them while supporting variant choices via mod-settings.

Curious similarity.