I made an in-ground lamp with the collision_mask = { "item-layer", "object-layer", "water-tile" } so that players and vehicles don't collide with it. Unfortunately, it's giving me this graphical bug:
I searched around and found out it was a render layer issue but setting it to something lower doesn't do anything so I'm guessing lamps have the render_layer hardcoded. Is there an easy way around this?
Workaround for a fixed render layer object?
- simonsays476
- Burner Inserter
- Posts: 6
- Joined: Tue Mar 22, 2016 4:45 pm
- Contact:
Re: Workaround for a fixed render layer object?
I think that the layers={{shift= {x,y}} changes the layer. If Y is 0, it is on the ground, and if it is positive, it should be under the ground.
Re: Workaround for a fixed render layer object?
Nope, that's shift on west-east and north-south directions.bloc97 wrote:I think that the layers={{shift= {x,y}} changes the layer. If Y is 0, it is on the ground, and if it is positive, it should be under the ground.
@op
There are such fields as render_layer and priority in drawing related parts of the prototype definitions though I know nothing about their works. You might be the first to figure out, how to use those.
I do mods. Modding wiki is friend, it teaches how to mod. Api docs is friend too...
I also update mods, some of them even work.
Recently I did a mod tutorial.
I also update mods, some of them even work.
Recently I did a mod tutorial.
-
- Filter Inserter
- Posts: 478
- Joined: Sat Aug 23, 2014 11:43 pm
- Contact:
Re: Workaround for a fixed render layer object?
Add this to the prototype.
You can find the different render layers here
Code: Select all
render_layer = "lower-object"
Waste of bytes : P
Re: Workaround for a fixed render layer object?
I've definitively noticed a change of layering of the sprites when I changed the shift values. When I made the Y shift less than the player, the player walks over the object. When the Y value is very high, it overshadows trees, assemblers, etc.Adil wrote: Nope, that's shift on west-east and north-south directions. [...]
Edit: There's something going around inside the game engine that automatically assigns layers based on render_layer and shift...
Re: Workaround for a fixed render layer object?
Have you found a solution? I have a similar problem for a building. viewtopic.php?f=25&t=38974