Bulk Rail Loader

by therax

Bulk train loader/unloader with buffer.

Content
2 years ago
0.16 - 1.1
58.5K
Logistics

b layering of the railloader

3 years ago
(updated 3 years ago)

https://media.discordapp.net/attachments/306402592265732098/800027842045935616/unknown.png?width=1218&height=763

Bug: Poles are not shown above the rail-loader.
because of layering option should be; 'object'
but if a train goes on the object it wont get hidden, but the train gets shown.
This might be a known issue.

This is a matter of its not an object because a train goes under it. (but would show the pole correctly)
and also not higher-object-under because the pole gets hidden.

I was trying to fix this bug but not sure which layer the rail-loader should be rendered.

3 years ago

The train is supposed to drive under the loader so ore etc. can be dropped in from above.

3 years ago

Yeah, but the layering is not allowing for a electric pole standing in front of it. I understand the issue but I think there is no solution for it yet.

3 years ago

I agree. The Bulk Rail Loader does seem to draw over everything else, making it a bit unsightly. Surely there's a layer between trains and powerlines.

3 years ago
(updated 3 years ago)

There is not. Here are all the layers: https://wiki.factorio.com/Types/RenderLayer
Trains are in layer object. Railloaders are in layer higher-object-above, the very next layer up.
Note that wires are not obscured, just power poles placed in front of the loader.

3 years ago

Speaking out of my ass here but I'm a bit confused - what about the "higher-object-under" layer? Mind you, I assume you've already looked and it's not THAT much of an issue, but I'm mostly asking out of curiosity.

I'll be using the mod either way :) It just looks a bit odd, between the layering and the lack of a wiring graphic (that yellow thing that sticks to objects when they're wired). Thanks for making it either way. It's an absolute lifesaver.

3 years ago
(updated 3 years ago)

Sorry, that was a typo on my part. It is in fact higher-object-under. Here's the relevant code:
https://github.com/mspielberg/factorio-railloader/blob/c8153c588c9abb98f0a2ce0fc92821a64ea408e9/prototypes/entity/railloader.lua#L30-L50

It doesn't actually matter since poles are on the object layer together with trains, and even if they weren't, if the railloader were on the layer below the poles then poles behind the railloader would show through.

I might try again to give it an actual circuit wire connector (that yellow block thing), but it didn't look particularly good when I added it before.

3 years ago

Fair enough, and thank you for the response :) Yeah, I see what you mean. Guess Factorio isn't well-suited for tall structures. Eh, we make do with what we have. I still like the mod.

Honestly, I'd personally be happy with the yellow block thing even if it doesn't fit particularly well. Still better than wires connecting to nothing.

New response