Difference between revisions of "MOTN"

From Wulinshu
Jump to navigation Jump to search
Line 11: Line 11:
! Position !! Length !! Type !! Description  
! Position !! Length !! Type !! Description  
|-
|-
| 0x00 || 0x04 || uint || Motion data table offset
| 0x00 || 0x04 || uint || Sequence data table offset
|-
|-
| 0x04 || 0x04 || uint || Motion name offset
| 0x04 || 0x04 || uint || Sequence name offset
|-
|-
| 0x08 || 0x04 || uint || Motion data offset
| 0x08 || 0x04 || uint || Sequence data offset
|-
|-
| 0x0C || 0x04 || Attributes || Attributes
| 0x0C || 0x04 || Attributes || Attributes
Line 27: Line 27:
! Mask !! Type !! Description  
! Mask !! Type !! Description  
|-
|-
| 0x00000FFF || uint12_t || Animation count
| 0x00000FFF || uint12_t || Sequence count
|}
|}
===Sequence Name Table===
The sequence name table consists out of the offsets (unsigned 32bit) to the strings and the strings themself.<br>
The amount of names is given by the sequence count inside the header.<br>
The strings are zero terminated/seperated.

Revision as of 06:14, 26 April 2019

The MOTN file format contains the animations for models based on their node structure.
This format can be found in various PKS files and in the motion.bin file.

Header

Position Length Type Description
0x00 0x04 uint Sequence data table offset
0x04 0x04 uint Sequence name offset
0x08 0x04 uint Sequence data offset
0x0C 0x04 Attributes Attributes
0x10 0x04 uint File size

Attributes

Mask Type Description
0x00000FFF uint12_t Sequence count

Sequence Name Table

The sequence name table consists out of the offsets (unsigned 32bit) to the strings and the strings themself.
The amount of names is given by the sequence count inside the header.
The strings are zero terminated/seperated.