Robin Hood: The Legend of Sherwood RES: Difference between revisions

From XentaxWiki
Jump to navigation Jump to search
imported>Ikskoks
imported>Ikskoks
 
(37 intermediate revisions by the same user not shown)
Line 19: Line 19:
number_of_chunks *
number_of_chunks *
{
{
   4 bytes (char) - chunk name  // e.g. "WAVE" or "TEXT"
   4 bytes (char) - chunk name  // e.g. "WAVE" - wav filenames
                                //      "TEXT" - game's text
                                //      "PIC " - bzip2 compressed graphics
   4 bytes (uint32) - chunk ID?
   4 bytes (uint32) - chunk ID?
   6 bytes - unknown
   4 bytes (uint32) - nulls
   x bytes - file data
   x bytes - file data / chunk data
}
}


Line 31: Line 33:
}
}


4 bytes (uint32) - offset table offset
4 bytes (uint32) - offset-table offset
</pre>
</pre>
</div>
</div>


=== Notes and Comments ===  
== Chunks Specifications ==
 
=== TEXT chunk ===
 
<div class="toccolours mw-collapsible" id="mw-customcollapsible-myDivision" style="width:800px; overflow:auto;">
<pre>
2 bytes (uint16) - number of strings
 
num_of_strings *
{
  2 bytes (uint16) - number of characters
  x bytes (char) - string
}
</pre>
</div>
 
=== PIC chunk ===
 
PIC file format seems to be the same as in [[Robin Hood: The Legend of Sherwood PAK SXT PIC|Robin Hood's *.PAK]] files.
 
=== WAVE chunk ===
 
<div class="toccolours mw-collapsible" id="mw-customcollapsible-myDivision" style="width:800px; overflow:auto;">
<pre>
2 bytes (uint16) - number of wav paths
 
num_of_strings *
{
  2 bytes (uint16) - wav path length
  x bytes (char) - wav path
}
</pre>
</div>
 
== Other Info ==
 
=== Notes and Comments ===


* This file format uses '''BZIP2''' compression method.
* This file format uses '''BZIP2''' compression method.
=== Games ===  
=== Games ===  
List of games using this file format:
List of games using this file format:
Line 44: Line 83:
=== QuickBMS Script ===  
=== QuickBMS Script ===  


Not written yet.
* [https://github.com/bartlomiejduda/Tools/blob/master/NEW%20Tools/Robin%20Hood%20The%20Legend%20of%20Sherwood/Robin_Hood_RES_script.bms Robin_Hood_RES_script.bms]


=== Compatible Programs ===  
=== Compatible Programs ===  
Line 57: Line 96:
[[Category:Format_Archive | Type: Archive]]
[[Category:Format_Archive | Type: Archive]]
[[Category:Extension_res | Extension: res]]
[[Category:Extension_res | Extension: res]]
[[Category:BMS_None | BMS: None]]
[[Category:BZIP2 compression]]
[[Category:File Format]]
[[Category:File Format]]

Latest revision as of 20:32, 15 February 2022

Back to index | Edit this page

RES

  • Format Type : Archive
  • Endian Order : Little Endian
  • Signature : SRES


Format Specifications

// header
4 bytes (char) - signature // "SRES"
4 bytes (uint32) - version? // 256
4 bytes (uint32) - number of entries / number of chunks

// data
number_of_chunks *
{
   4 bytes (char) - chunk name  // e.g. "WAVE" - wav filenames
                                //      "TEXT" - game's text
                                //      "PIC " - bzip2 compressed graphics
   4 bytes (uint32) - chunk ID?
   4 bytes (uint32) - nulls
   x bytes - file data / chunk data
}

// offset table
number_of_chunks *
{
   4 bytes (uint32) - chunk offset
}

4 bytes (uint32) - offset-table offset

Chunks Specifications

TEXT chunk

2 bytes (uint16) - number of strings

num_of_strings *
{
  2 bytes (uint16) - number of characters
  x bytes (char) - string
}

PIC chunk

PIC file format seems to be the same as in Robin Hood's *.PAK files.

WAVE chunk

2 bytes (uint16) - number of wav paths

num_of_strings *
{
  2 bytes (uint16) - wav path length
  x bytes (char) - wav path
}

Other Info

Notes and Comments

  • This file format uses BZIP2 compression method.

Games

List of games using this file format:

  • Robin Hood: The Legend of Sherwood (PC) (*.RES)

QuickBMS Script

Compatible Programs

None.