RenderWare DAT: Difference between revisions

From XentaxWiki
Jump to navigation Jump to search
imported>Ikskoks
imported>Ikskoks
Line 59: Line 59:
!    Chunk type                      !! Extension      !! Description
!    Chunk type                      !! Extension      !! Description
|-
|-
|    rwID_CLUMP                      || .dff          || 3D Model
|    rwID_CLUMP                      || .dff          || 3D Models / Atomics / Lights / Cameras
|-
|-
|    rwID_HANIMANIMATION            || .anm          || Animation
|    rwID_HANIMANIMATION            || .anm          || Animation

Revision as of 15:49, 26 March 2021

Back to index | Edit this page

DAT


Format Specifications

// Kill Switch 
// DAT file format

// header chunk
4 bytes (uint32) - chunk type  // 0x19 0x07 0x00 0x00 - RW DAT archive type?
4 bytes (uint32) - chunk size  // 12
4 bytes (uint32) - RW version ID // 0xFF 0xFF 0x00 0x14 - RW v3.5.0.0
12 bytes (char) - some string  // "StopSystem.X"

// start chunk
// Note: This chunk is some kind of data start marker
4 bytes (uint32) - chunk type  // 0x06 0x07 0x00 0x00 - data start marker
4 bytes (uint32) - chunk size  // 0
4 bytes (uint32) - RW version ID // 0xFF 0xFF 0x00 0x14 - RW v3.5.0.0

// data chunks
num_of_data_chunks *
{

   // container chunk
   4 bytes (uint32) - chunk type  // 0x16 0x07 0x00 0x00 - container for assets
   4 bytes (uint32) - chunk size
   4 bytes (uint32) - RW version ID
   4 bytes (uint32) - GUID + path length
   x bytes (char) - GUID + path string
   4 bytes (uint32) - chunk size?
   
   x bytes - data chunk // See "Related structures" section
                        // for more information
}


// end chunk
// Note: This chunk is some kind of data end marker
4 bytes (uint32) - chunk type  // 0x06 0x07 0x00 0x00 - data end marker
4 bytes (uint32) - chunk size  // 0
4 bytes (uint32) - RW version ID // 0xFF 0xFF 0x00 0x14 - RW v3.5.0.0
   

Related Structures

Following data chunks can be found inside container chunks:

Chunk type Extension Description
rwID_CLUMP .dff 3D Models / Atomics / Lights / Cameras
rwID_HANIMANIMATION .anm Animation
rwID_TEXTFILE .txt Text file
rwID_TEXDICTIONARY .txd Texture
NAMCO_LEVEL .level Level data
rwaID_WAVEDICT .rws Audio


rwID_TEXDICTIONARY structure

// Texture dictionary structure (rwID_TEXDICTIONARY)
// TXD file format

// texture dictionary chunk
4 bytes (uint32) - chunk type  // 0x16 0x00 0x00 0x00 - texture dictionary
4 bytes (uint32) - chunk size
4 bytes (uint32) - RW version ID

// struct chunk
4 bytes (uint32) - chunk type  // 0x01 0x00 0x00 0x00 - struct chunk
4 bytes (uint32) - chunk size  // 4
4 bytes (uint32) - RW version ID
4 bytes (uint32) - unknown // 2

// raster chunk
4 bytes (uint32) - chunk type  // 0x15 0x00 0x00 0x00 - raster chunk
4 bytes (uint32) - chunk size  
4 bytes (uint32) - RW version ID

// struct chunk
4 bytes (uint32) - chunk type  // 0x01 0x00 0x00 0x00 - struct chunk
4 bytes (uint32) - chunk size 
4 bytes (uint32) - RW version ID
4 bytes (uint32) - unknown  // 5
4 bytes (uint32) - unknown  // 4353
65 bytes (char) - texture name + padding // e.g. "barl01_top" or "mask"
   
// texture header (22 bytes)
4 bytes (uint32) - unknown
3 bytes - nulls
2 bytes (uint16) - texture width
2 bytes (uint16) - texture height
1 byte (uint8) - texture depth (bits per pixel)  // e.g. 32
10 bytes - unknown

x bytes - texture data

MultiEx BMS Script

Not written yet.

Notes and Comments

  • This file format occurs in games made with RenderWare engine.

Games

List of games using this file format:

  • Killswitch / kill.switch / Kill Switch

Compatible Programs

See Also