So I have this hybrid entity, which is stacking a loader and an inserter on top of each other.
Generally it seems to work ok, except when it comes to wire connections. And at this point, I ran out of ideas.
This is what I see in the game:
On the right, this is how it is visible in the game. In the middle, this is only the loader (the wire connection is on the inserter so when the inserter is removed, the wire goes away as well). On the left is the inserter only.
When I disable the 'structure' in the loader (so that it only uses the belt graphics), this is what I see:
On the left is again only the inserter with the wire connection, in the middle only the loader (which only shows the belt graphics). On the right is how the entity is visible. Note that the loader seems to be drawn "over" the inserter. Where the structure from the loader is missing, the inserter is vislble, but the belt is "above" the inserter.
My assumption was that the entities would be "stacked" by render layer:
- lowest is "transport belt" (if I look at https://lua-api.factorio.com/latest/typ ... Layer.html and assume the order here is "bottom to top"), then "transport-belt" comes first.
- then the structure. The loader prototype offers "structure_render_layer" to control this
- the inserter, which should be rendered at "object" layer.
- finally the circuit connectors
but this is where it seems to go wrong. I have not managed to 'stack' the inserter and the structure correctly and the inserter gets drawn "under" the belt, which should not happen as 'transport-belt' is below 'object'.
Also, the mask that the loader applies to overlay the belt of anything "below" seems to hardcoded in the game / not visible to the modding API.
and to make this even more interesting/funny is that when I enable shadows for the circuit connectors, those get rendered correctly, but not the connectors themselves:
At this point I have run out of ideas on how to solve this. Grateful for any tips.
[2.0.77] stacking entities and rendering
Place to get help with not working mods / modding interface.
Jump to
- General
- ↳ Releases
- ↳ News
- ↳ General discussion
- ↳ Multiplayer
- ↳ Find Servers / Tools / Guides
- ↳ Show your Creations
- ↳ Videos
- ↳ Combinator Creations
- ↳ Mechanical Throughput Magic (circuit-free)
- ↳ Railway Setups
- ↳ Energy Production
- ↳ Medium/Big/Gigantic Sized Structures
- ↳ Fan Art
- ↳ Gameplay Help
- ↳ Spread the Word
- ↳ Off topic
- ↳ This Forum
- ↳ Celebration Party
- Support
- ↳ Gameplay Help
- ↳ Discover Factorio Wiki
- ↳ Discover Others Creations
- ↳ Discover Mods
- ↳ Discover Tools Around Factorio
- ↳ Technical Help
- ↳ Bug Reports
- ↳ Resolved for the next release
- ↳ Assigned
- ↳ Not a bug
- ↳ Pending
- ↳ 1 / 0 magic
- ↳ Duplicates
- ↳ Minor issues
- ↳ Desyncs with mods
- ↳ Won't fix.
- ↳ Resolved Problems and Bugs
- Factorio Direction
- ↳ Ideas and Suggestions
- ↳ Outdated/Not implemented
- ↳ Frequently Suggested / Link Collections
- ↳ Implemented Suggestions
- ↳ Development Proposals
- ↳ Balancing
- Contributions
- ↳ Mods
- ↳ Download mods
- ↳ Mod portal Discussion
- ↳ Mods
- ↳ Mod Packs / Libs / Special Interest
- ↳ 5dim's mod
- ↳ Angels Mods
- ↳ Atomic Power
- ↳ Bob's mods
- ↳ DyWorld
- ↳ F.A.R.L
- ↳ Fentus Challenge & Tool Mods
- ↳ Logistic Train Network
- ↳ MoMods
- ↳ Reika's Mods
- ↳ Resource Spawner Overhaul
- ↳ Yuoki Industries
- ↳ PyMods
- ↳ Questions, reviews and ratings
- ↳ Modding Discussions
- ↳ Modding discussion
- ↳ Modding help
- ↳ Ideas and Requests For Mods
- ↳ Modding interface requests
- ↳ Implemented mod requests
- ↳ Already exists
- ↳ Won't implement
- ↳ Documentation Improvement Requests
- ↳ Resolved Requests
- ↳ Development tools
- ↳ Tools
- ↳ Mod and installation managers
- ↳ Cheatsheets / Calculators / Viewers
- ↳ Development tools
- ↳ Special interest mods and libraries
- ↳ Modding Development
- ↳ Multiplayer / Dedicated Server
- ↳ Multiplayer Board
- ↳ Archive
- ↳ Maps and Scenarios
- ↳ Translations
- ↳ Texture Packs
- ↳ Fan Art
- ↳ Wiki Talk
- ↳ To be sorted
- ↳ Campaign / Scenario suggestions
