[DiscordArchive] I'm currently trying to port an anim file from a model with skel file.
[DiscordArchive] I'm currently trying to port an anim file from a model with skel file.
Archived author: Morfium • Posted: 2025-11-01T16:21:55.776000+00:00
Original source
I'm currently trying to port an anim file from a model with skel file.
According to https://wowdev.wiki/M2#.anim_files this is chunked. (I checked, it is)
How would I need to unchunk this?
It is with the AFM2 header and inside the AFSA/AFSB.
What is the proper structure wotlk expects, and is there a 010 template for anim files?
Archived author: Supora • Posted: 2025-11-01T16:36:31.433000+00:00
Original source
In fact it's not necessary
Archived author: Supora • Posted: 2025-11-01T16:37:38.019000+00:00
Original source
Instead you can find where data starts for each of those blocks and adjust the offsets in m2 file
Archived author: Morfium • Posted: 2025-11-01T16:39:18.497000+00:00
Original source
Hm I'm not really that familiar with animations. Just started looking into it in detail tbh. Where are the offets for animation data lookups in the m2?
Archived author: Supora • Posted: 2025-11-01T16:39:47.486000+00:00
Original source
Wotlk expects a direct offset into an anim file. Which would be in fact the same as it is set originally + chunk position + 8 (cause chunk heqder is 8 bytes)
Archived author: Supora • Posted: 2025-11-01T16:41:04.650000+00:00
Original source
In different blocks ofc. In bones, events and attachments I guess
Archived author: Morfium • Posted: 2025-11-01T16:41:44.412000+00:00
Original source
So... wouldn't it be easiest to cut those parts out of the anim then? Otherwise I would have to update tons of offsets, no?
Archived author: Supora • Posted: 2025-11-01T16:42:21.967000+00:00
Original source
Not sure about attachments having it's own animation data since it's parented to bones.
Archived author: Supora • Posted: 2025-11-01T16:42:42.416000+00:00
Original source
You'd have to do it anyway.
Archived author: Supora • Posted: 2025-11-01T16:43:12.428000+00:00
Original source
If anim file have more than just afm2 chunk