The Cars THQ RES: Difference between revisions
Jump to navigation
Jump to search
(Anh em Ta voi nhau nhin nap) |
imported>Ikskoks No edit summary |
||
| (3 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
{{GRAFTemplate1| | |||
file_extension=RES| | |||
format_type=Archive| | |||
endian_order=Little Endian| | |||
date_posted=13:34, 8 October 2006 (EDT)| | |||
format_specifications=<tt><b> | |||
uint32 {4} - Number of files<br><br> | |||
{{Blue| // For each file}}<br> | |||
:byte {100} - Filename {{Purple|(null-terminated, but 100 bytes reserved)}}<br> | |||
:uint32 {4} - File offset {{Purple|(relative to header+fileinfo table!)}}<br> | |||
:uint32 {4} - File size<br><br> | |||
</b></tt>| | |||
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 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>| | |||
programs=MultiEx Commander | |||
http://multiex.xentax.com| | |||
documentation=http://forum.xentax.com/viewtopic.php?t=2135| | |||
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