Back to Documentation...

Mtar Format Information

Mtar (Motion Archive) is an archive file which contains MGSV's animation files (.gani). There appears to be two slightly differing formats for .mtar files. The first format is very easy to read and extract files from. For example, TppPlayer2Facial.mtar is an Mtar Type 1. The second format is much more confusing with scattered animation chunks and .ganis that do not have headers. For example, player2_resident is an Mtar Type 2. The only way to see which type of Mtar a file is, is to open it in a hex editor. If the file list in the beginning has two lines for each file, it is a Type 2. If it only has one per file, it is a Type 1. Both formats are Little-Endian.

Mtar Type 1 Format (i.e. TppPlayer2Facial.mtar)

Mtar Type 1 Header File declaring/listing begins at 0x20. All files in the list follow this format Gani Type 1 File Format

Mtar Type 2 Format (i.e. player2_resident.mtar)

Mtar Type 2 Header

A chunk with an unknown purpose will follow the main animation tracks' description. Known signatures can be 4B 53 E4 91 or 84 77 9A 3B. More possibilities for this signature may exist.

File declaring/listing begins at 0x20. All files in the list follow this format