Animating a new pump
Posted: Tue Sep 16, 2025 11:17 am
I'm still pretty new to lua and modding Factorio in general. I'm just trying to make a new set of pipes for the game, and included a pump without stopping to consider if that was even something the engine will allow for.
I've got the pipes all working and visually how I want them. But this pump, I can NOT get it to animate or behave correctly at all. util.by_pixel does absolutely nothing on any of my sprite directions. I initially just did a quick photoshop of my plastic material over the static portions of the vanilla pump sprite, which failed to animate or behave as expected. Additionally, it duplicates and shrinks the sprite in the horizontal east/west sprites.
I then went ahead and animated my own sprite real quick hoping that would help. It did not. I tried changing to a totally new definition instead of a deepcopy and that did nothing. I tried adding nil values for fluid_animation, base_sprite, glass_picture, base_render_layer and base_sprite but that all had 0 effect. I actually struggled to find ANYTHING that adds a totally new pump asset other than IR3.
Here is an image of the issue I'm experiencing in game, and a video of how it SHOULD be animating.
Additionally I was hoping to try and use the directional fluid flow animations from the PIPES to add a fluid window to this pump, but if that's not accomplished easily I will leave it alone.


https://www.youtube.com/watch?v=cdL_W0FK7l8
I've got the pipes all working and visually how I want them. But this pump, I can NOT get it to animate or behave correctly at all. util.by_pixel does absolutely nothing on any of my sprite directions. I initially just did a quick photoshop of my plastic material over the static portions of the vanilla pump sprite, which failed to animate or behave as expected. Additionally, it duplicates and shrinks the sprite in the horizontal east/west sprites.
I then went ahead and animated my own sprite real quick hoping that would help. It did not. I tried changing to a totally new definition instead of a deepcopy and that did nothing. I tried adding nil values for fluid_animation, base_sprite, glass_picture, base_render_layer and base_sprite but that all had 0 effect. I actually struggled to find ANYTHING that adds a totally new pump asset other than IR3.
Here is an image of the issue I'm experiencing in game, and a video of how it SHOULD be animating.
Additionally I was hoping to try and use the directional fluid flow animations from the PIPES to add a fluid window to this pump, but if that's not accomplished easily I will leave it alone.


https://www.youtube.com/watch?v=cdL_W0FK7l8