Layers of perspective ???

Place to get help with not working mods / modding interface.
User avatar
Ace-Athor
Manual Inserter
Manual Inserter
Posts: 4
Joined: Mon Dec 19, 2016 3:21 pm
Contact:

Layers of perspective ???

Post by Ace-Athor »

Hi... I'm a beginner, my question is probably stupid :? ... I modified a sprite of a mod (factorissimo) and now when I connect a pipe down the factory, it passes over the roof.
Image
I've been searching for a long time on the forum, but I'm not an English speaker, so I have difficulties to understand the subtleties, and I don't know the name for this. (Entity over another)
User avatar
darkfrei
Smart Inserter
Smart Inserter
Posts: 2905
Joined: Thu Nov 20, 2014 11:11 pm
Contact:

Re: Layers of perspective ???

Post by darkfrei »

See roboport config, it have some patch for overlapping another textures.
User avatar
darkfrei
Smart Inserter
Smart Inserter
Posts: 2905
Joined: Thu Nov 20, 2014 11:11 pm
Contact:

Re: Layers of perspective ???

Post by darkfrei »

In data\base\prototypes\entity\assemblerpipes.lua you can find how it was added to the standard assemblers:

Code: Select all

function assembler2pipepictures()
  return
  {
    north =
    {
      filename = "__base__/graphics/entity/assembling-machine-2/pipe-north.png",
      priority = "extra-high",
      width = 41,
      height = 40,
      shift = {0.09375, 0.4375}
    },
    east =
    {
      filename = "__base__/graphics/entity/assembling-machine-2/pipe-east.png",
      priority = "extra-high",
      width = 41,
      height = 40,
      shift = {-0.71875, 0}
    },
    south =
    {
      filename = "__base__/graphics/entity/assembling-machine-2/pipe-south.png",
      priority = "extra-high",
      width = 41,
      height = 40,
      shift = {0.0625, -1}
    },
    west =
    {
      filename = "__base__/graphics/entity/assembling-machine-2/pipe-west.png",
      priority = "extra-high",
      width = 41,
      height = 40,
      shift = {0.78125, 0.03125}
    }
  }
end
User avatar
Ace-Athor
Manual Inserter
Manual Inserter
Posts: 4
Joined: Mon Dec 19, 2016 3:21 pm
Contact:

Re: Layers of perspective ???

Post by Ace-Athor »

Thank you for your reply...
I tried adding a patch (base_patch) to hide the entry of pipes unsuccessfully ... I keep the same size as the original picture.
Maybe I should reduce the size of my patch and ( shift ) it after. Or apply a ( render_layer ) or a ( final_render_layer ).

We should be able to shift the render layer to be easier...
User avatar
aubergine18
Smart Inserter
Smart Inserter
Posts: 1264
Joined: Fri Jul 22, 2016 8:51 pm
Contact:

Re: Layers of perspective ???

Post by aubergine18 »

Did you ever find solution to your problem? I have similar issue when using underground pipes for wooden bridges - I was unable to get the pipe end to be on the bottom (ground) layer.
Better forum search for modders: Enclose your search term in quotes, eg. "font_color" or "custom-input" - it prevents the forum search from splitting on hypens and underscores, resulting in much more accurate results.
User avatar
Arch666Angel
Smart Inserter
Smart Inserter
Posts: 1636
Joined: Sun Oct 18, 2015 11:52 am
Contact:

Re: Layers of perspective ???

Post by Arch666Angel »

You could try to make the frames higher, e.g. add more empty space to the top and bottom of the picture. The renderer seems to put other things in front/top if they are in the lower half of another sprite.
User avatar
Ace-Athor
Manual Inserter
Manual Inserter
Posts: 4
Joined: Mon Dec 19, 2016 3:21 pm
Contact:

Re: Layers of perspective ???

Post by Ace-Athor »

Sorry for the late time reply...
Ha yes thank... I know what you says, because the layer switch at the middle of the sprite, if I make more empty space by adding just one pixel at the bottom the midle of the sprite (so the layer) will be down too. I will try this...
Post Reply

Return to “Modding help”