[boskid][2.0.62] generator: fluid_box.pipe_picture not recognized

This subforum contains all the issues which we already resolved.
User avatar
snouz
Long Handed Inserter
Long Handed Inserter
Posts: 58
Joined: Sun Jan 03, 2021 6:01 pm
Contact:

[boskid][2.0.62] generator: fluid_box.pipe_picture not recognized

Post by snouz »

Hello, I noticed that fluid_box.pipe_picture isn't rendered on generator prototypes.

I tried using assembling-machine-3's code: doesn't render (only the pipe covers)

I tried putting my own pictures as cover: it renders correctly

I tried making my pics transparent to be sure it's not rendered under

I tried adding that code in data-final-fixes

Code: Select all

fluid_box =
    {
      volume = 200,
      pipe_picture = {
        north =
        {
          filename = entity .. "timeshift_energy_roots/timeshift_energy_roots-pipe-N.png",
          priority = "extra-high",
          width = 128,
          height = 128,
          shift = util.by_pixel(0, 32),
          scale = 0.5
        },
        east =
        {
          filename = entity .. "timeshift_energy_roots/timeshift_energy_roots-pipe-E.png",
          priority = "extra-high",
          width = 128,
          height = 128,
          shift = util.by_pixel(-32, 0),
          scale = 0.5
        },
        south =
        {
          filename = entity .. "timeshift_energy_roots/timeshift_energy_roots-pipe-S.png",
          priority = "extra-high",
          width = 128,
          height = 128,
          shift = util.by_pixel(0, -32),
          scale = 0.5
        },
        west =
        {
          filename = entity .. "timeshift_energy_roots/timeshift_energy_roots-pipe-W.png",
          priority = "extra-high",
          width = 128,
          height = 128,
          shift = util.by_pixel(32, 0),
          scale = 0.5
        }
      },
      pipe_connections =
      {
        { flow_direction = "input", direction = defines.direction.north, position = {0, -1} },
        { flow_direction = "input", direction = defines.direction.east, position = {1, 0} },
        { flow_direction = "input", direction = defines.direction.south, position = {0, 1} },
        { flow_direction = "input", direction = defines.direction.west, position = {-1, 0} },
      },
      production_type = "input",
      filter = "timeshift_nutrients_slurry",
      minimum_temperature = 0,
    },
On a side note, my goal would be to have the pipe picture display ONLY when the pipe is connected, but I can't find a boolean in fluidbox to do that (but that might be more of a feature request)
Attachments
2025-08-03 01_50_53-C__Users_snouz_AppData_Roaming_Factorio_mods_timeshift_planet_prototypes_planet_.png
2025-08-03 01_50_53-C__Users_snouz_AppData_Roaming_Factorio_mods_timeshift_planet_prototypes_planet_.png (4.36 KiB) Viewed 426 times
2025-08-03 02_03_47-Discord Overlay.png
2025-08-03 02_03_47-Discord Overlay.png (384.17 KiB) Viewed 426 times
Planet Moshine, GUI Unifier + 17 mods, contributed graphically and otherwise to 70+ mods
User avatar
boskid
Factorio Staff
Factorio Staff
Posts: 4081
Joined: Thu Dec 14, 2017 6:56 pm
Contact:

Re: [boskid][2.0.62] generator: fluid_box.pipe_picture not recognized

Post by boskid »

Thanks for the report. This is now fixed for 2.0.65.

It looks like there were quite a lot of entities that did fluid box drawing in a partial way of only drawing pipe covers but not drawing pipe pictures. Those entities were: Boiler, FluidTurret, FusionGenerator, FusionReactor, Generator, MiningDrill, OffshorePump, PipeToGround, Pump, Thruster, Valve. All of those will now accept pipe_picture in a fluid box and will draw related sprites.

This change may become a visually breaking change for some mods, even base mod and space age were affected because electric mining drill (base) and big mining drill (space age) had pipe pictures set based on assembling machine 2, and with the changes they started rendering so i had to remove pipe pictures from those entities. If entities from other mods would show incorrectly with pipe pictures that were previously not drawing, they will have to be adjusted to stop providing pipe pictures if they did not want to.
Post Reply

Return to “Resolved Problems and Bugs”