Page 1 of 1

[0.18.24] Idle animations on assembling-machine don't work?

Posted: Wed May 20, 2020 1:32 am
by Honktown
in data-final-fixes:

Code: Select all

local asm = data.raw["assembling-machine"]["assembling-machine-1"]
asm.idle_animation = table.deepcopy(asm.animation)
asm.always_draw_idle_animation = true
Used that code as a test for why an idle animation wasn't working in a mod. It looks like something is broken about it, because as far as the wiki goes Prototype/AssemblingMachine it should work. No error in the log, and no "Value ROOT : ... was not used."

Re: [0.18.24] Idle animations on assembling-machine don't work?

Posted: Wed May 20, 2020 2:19 am
by Honktown
Tried more things. One example:

Code: Select all

local asm = data.raw["assembling-machine"]["assembling-machine-1"]
asm.idle_animation = table.deepcopy(asm.animation)
asm.idle_animation.layers[1].animation_speed = 1
asm.always_draw_idle_animation = true
asm.match_animation_speed_to_activity = false
asm.animation = nil
Without always_draw_idle_animation, the assembler goes invisible while crafting, and then when it stops, resets to the first frame of the idle animation. Tried match_animation_speed_to_activity = true, didn't change that the machine wasn't animating when idle.

Re: [0.18.24] Idle animations on assembling-machine don't work?

Posted: Wed May 20, 2020 4:40 am
by Rseding91
From what I see in crafting machines that class is strictly used when the machine is working. It doesn't animate when idle. It *draws* the idle sprites when idle but it doesn't animate them when idle.

From what I understand idle animation is just "the sprite that draws when it isn't working" and then there's animation which is "the sprite that draws when working".

It never animates when not working.

Re: [0.18.24] Idle animations on assembling-machine don't work?

Posted: Wed May 20, 2020 4:57 am
by posila
I fixed the wiki description.