Unexpected behavior with UtilitySprites::fuel_icon

Looking for a mod? Have a review on a mod you'd like to share?
User avatar
Unknow0059
Fast Inserter
Fast Inserter
Posts: 101
Joined: Tue Aug 08, 2017 7:37 pm
Contact:

Unexpected behavior with UtilitySprites::fuel_icon

Post 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?
User avatar
Silari
Filter Inserter
Filter Inserter
Posts: 533
Joined: Sat Jan 27, 2018 10:04 pm
Contact:

Re: Unexpected behavior with UtilitySprites::fuel_icon

Post 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.
User avatar
Unknow0059
Fast Inserter
Fast Inserter
Posts: 101
Joined: Tue Aug 08, 2017 7:37 pm
Contact:

Re: Unexpected behavior with UtilitySprites::fuel_icon

Post 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.
Post Reply

Return to “Questions, reviews and ratings”