World Of Warcraft MPQ: Difference between revisions

From XentaxWiki
Jump to navigation Jump to search
imported>WATTO
No edit summary
imported>XblK0l
mNo edit summary
Line 12: Line 12:


<tt><b>
<tt><b>
char {4}&nbsp;&nbsp;&nbsp;&nbsp; - Header <font color="purple">("MPQ" + <font color="purple">(byte)</font>26)</font> <br>
char {4}
uint32 {4}&nbsp;&nbsp; - Directory Offset <font color="purple">(32)</font> <br>
uint32 {4}&nbsp;&nbsp; - Archive Size <br>
uint32 {4}&nbsp;&nbsp; - <font color="red"> '' Unknown <font color="purple">(196608)</font> '' </font> <br>
uint32 {4}&nbsp;&nbsp; - <font color="red"> '' Unknown Offset/Length '' </font> <br>
uint32 {4}&nbsp;&nbsp; - <font color="red"> '' Unknown Offset/Length '' </font> <br>
uint32 {4}&nbsp;&nbsp; - <font color="red"> '' Unknown <font color="purple">(65536)</font> '' </font> <br>
uint32 {4}&nbsp;&nbsp; - <font color="red"> '' Unknown '' </font> <br>
<br>
<font color="blue"> ''' // DIRECTORY ''' </font> <br>
: <font color="blue"> ''' // for each file ''' </font> <br>
:: uint32 {4}&nbsp;&nbsp; - File Offset <font color="purple">(relative to the start of the directory)</font> <br>
<br>
: uint32 {4}&nbsp;&nbsp; - Offset To Next Directory <font color="purple">(relative to the start of the directory)</font> <br>
<br>
<font color="blue"> ''' // FILE DATA ''' </font> <br>
: <font color="blue"> ''' // for each file ''' </font> <br>
:: <font color="blue"> ''' if (file is compressed){ ''' </font> <br>
::: byte {1}&nbsp;&nbsp;&nbsp;&nbsp; - Compression Tag <font color="purple">(2)</font> <br>
::: byte {X}&nbsp;&nbsp;&nbsp;&nbsp; - Compressed File Data <font color="purple">(ZLib-compressed)</font> <br>
::: <font color="blue"> ''' } ''' </font> <br>
<br>
:: <font color="blue"> ''' else if (file is not compressed){ ''' </font> <br>
::: byte {X}&nbsp;&nbsp;&nbsp;&nbsp; - File Data <br>
::: <font color="blue"> ''' } ''' </font> <br>
<br>
<font color="green"> ''' // repeat while there is still more directories ''' </font> <br>
: <font color="green"> ''' // DIRECTORY 2 ''' </font> <br>
: <font color="green"> ''' // FILE DATA 2 ''' </font> <br>
<font color="green"> ''' // etc.. ''' </font> <br>
</b></tt>
 
=== MultiEx BMS ===
 
Not written yet<br><br>
<br>
=== Supported Programs ===
 
* [[Game Extractor|Game Extractor]]<br>

Revision as of 22:43, 12 April 2007

Choose archive extension:

MPQ


Format Specifications

char {4}