Difference between revisions of "MOTN"
Jump to navigation
Jump to search
Line 5: | Line 5: | ||
The MOTN file format contains the animations for models based on their node structure.<br> | The MOTN file format contains the animations for models based on their node structure.<br> | ||
This format can be found in various PKS files and in the motion.bin file.<br> | This format can be found in various PKS files and in the motion.bin file.<br> | ||
===Structure=== | |||
{| class="wikitable" | |||
|- | |||
! Section | |||
|- | |||
| Header | |||
|- | |||
| Sequence Data Table | |||
|- | |||
| Unknown | |||
|- | |||
| Sequence Name Table | |||
|- | |||
| Sequence Data | |||
|} | |||
===Header=== | ===Header=== | ||
Line 42: | Line 58: | ||
===Sequence Data=== | ===Sequence Data=== | ||
{| class="wikitable" | |||
|- | |||
! Position !! Length !! Type !! Description | |||
|- | |||
| 0x00 || 0x04 || uint || Unknown | |||
|- | |||
| 0x04 || 0x02 || ushort || First block offset | |||
|- | |||
| 0x06 || 0x02 || ushort || Second block offset | |||
|- | |||
| 0x08 || 0x02 || ushort || Third block offset | |||
|} |
Revision as of 12:25, 27 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.
Structure
Section |
---|
Header |
Sequence Data Table |
Unknown |
Sequence Name Table |
Sequence Data |
Header
Position | Length | Type | Description |
---|---|---|---|
0x00 | 0x04 | uint | Sequence data table offset |
0x04 | 0x04 | uint | Sequence names 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 Data Table
The sequence data table consists out of two offsets (each unsigned 32bit) per sequence.
Both offsets point inside the sequence data segment.
The first offset points to the main sequence data containing the key frames.
The second offset points to some unknown data array.
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.
Sequence Data
Position | Length | Type | Description |
---|---|---|---|
0x00 | 0x04 | uint | Unknown |
0x04 | 0x02 | ushort | First block offset |
0x06 | 0x02 | ushort | Second block offset |
0x08 | 0x02 | ushort | Third block offset |