[Genhis][2.0.49] AnimationSheet.repeat_count is not handled properly

This subforum contains all the issues which we already resolved.
Hanodest
Burner Inserter
Burner Inserter
Posts: 5
Joined: Sun Aug 11, 2024 10:55 pm
Contact:

[Genhis][2.0.49] AnimationSheet.repeat_count is not handled properly

Post by Hanodest »

Demonstration of the problem:
animation_sheets.mp4
(1.08 MiB) Downloaded 62 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 54 times
SheetTest_0.2.0.zip
(826 Bytes) Downloaded 50 times
SheetTest_0.1.0.zip
(882 Bytes) Downloaded 50 times
AnimationSheetsTest.zip
(878.27 KiB) Downloaded 51 times
Genhis
Factorio Staff
Factorio Staff
Posts: 848
Joined: Wed Dec 24, 2014 8:19 am
Contact:

Re: [Genhis][2.0.49] AnimationSheet.repeat_count is not handled properly

Post by Genhis »

Thanks for the report, this should be fixed for 2.0.53.
Post Reply

Return to “Resolved Problems and Bugs”