The Cars THQ RES
From XentaxWiki
Back to index | Edit this page
Contents
RES
{{GRAFPageMisc{{ subst:#if: Archive | {{subst:!}}Archive }}{{ subst:#if: Little Endian | {{subst:!}}Little Endian }}}}
Format Specifications
uint32 {4} - Number of files
// For each file
- byte {100} - Filename (null-terminated, but 100 bytes reserved)
- uint32 {4} - File offset (relative to header+fileinfo table!)
- uint32 {4} - File size
Notes and Comments
None
MultiEx BMS Script
<bms games="'The Cars THQ'" ext="res" platforms="'PC'" author="Mr.Mouse" version="1.0" verbose="no" silence="no"># The Cars THQ .RES format MexScript
- By Mr.Mouse (thanks Szevvy)
- The format is very simple.
- ------------
- // Header
- UINT32 Number of resources
- // For each resource
- byte[100] Resource name (null-terminated, but 100 bytes reserved)
- unint32 Relative offset (minus the size of the info table + header)
- unint32 Size
- ------------
ImpType Standard ; Get FNum Long 0 ;
- Calculate offset of file data (RO)
Set RO Long 108 ; Math RO *= FNum ; Math RO += 4 ; For T = 1 To FNum ; GetDString FN 100 0 ; Get FO Long 0 ; Get FS Long 0 ; Log FN RO FS 0 0 ; Math RO += FS ; Next T ; </bms>
Supported by Programs
MultiEx Commander http://multiex.xentax.com
Documentation
http://forum.xentax.com/viewtopic.php?t=2135
Games
The Cars THQ