[2.1.8] LogisticContainerPrototype.robot_door.animation has type Animation instead of Animation4Way

Place to ask discuss and request the modding support of Factorio. Don't request mods here.
Atria
Long Handed Inserter
Long Handed Inserter
Posts: 69
Joined: Sat Jul 09, 2016 10:25 am
Contact:

[2.1.8] LogisticContainerPrototype.robot_door.animation has type Animation instead of Animation4Way

Post by Atria »

...therefor it is not possible to specify different animations for each direction of rotatable logistic container.
User avatar
EvilPLa
Long Handed Inserter
Long Handed Inserter
Posts: 89
Joined: Sat Nov 14, 2020 7:26 am
Contact:

Make robot_door animation directional

Post by EvilPLa »

Make RobotDoorSpecification.animation as a Animation4Way

With Container and ProxyContainer rotatable, the robot door for logistic container has always to be in the center. For a rectangular container it would be convinient to be able to reuse a animation and just shift it in place. Currently rotating a rectangular container results in something like that on the left
09-29-2026, 22-02-36.png
09-29-2026, 22-02-36.png (86.75 KiB) Viewed 236 times
https://lua-api.factorio.com/latest/typ ... n4Way.html

Edit: removed ProxyContainer as there is no logistic version
I haven't lost my mind, it's backed up on tape somewhere.
My mods
User avatar
boskid
Factorio Staff
Factorio Staff
Posts: 4947
Joined: Thu Dec 14, 2017 6:56 pm
Contact:

Re: Make robot_door animation directional

Post by boskid »

Also requested by 134369

[Moderator note: Merged]
User avatar
boskid
Factorio Staff
Factorio Staff
Posts: 4947
Joined: Thu Dec 14, 2017 6:56 pm
Contact:

Re: [2.1.8] LogisticContainerPrototype.robot_door.animation has type Animation instead of Animation4Way

Post by boskid »

Its not just making robot_door animation be Animation4Way, it would also require specifying location_offset for each direction which makes this slightly more complicated. Maybe having independent array of extra offsets that would shift the sprite and location_offset at the same time was easier to implement without making this more complicated.
Atria
Long Handed Inserter
Long Handed Inserter
Posts: 69
Joined: Sat Jul 09, 2016 10:25 am
Contact:

Re: [2.1.8] LogisticContainerPrototype.robot_door.animation has type Animation instead of Animation4Way

Post by Atria »

Oh, I didn't even notice the CargoHatchDefinition.offset...I would just use the SpriteParameters.shift for each orientation of the animation.

Having array of offsets while keeping one Animation would work in my case.

I'd just be worried that someone else asks for actually different animations for each orientation.
User avatar
EvilPLa
Long Handed Inserter
Long Handed Inserter
Posts: 89
Joined: Sat Nov 14, 2020 7:26 am
Contact:

Re: [2.1.8] LogisticContainerPrototype.robot_door.animation has type Animation instead of Animation4Way

Post by EvilPLa »

boskid wrote: Mon Oct 05, 2026 12:50 pm Its not just making robot_door animation be Animation4Way, it would also require specifying location_offset for each direction which makes this slightly more complicated. Maybe having independent array of extra offsets that would shift the sprite and location_offset at the same time was easier to implement without making this more complicated.
Yeah that would work for me.
I haven't lost my mind, it's backed up on tape somewhere.
My mods
Post Reply

Return to “Modding interface requests”