Difference between revisions of "Sacred RES"

From XentaxWiki
Jump to: navigation, search
(new Sacred RES page. New template used, should be ok)
 
(re-edit the page, not using the precedent template (buggy for edits))
Line 1: Line 1:
{{GRAFTemplate1|
+
== PAK ==
file_extension=RES|
+
 
format_type=Strings ressource|
+
* ''' Format Type ''': text strings <br>
endian_order=Little Endian|
+
* ''' [http://en.wikipedia.org/wiki/Endianness Endian Order] ''': Little Endian <br>
date_posted=09:20, 17 May 2006 (EDT)|
+
* ''' Date Posted ''': 02:30, 18 May 2006 (EDT) <br>
format_specifications=
+
 
 +
 
 +
=== Format Specifications ===
 
<tt><b>
 
<tt><b>
 
<br>
 
<br>
uint32 {4}&nbsp;&nbsp; - Number of Strings <br>  
+
uint32 {4} - Number of Strings <br>  
 
<br>
 
<br>
 
: <font color="blue"> ''' // for each string ''' </font> <br>
 
: <font color="blue"> ''' // for each string ''' </font> <br>
:: uint32 {4}&nbsp;&nbsp; - String ID <br>
+
:: uint32 {4} - String ID <br>
:: uint32 {4}&nbsp;&nbsp; - Offset <br>
+
:: uint32 {4} - Offset <br>
:: uint32 {4}&nbsp;&nbsp; - Unknown <br>
+
:: uint32 {4} - Unknown <br>
:: uint32 {4}&nbsp;&nbsp; - Length <br>
+
:: uint32 {4} - Length <br>
 
<br>
 
<br>
 
: <font color="blue"> ''' // for each string ''' </font> <br>
 
: <font color="blue"> ''' // for each string ''' </font> <br>
:: byte {X}&nbsp;&nbsp; - Unicode String <br>  
+
:: byte {X} - Unicode String <br>  
 
</b></tt>
 
</b></tt>
|
+
<br>
notes=
+
=== Notes and Comments ===
 
<tt>
 
<tt>
The *.res files can be find in <b>Sacred\scripts\<2-letters language code>\global.res</b><br>
 
 
<br>
 
<br>
The <b>Offset</b> does not count the first 4 bytes of the file. It skip the <b>Number of Strings</b> data. So if you get for instance an offset = 295216, it means in fact that the string begin at <b>File offset</b> 295216 + 4 = 295220.<br>
+
* The *.res files can be find in <b>Sacred\scripts\<font color="green"><2-letters language code></font>\global.res</b><br>
 
<br>
 
<br>
The <b>Unknown</b> data is almost always set to zero. In Sacred Underworld, there are only 4 strings that have this data set to 1, 3 or 5, out of the 23123 strings available. It is somewhat related to the fact that the only strings that are using it have at least a '%' character (and all strings that use a '%' have this <b>Unknown</b> data different than zero).<br>
+
* The <b>Offset</b> does not count the first 4 bytes of the file. It skip the <b>Number of Strings</b> data. So if you get for instance an offset = 295216, it means in fact that the string begin at <b>File offset</b> 295216 + 4 = 295220.<br>
 
<br>
 
<br>
The <b>Length</b> data is the length of the string in number of bytes, NOT in number of characters. Each character is coded into 2 bytes, in 16-bit Unicode format. There is NO zero terminal at the end of the strings, so you have to use this <b>Length</b> data to know where stop the string.
+
* The <b>Unknown</b> data is almost always set to zero. In Sacred Underworld, there are only 4 strings that have this data set to 1, 3 or 5, out of the 23123 strings available. It is somewhat related to the fact that the only strings that are using it have at least a '%' character (and all strings that use a '%' have this <b>Unknown</b> data different than zero).<br>
 +
<br>
 +
* The <b>Length</b> data is the length of the string in number of bytes, NOT in number of characters. Each character is coded into 2 bytes, in 16-bit Unicode format. There is NO zero terminal at the end of the strings, so you have to use this <b>Length</b> data to know where stop the string.
 
</tt>
 
</tt>
|
+
<br>
bms_script=Not written yet|
+
=== MultiEx BMS Script ===
programs=None|
+
Not written yet<br>
documentation=None|
+
<br>
games=None
+
=== Supported by Programs ===
}}
+
None <br>
 +
<br>
 +
=== Documentation ===
 +
None<br>
 +
<br>
 +
=== Games ===
 +
None

Revision as of 08:30, 18 May 2006

PAK

  • Format Type : text strings
  • Endian Order : Little Endian
  • Date Posted : 02:30, 18 May 2006 (EDT)


Format Specifications


uint32 {4} - Number of Strings

// for each string
uint32 {4} - String ID
uint32 {4} - Offset
uint32 {4} - Unknown
uint32 {4} - Length


// for each string
byte {X} - Unicode String


Notes and Comments


  • The *.res files can be find in Sacred\scripts\<2-letters language code>\global.res


  • The Offset does not count the first 4 bytes of the file. It skip the Number of Strings data. So if you get for instance an offset = 295216, it means in fact that the string begin at File offset 295216 + 4 = 295220.


  • The Unknown data is almost always set to zero. In Sacred Underworld, there are only 4 strings that have this data set to 1, 3 or 5, out of the 23123 strings available. It is somewhat related to the fact that the only strings that are using it have at least a '%' character (and all strings that use a '%' have this Unknown data different than zero).


  • The Length data is the length of the string in number of bytes, NOT in number of characters. Each character is coded into 2 bytes, in 16-bit Unicode format. There is NO zero terminal at the end of the strings, so you have to use this Length data to know where stop the string.


MultiEx BMS Script

Not written yet

Supported by Programs

None

Documentation

None

Games

None