My fluid icon isn't showing in-game [SOLVED]
Posted: Sun Oct 06, 2024 10:55 pm
Hello. I am new to modding. I am making a petrochemical mod, and I added oxygen to the game. It works normally, like any other fluid. However, the icon is simply transparent, and not the picture i put in. Please help.
SOLVED:
My file was 1024x1024, which meant that it only showed the corner of the file. I fixed it by downscaling.
data.lua file:
prototypes/liquids.lua file:
My directory for the image and the image:
In-game, the barrel or liquid has no image.
SOLVED:
My file was 1024x1024, which meant that it only showed the corner of the file. I fixed it by downscaling.
data.lua file:
Code: Select all
require ("prototypes.liquids")
Code: Select all
data:extend({
{
type = "fluid",
name = "oxygen",
subgroup = "fluid",
default_temperature = "0",
base_color = { r = 139 / 255, g = 139 / 255, b = 139 / 255 },
flow_color = { r = 139 / 255, g = 139 / 255, b = 139 / 255 },
icon = "__petrochem-revamp__/graphics/icons/fluids/molecule-oxygen.png",
icon_size = 64,
icon_mipmaps = 4,
order = "b"
},
})