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

Bugs that are actually features.
Post Reply
Honktown
Smart Inserter
Smart Inserter
Posts: 1025
Joined: Thu Oct 03, 2019 7:10 am
Contact:

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

Post 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."
I have mods! I guess!
Link

Honktown
Smart Inserter
Smart Inserter
Posts: 1025
Joined: Thu Oct 03, 2019 7:10 am
Contact:

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

Post 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.
I have mods! I guess!
Link

Rseding91
Factorio Staff
Factorio Staff
Posts: 13171
Joined: Wed Jun 11, 2014 5:23 am
Contact:

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

Post 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.
If you want to get ahold of me I'm almost always on Discord.

posila
Factorio Staff
Factorio Staff
Posts: 5201
Joined: Thu Jun 11, 2015 1:35 pm
Contact:

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

Post by posila »

I fixed the wiki description.

Post Reply

Return to “Not a bug”