Cybermercs: Difference between revisions

From XentaxWiki
Jump to navigation Jump to search
imported>WATTO
No edit summary
(fixed)
Line 3: Line 3:
Choose archive extension:
Choose archive extension:


== RES ==  
== RES / MFD ==


* ''' Format Type ''':    Archive <br>
* ''' Format Type ''':    Archive
* ''' [http://en.wikipedia.org/wiki/Endianness Endian Order] ''': Little Endian <br>
* ''' [http://en.wikipedia.org/wiki/Endianness Endian Order] ''': Little Endian




=== Format Specifications ===  
=== Format Specifications ===  
{{GRAFPageFormat|1=
{{BlockDescription| // Archive Header }}
: uint16 {2} &nbsp; - Number Of Files
: uint16 {2} &nbsp; - {{Unknown}} {{Constant|(0/1)}}
: uint32 {4} &nbsp; - {{Unknown}}
: uint32 {4} &nbsp; - {{Unknown}}
{{BlockDescription| // for each file }}
:: uint32 {4} &nbsp; - Filename Offset (absolute)
:: uint16 {2} &nbsp; - Filename Length
:: uint16 {2} &nbsp; - {{Unknown}}
{{BlockDescription| // for each file }}
:: char {X} &nbsp;&nbsp;&nbsp; - Filename {{Constant|(the length is obtained from the directory above)}}
:: uint32 {4) &nbsp; - File Offset
:: uint32 {4} &nbsp; - File Size
byte {X} &nbsp;&nbsp;&nbsp; - File Data}}
=== Notes and Comments ===
Files with extension ".inc", ".scr", ".h", ".ini", ".brj" and ".txt" XORed with byte 0xAA. It's a way how the game detects which file must be uncrypted.


<tt><b>
uint16 {2}&nbsp;&nbsp; - Number Of Files <br>
uint16 {2}&nbsp;&nbsp; - <font color="red"> '' Unknown <font color="purple">(0/1)</font> '' </font> <br>
uint32 {4}&nbsp;&nbsp; - <font color="red"> '' Unknown '' </font> <br>
uint32 {4}&nbsp;&nbsp; - <font color="red"> '' Unknown '' </font> <br>
<br>
<font color="blue"> ''' // for each file ''' </font> <br>
: uint32 {4}&nbsp;&nbsp; - <font color="red"> '' File ID? '' </font> <br>
: uint16 {2}&nbsp;&nbsp; - Filename Length <br>
: uint16 {2}&nbsp;&nbsp; - <font color="red"> '' Encrypted? <font color="purple">(0=normal, 101=encrypted)</font> '' </font> <br>
<br>
<font color="blue"> ''' // for each file ''' </font> <br>
: char {X}&nbsp;&nbsp;&nbsp;&nbsp; - Filename <font color="purple">(the length is obtained from the directory above)</font> <br>
: uint32 {4}&nbsp;&nbsp; - File Offset <br>
: uint32 {4}&nbsp;&nbsp; - File Size <br>
<br>
byte {X}&nbsp;&nbsp;&nbsp;&nbsp; - File Data <br>
<br>
</b></tt>


=== MultiEx BMS Script ===  
=== MultiEx BMS Script ===  
Not written yet


Not written yet<br><br>


=== Compatible Programs ===  
=== Compatible Programs ===  


* [[Game Extractor|Game Extractor]]<br>
* [[Game Extractor|Game Extractor]]
* ctpax-x.ru/?goto=files&show=115 / Cybermercs .RES / .MFD unpacker (with Delphi source codes)

Revision as of 21:48, 20 March 2012

Choose archive extension:

RES / MFD


Format Specifications

// Archive Header
uint16 {2}   - Number Of Files
uint16 {2}   - Unknown (0/1)
uint32 {4}   - Unknown
uint32 {4}   - Unknown

// for each file

uint32 {4}   - Filename Offset (absolute)
uint16 {2}   - Filename Length
uint16 {2}   - Unknown

// for each file

char {X}     - Filename (the length is obtained from the directory above)
uint32 {4)   - File Offset
uint32 {4}   - File Size
byte {X}     - File Data


Notes and Comments

Files with extension ".inc", ".scr", ".h", ".ini", ".brj" and ".txt" XORed with byte 0xAA. It's a way how the game detects which file must be uncrypted.


MultiEx BMS Script

Not written yet


Compatible Programs

  • Game Extractor
  • ctpax-x.ru/?goto=files&show=115 / Cybermercs .RES / .MFD unpacker (with Delphi source codes)