The Cars THQ RES: Difference between revisions
Jump to navigation
Jump to search
imported>Mr.Mouse mNo edit summary |
imported>Ikskoks No edit summary |
||
| (18 intermediate revisions by 5 users not shown) | |||
| Line 4: | Line 4: | ||
endian_order=Little Endian| | endian_order=Little Endian| | ||
date_posted=13:34, 8 October 2006 (EDT)| | date_posted=13:34, 8 October 2006 (EDT)| | ||
format_specifications=<tt> | format_specifications=<tt><b> | ||
uint32 {4} - Number of files<br><br> | uint32 {4} - Number of files<br><br> | ||
{{Blue| // For each file}}<br> | {{Blue| // For each file}}<br> | ||
:byte | :byte {100} - Filename {{Purple|(null-terminated, but 100 bytes reserved)}}<br> | ||
:uint32 {4} - File offset (relative to header+fileinfo table!)<br> | :uint32 {4} - File offset {{Purple|(relative to header+fileinfo table!)}}<br> | ||
:uint32 {4} - File size<br><br> | :uint32 {4} - File size<br><br> | ||
| | </b></tt>| | ||
notes=None| | notes=None| | ||
bms_script=<bms games="'The Cars THQ'" ext="res" platforms="'PC'" author="Mr.Mouse" version="1.0" verbose="no" silence="no"># The Cars | 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 | # By Mr.Mouse (thanks Szevvy) | ||
# The format is very simple. | # The format is very simple. | ||
# ------------ | # ------------ | ||
| Line 42: | Line 42: | ||
games=The Cars THQ | games=The Cars THQ | ||
}} | }} | ||
[[Category:BMS]] | |||
[[Category:File Format]] | |||
Latest revision as of 20:31, 21 January 2021
Back to index | Edit this page
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