Resident Evil 3 DAT: Difference between revisions

From XentaxWiki
Jump to navigation Jump to search
imported>PmData
(Subdirectory data)
imported>PmData
(File data)
Line 27: Line 27:


{{BlockDescription|// File data}}
{{BlockDescription|// File data}}
 
: uint16 {1}   - Relative offset to file content
: uint16 {1}   - Number of keys used for decryption
: uint32 {1}   - Length in bytes of file content {{InlineComment|(length of decompressed file if compression is set)}}
: char {8}     - XOR encrypted string {{InlineComment|Null padded string. The latest byte is the value to use to 'decrypt' the other bytes of this string using XOR. The string is either "NotComp\0" (non compressed file) or "Hi_Comp\0" (compressed file).}}
:{{BlockDescription|// Decryption data}}
::uint32 {number of keys}   - Start value for decryption
::uint32 {number of keys}   - Length in bytes of a file block on which to apply decryption
: byte {x}     - Crypted and compressed file content {{InlineComment|To read the file content, decryption must be performed first (always), then decompression (optional, only if the above string is set to "Hi_Comp\0").}}
}}
}}



Revision as of 22:19, 18 May 2007

Back to index | Edit this page

DAT

Format Specifications

// Header data
uint32 {5}   - Unknown1
char {1}     - Unknown2
byte {x}     - Top level directory filename (null padded)
uint32 {1}   - Absolute offset to subdirectory data (value read here must be multiplied by 8)
uint32 {1}   - Length in bytes of subdirectory data
byte {x}     - Subdirectory filename (null padded)

// Subdirectory data

uint32 {5}   - Number of files
// For each file
uint32 {1}   - Absolute offset to file data (value read here must be multiplied by 8)
uint32 {1}   - Length in bytes of file data
byte {x}     - Filename (null padded)

// File data

uint16 {1}   - Relative offset to file content
uint16 {1}   - Number of keys used for decryption
uint32 {1}   - Length in bytes of file content (length of decompressed file if compression is set)
char {8}     - XOR encrypted string Null padded string. The latest byte is the value to use to 'decrypt' the other bytes of this string using XOR. The string is either "NotComp\0" (non compressed file) or "Hi_Comp\0" (compressed file).
// Decryption data
uint32 {number of keys}   - Start value for decryption
uint32 {number of keys}   - Length in bytes of a file block on which to apply decryption
byte {x}     - Crypted and compressed file content To read the file content, decryption must be performed first (always), then decompression (optional, only if the above string is set to "Hi_Comp\0").

Notes and Comments

None

MultiEx BMS Script

Not written yet

Supported by Programs

None

Links

Decryption and decompression routines are available on the associated REwiki page.

Games

Resident Evil 3 (PC)

See Also

None

Navigation

Jump to a listing by...
All Formats - Common Formats - Standard Formats - Malformed Pages
Platforms
Microsoft:
Xbox
Xbox 360
Nintendo:
GameCube
DS
Desktop:
PC
Sega:
Dreamcast
Sony:
PlayStation
PlayStation 2
PlayStation 3
PlayStation Portable
Type
Animation - Archive - Audio - Image - Mesh - Miscellaneous - Model - Video
Endianness
Little-endian - Big-endian
BMS Scripts
Pages Without a BMS Script

All Pages with Scripts:
Recently Added Scripts

Program Support
No Known Support

MultiEx Commander - Game Extractor

Format Specification Completion
Work in Progress - Almost Done - Completed
Compression and Encryption
No Compression or Encryption Used - Unknown Compression or Encryption Used

One or Both Used:
Compression Used - Both Compression and Encryption Used