Port Royale 4 RES: Difference between revisions

From XentaxWiki
Jump to navigation Jump to search
imported>Ikskoks
imported>Ikskoks
 
(3 intermediate revisions by the same user not shown)
Line 36: Line 36:
<div class="toccolours mw-collapsible" id="mw-customcollapsible-myDivision" style="width:800px; overflow:auto;">
<div class="toccolours mw-collapsible" id="mw-customcollapsible-myDivision" style="width:800px; overflow:auto;">
<pre>
<pre>
// Port Royale 4 (v1.5)
// Port Royale 4 (v1.5) / Railway Empire 2
// RES file format
// RES file format


Line 42: Line 42:
// header
// header
4 bytes (char) - signature // "L10N"
4 bytes (char) - signature // "L10N"
4 bytes (uint32) - version? // e.g. 3
4 bytes (uint32) - version number // e.g. 3
4 bytes (uint32) - unknown // 258
4 bytes (uint32) - unknown // 258
4 bytes (uint32) - unknown // 1536
4 bytes (uint32) - unknown // 1536
5 bytes - nulls
5 bytes - unknown  // 00 00 00 00 00 - Port Royal 4 v1.5
4 bytes (uint32) - unknown // 20282
                    // 00 02 00 00 00 - Railway Empire 2
4 bytes (uint32) - unknown // 20282 - Port Royal 4 v1.5
                          // 27217 - Railway Empire 2
4 bytes - nulls
4 bytes - nulls
4 bytes (uint32) - number of strings
4 bytes (uint32) - number of strings
4 bytes (uint32) - unknown // 1990920
4 bytes (uint32) - unknown // 1990920 - Port Royal 4 v1.5
                          // 1787536 - Railway Empire 2




Line 80: Line 83:
* Port Royale 3
* Port Royale 3
* Port Royale 4
* Port Royale 4
* Railway Empire 2


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

Latest revision as of 21:24, 19 June 2023

Back to index | Edit this page

RES


Format Specifications

// Port Royale 4 (v1.4)
// RES file format

// header
4 bytes (char) - signature // "L10N"
4 bytes (uint32) - unknown // 258
4 bytes (uint32) - number of strings
4 bytes (uint32) - unknown // 4561052

// text info
num_of_strings *
{
   4 bytes (uint32) - string offset
   4 bytes (uint32) - string length
}

// text data
num_of_strings *
{
   x bytes (char) - string
}



// Port Royale 4 (v1.5) / Railway Empire 2
// RES file format


// header
4 bytes (char) - signature // "L10N"
4 bytes (uint32) - version number  // e.g. 3
4 bytes (uint32) - unknown // 258
4 bytes (uint32) - unknown // 1536
5 bytes - unknown   // 00 00 00 00 00 - Port Royal 4 v1.5
                    // 00 02 00 00 00 - Railway Empire 2
4 bytes (uint32) - unknown // 20282 - Port Royal 4 v1.5
                           // 27217 - Railway Empire 2
4 bytes - nulls
4 bytes (uint32) - number of strings
4 bytes (uint32) - unknown // 1990920 - Port Royal 4 v1.5
                           // 1787536 - Railway Empire 2


// text info
num_of_strings *
{
   4 bytes (uint32) - string offset
   4 bytes (uint32) - string length
   4 bytes (uint32) - unknown
}

// text data
num_of_strings *
{
   x bytes (char) - string
}

MultiEx BMS Script

Not written yet.

Notes and Comments

  • Format has changed from version 1.5 of Port Royale 4.

Games

List of games using this file format:

  • Port Royale 3
  • Port Royale 4
  • Railway Empire 2

Compatible Programs