Diffence between WorkingAnimation and Animation

Place to get help with not working mods / modding interface.
Post Reply
Slasherbane
Burner Inserter
Burner Inserter
Posts: 19
Joined: Thu Jan 04, 2018 1:19 pm
Contact:

Diffence between WorkingAnimation and Animation

Post by Slasherbane »

Hi all ^^

I try today to create a mod to change the default lab animation with a new one , but i don't really understand something that factorio the error startup say about "Different frame count". I write an animation array with specific animation count but it still say that error.

I see on the API that assembling machine have WorkingAnimation and lab only Animation or Animation array.

What differents they are please ?

Cyberpro_
Burner Inserter
Burner Inserter
Posts: 7
Joined: Sun Aug 14, 2022 1:25 pm
Contact:

Re: Diffence between WorkingAnimation and Animation

Post by Cyberpro_ »

Based on some research of the prototype documentation form the official wiki (wiki.factorio.com/Prototype/Lab and https://wiki.factorio.com/Prototype/AssemblingMachine), the assembling machine has a animation for working (when it is crafting something) and idle animation witch is identical to the working one exept it is paused on the frame the machine stops crafting. the lab has a on animation played when researtching and an off one for when idle.

In diferent words the WorkingAnimation is paused when the machine is idle while the Animationarray will switch betewn an on and off animation (based on how i understand the documentation)

Post Reply

Return to “Modding help”