Treat loader remnants the same as underground belt remnants?

Post Reply
User avatar
kirazy
Filter Inserter
Filter Inserter
Posts: 416
Joined: Tue Mar 06, 2018 12:18 am
Contact:

Treat loader remnants the same as underground belt remnants?

Post by kirazy »

In trying to create remnants for my loaders mod, I ran across the following issue:
Image

I do have 8 directions specified, one for each input/output as in the underground-belt remnants. In code, I had been re-using the corpse specification for underground-belts, as they are the most similar entity, but ran into problems.

In my investigation, I found this comment by posila, emphasis mine:
posila wrote:
Wed Dec 04, 2019 11:27 am
You defined your corpse animation as 1 direction with 4 variations, so it's picking randomly one of the variations.

Note: pipes, walls, heat pipes, and underground belts have special override for orientation based on their connections when they were destroyed (or if it was input or output in case of underground belt), corpses for everything else should inherit direction from the entity that created it.
Is it possible to have loaders have the same treatment as underground belts?

Edit: Though if that's not the issue, here's the remnants image I'm using at the moment: https://i.imgur.com/LHHA51u.png

What confuses me is it skips over all the horizontal orientation frames, so it's using every other frame. Why would it do that? :C

posila
Factorio Staff
Factorio Staff
Posts: 5202
Joined: Thu Jun 11, 2015 1:35 pm
Contact:

Re: Treat loader remnants the same as underground belt remnants?

Post by posila »

Yep, makes sense. Implemented for 0.18.4


Post Reply

Return to “Implemented mod requests”