MDL file
From Wiki
Holy Diver (talk | contribs) |
m |
||
Line 41: | Line 41: | ||
This byte is not super well understood. It is either a straight value, or a bitwise combination of flag values. Known values are 0, 1, and 4. For not animated, [[Tinman]] style animation, and [[Scarecrow]] style animation respectively. | This byte is not super well understood. It is either a straight value, or a bitwise combination of flag values. Known values are 0, 1, and 4. For not animated, [[Tinman]] style animation, and [[Scarecrow]] style animation respectively. | ||
− | HA | + | HA ¦ SA |
These bytes are the number of hard and soft (aka. Tinman/Scarecrow) animations contained within the file. | These bytes are the number of hard and soft (aka. Tinman/Scarecrow) animations contained within the file. | ||
Line 50: | Line 50: | ||
This byte is the number of ''sub headers'' in the file, of which there is one of per each separate section of geometry (a MDL may include many such sections.) | This byte is the number of ''sub headers'' in the file, of which there is one of per each separate section of geometry (a MDL may include many such sections.) | ||
− | PCSZ | + | PCSZ ¦ HASZ ¦ SASZ |
These three 16bit values indicate the size of the first three data blocks. The units are in 32bit intervals. In other words, a value of 4, indicates 16 bytes. Each block begins after the previous block, therefore it is necessary to sum the preceding blocks in order to arrive at the offset to any given block. There is a fourth block, which runs to the end of the file. The four blocks respectively pertain to 3D geometry, Tinman animation, Scarecrow animation, and TIM images. The TIM images themselves can consecutively be thought of as 4th, 5th, and so on blocks. It's a matter of personal interpretation. | These three 16bit values indicate the size of the first three data blocks. The units are in 32bit intervals. In other words, a value of 4, indicates 16 bytes. Each block begins after the previous block, therefore it is necessary to sum the preceding blocks in order to arrive at the offset to any given block. There is a fourth block, which runs to the end of the file. The four blocks respectively pertain to 3D geometry, Tinman animation, Scarecrow animation, and TIM images. The TIM images themselves can consecutively be thought of as 4th, 5th, and so on blocks. It's a matter of personal interpretation. | ||