[2.0.49] AnimationSheet.repeat_count is not handled properly

Post your bugs and problems so we can fix them.
Hanodest
Burner Inserter
Burner Inserter
Posts: 5
Joined: Sun Aug 11, 2024 10:55 pm
Contact:

[2.0.49] AnimationSheet.repeat_count is not handled properly

Post by Hanodest »

Demonstration of the problem:
animation_sheets.mp4
(1.08 MiB) Downloaded 7 times
Two similarly defined entities. Both use main animation with frame_count=32, and an animation with frame_count=1 repeat_count=32 for the shadow.
The left one has its animation defined as animation with two layers. The right one uses sheets instead.

Expected behavior: shadow is drawn continuously for both entities.
Actual behavior: for the right entity the shadow is drawn 1 frame out of 32.

If there's only one sheet with repeat_count, then the game crashes on the entity being placed.

In attachments: the mod that defines these two entities and the save shown in the video.
Version 0.1.0 of the mod should show the visual problem when loading the save
Version 0.2.0 of the mod should crash the game when loading the save.
Attachments
factorio-current.log
(8.66 KiB) Downloaded 5 times
SheetTest_0.2.0.zip
(826 Bytes) Downloaded 5 times
SheetTest_0.1.0.zip
(882 Bytes) Downloaded 5 times
AnimationSheetsTest.zip
(878.27 KiB) Downloaded 4 times
Post Reply

Return to “Bug Reports”