Re: Metal Gear Solid 5 Ground Zeroes/Phantom Pain g0s archiv
Posted: Tue Nov 08, 2016 7:11 pm
unknown's writeup on importing appeal actions to single player inspired me to look into the .mtar format. I've still got a lot of progress to make, but this is my progress so far:
From here it gets more confusing. What I assume are .gani files in some of the files, seem to be lacking a distinguishable header. The offset for file length also doesn't seem to match up. There also seems to be an additional line attached to each file in the file list. I haven't figured out what this additional line does or means yet.
Edit: I can confirm that my .gani format notes are correct now. I found some .gani files sitting outside of a .mtar in one of GZs .fpks. Unfortunately, this doesn't help much with the second .mtar format. Still trying to figure that one out.
Code: Select all
Mtar Info:
Uses Little-Endian
0x0 - 0x3 (32): Signature? 9C A8 FF 0B = Gzs, 72 2B 01 0C = Tpp
0x4 - 0x7 (32): Number of files. Each line (or 2 lines[?] for player2_resident.mtar?) starting at 0x20 seems to indicate a file
0x8 - 0xB (32): Unknown. TppGzPlayerLayers and player2_resident share bytes 12 00 38 00. TppGzPlayerFacial (26 00 44 00) and TppPlayer2Facial (23 00 44 00) slightly differ.
0xC - 0xF (32): Unknown. TppGzPlayerLayers and player2_resident share bytes 00 00 00 00. TppGzPlayerFacial and TppPlayer2Facial share bytes 06 00 01 00.
0x10 - 0x1F: Unknown.
File declaring/listing begins at 0x20. All files in the list follow this format:
(Note: some files i.e. player2_resident seem to use a different format)
0x20 - 0x27: Unknown. Best guess is this might be the hashed name of the file. I.e. 63 0C 20 DA FA AF 53 = 3affada200c63
0x28 - 0x2B (32): File location offset.
0x2C - 0x2F (32): File length.
Gani File format:
0x0 - 0x4 (40): Signature (D2 A2 FC 0B 20).
0x5 - 0x7 (24): Padding.
0x8 - 0xB (32): File length.
0xC - 0xF (32): Padding.Edit: I can confirm that my .gani format notes are correct now. I found some .gani files sitting outside of a .mtar in one of GZs .fpks. Unfortunately, this doesn't help much with the second .mtar format. Still trying to figure that one out.