Code: Select all
data.raw["utility-sprites"]["default"]["pollution-visualization"].filename = ".../filename.png"
Code: Select all
data.raw["utility-sprites"]["default"]["pollution-visualization"].filename = ".../filename.png"
They are not accessible. What you are trying to do is not possible.
https://lua-api.factorio.com/latest/Lua ... raw_sprite
SpritePath
It is specified by string. It can be either the name of the sprite prototype defined in the data or path in form "type/name". Supported types are.
"item" - for example "item/iron-plate" is the icon sprite of iron plate
"entity" - for example "entity/small-biter" is the icon sprite of the small biter
"technology"
"recipe"
"item-group"
"fluid"
"tile"
"virtual-signal"
"achievement"
"equipment"
"file" - path to an image file located inside the current scenario. This file is not preloaded so it will be slower; for frequently used sprites, it is better to define sprite prototype and use it instead.
"utility" - sprite defined in the utility-sprites object, these are the pictures used by the game internally for the UI.