[2.0.76] StatelessVisualisation unit animation speed

ruhnva
Manual Inserter
Manual Inserter
Posts: 2
Joined: Tue Mar 25, 2025 8:40 am
Contact:

[2.0.76] StatelessVisualisation unit animation speed

Post by ruhnva »

StatelessVisualisation placed on a unit will follow animation speed rules when not moving. During movement the animation will process at high speeds regardless of any values I changed.
  • offset/speed/acceleration/movement_slowdown_factor had seemingly no effect
  • scales/durations had no effect
  • animation_speed changes the speed when stationary, no effect when moving
  • wind/base_scale/count/period had no effect
  • 2, 8, and 27 frame_count animations were used. All single line_length
I know these animations are typically used on stationary entities and scale based on output/activity. I'm assuming either I am missing something, in which case I apologize for wasting time, or a unit physically moving is the "output" and it heavily alters the animations speed. I was using this to create an animated effect below the unit. I can also provide footage when I'm next available if needed, or the code used.
User avatar
boskid
Factorio Staff
Factorio Staff
Posts: 4429
Joined: Thu Dec 14, 2017 6:56 pm
Contact:

Re: [2.0.76] StatelessVisualisation unit animation speed

Post by boskid »

Stateless visualisations are using a hash based on entity's position to randomize appearence of entities at different positions. This however means that stateless visualisations are pretty much useless for moving entities since by changing position they will get different animation seed causing the animations to jump rapidly.

-- edit:

I think this could be salvaged by slightly changing stateless visualisation behavior for entities where a unit number is available: in that case the unit number could be used as a seed for the animation, which would make the animations stable for moving entities.
User avatar
boskid
Factorio Staff
Factorio Staff
Posts: 4429
Joined: Thu Dec 14, 2017 6:56 pm
Contact:

Re: [2.0.76] StatelessVisualisation unit animation speed

Post by boskid »

Issue is now fixed for 2.1: entities with unit number will use seed based on unit number, not based on position.
ruhnva
Manual Inserter
Manual Inserter
Posts: 2
Joined: Tue Mar 25, 2025 8:40 am
Contact:

Re: [2.0.76] StatelessVisualisation unit animation speed

Post by ruhnva »

boskid wrote: Sat Mar 21, 2026 6:10 am Issue is now fixed for 2.1: entities with unit number will use seed based on unit number, not based on position.
That's amazing to hear! Thanks for the quick reply and for fixing it for my use case, I appreciate it!
Post Reply

Return to “Fixed for 2.1”