Page 1 of 1

Treat loader remnants the same as underground belt remnants?

Posted: Wed Feb 05, 2020 8:20 am
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

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

Posted: Wed Feb 05, 2020 8:51 am
by posila
Yep, makes sense. Implemented for 0.18.4

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

Posted: Wed Feb 05, 2020 9:04 am
by kirazy
Much appreciated. :)