Difference between revisions of "Jade Empire RIM"

From XentaxWiki
Jump to: navigation, search
 
m (MultiEx BMS)
Line 38: Line 38:
 
=== MultiEx BMS ===  
 
=== MultiEx BMS ===  
  
Not written yet<br><br>
+
<pre>ImpType Standard ;
 +
GoTo 12 0 ;
 +
Get FNum Long 0 ;
 +
Get DirOff Long 0 ;
 +
GoTo DirOff 0 ;
 +
For n = 1 To FNum ;
 +
SavePos FNJump 0 ;
 +
Math FNJump += 24 ;
 +
Get FN String 0 ;
 +
GoTo FNJump 0 ;
 +
SavePos FOO 0 ;
 +
Get FO Long 0 ;
 +
SavePos FSO 0 ;
 +
Get FS Long 0 ;
 +
Log FN FO FS FOO FSO ;
 +
Next n ; </pre>
  
 
=== Notes and Comments ===  
 
=== Notes and Comments ===  

Revision as of 16:30, 23 May 2005

Choose archive extension:

RIM


Format Specifications

char {8}     - Header (RIM V1.0)
uint32 {4}   - null
uint32 {4}   - Number Of Files
uint32 {4}   - Directory Offset (120)
uint32 {4}   - Version (1)
byte {96}    - null Padding

// Directory

// for each file
char {16}    - Filename (null)
uint32 {4}   - File Type ID (2002, 3011, 3016, 3017)
uint32 {4}   - File ID (incremental, starting from 0)
uint32 {4}   - File Offset
uint32 {4}   - File Length


byte {0-127} - null Padding to a multiple of 128 bytes


// File Data

// for each file
byte {X}     - File Data
byte {0-127} - null Padding to a multiple of 128 bytes


MultiEx BMS

ImpType Standard ;
GoTo 12 0 ;
Get FNum Long 0 ;
Get DirOff Long 0 ;
GoTo DirOff 0 ;
For n = 1 To FNum ;
SavePos FNJump 0 ;
Math FNJump += 24 ;
Get FN String 0 ;
GoTo FNJump 0 ;
SavePos FOO 0 ;
Get FO Long 0 ;
SavePos FSO 0 ;
Get FS Long 0 ;
Log FN FO FS FOO FSO ;
Next n ; 

Notes and Comments

  • Files with size=0 still incur padding, so infact take up 128 null padding bytes in the archive.


Supported Programs