RenderWare DAT: Difference between revisions

From XentaxWiki
Jump to navigation Jump to search
imported>WATTO
No edit summary
imported>Ikskoks
 
(87 intermediate revisions by the same user not shown)
Line 1: Line 1:
* [[GRAFs|Return to the list of games]]
{{GRAFPageHeader}}
== DAT ==
 
* ''' Format Type ''':    Archive <br>
* ''' [http://en.wikipedia.org/wiki/Endianness Endian Order] ''': Little Endian <br>


Choose archive extension:


== DAT ==  
=== Format Specifications (Kill Switch DAT) ===  
 
<div class="toccolours mw-collapsible" id="mw-customcollapsible-myDivision" style="width:1000px; overflow:auto;">
<pre>
// 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


* ''' Format Type ''':    Archive <br>
// data chunks
* ''' [http://en.wikipedia.org/wiki/Endianness Endian Order] ''': Little Endian <br>
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
}


=== Format Specifications ===


<tt><b>
// end chunk
uint32 {4}&nbsp;&nbsp; - <font color="red"> '' Unknown '' </font> <br>
// Note: This chunk is some kind of data end marker
uint32 {4}&nbsp;&nbsp; - <font color="red"> '' Unknown '' </font> <br>
4 bytes (uint32) - chunk type  // 0x06 0x07 0x00 0x00 - data end marker
uint32 {4}&nbsp;&nbsp; - <font color="red"> '' Unknown '' </font> <br>
4 bytes (uint32) - chunk size  // 0
byte {12}&nbsp;&nbsp;&nbsp; - Filename <font color="purple">(null)</font> <br>
4 bytes (uint32) - RW version ID // 0xFF 0xFF 0x00 0x14 - RW v3.5.0.0
uint32 {4}&nbsp;&nbsp; - <font color="red"> '' Unknown '' </font> <br>
 
uint32 {4}&nbsp;&nbsp; - null <br>
</pre>
uint32 {4}&nbsp;&nbsp; - <font color="red"> '' Unknown '' </font> <br>
</div>
uint32 {4}&nbsp;&nbsp; - <font color="red"> '' Unknown '' </font> <br>
uint32 {4}&nbsp;&nbsp; - <font color="red"> '' Unknown '' </font> <br>  
uint32 {4}&nbsp;&nbsp; - <font color="red"> '' Unknown '' </font> <br>
uint32 {4}&nbsp;&nbsp; - Description Data Length <br>  
<br>
<br>
<font color="blue"> ''' // for each description ''' </font> <br>
 
: char {X}&nbsp;&nbsp;&nbsp;&nbsp; - Description <font color="purple">(null)</font> <br>  
=== Format Specifications (Gaelic Games Football 2 PS2 DAT) ===
 
<div class="toccolours mw-collapsible" id="mw-customcollapsible-myDivision" style="width:1000px; overflow:auto;">
<pre>
// Gaelic Games Football 2 (PS2)
// DAT file format
 
// header
4 bytes - signature // 0x95 0x97 0x9E 0x91 (RW DAT archive type?)
4 bytes (uint32) - unknown1 // 6
4 bytes (uint32) - unknown2 // 0
4 bytes (uint32) - unknown3 // 1
4 bytes (uint32) - info array offset
 
// data
num_of_files *
{
  4 bytes (uint32) - compressed file size
  x bytes - file data  // compressed with ZLIB
}
 
// info array
4 bytes (uint32) - number of files
num_of_files *
{
  4 bytes (uint32) - filename length
  x bytes (char) - filename
  4 bytes (uint32) - file offset
  4 bytes (uint32) - f_unknown1
  4 bytes (uint32) - f_unknown2  // 1
  4 bytes (uint32) - f_unknown3
}
</pre>
</div>
<br>
<br>
uint32 {4}&nbsp;&nbsp; - <font color="red"> '' Unknown '' </font> <br>
 
uint32 {4}&nbsp;&nbsp; - <font color="red"> '' Unknown '' </font> <br>
=== Related Structures ===  
uint32 {4}&nbsp;&nbsp; - <font color="red"> '' Unknown '' </font> <br>
 
uint32 {4}&nbsp;&nbsp; - <font color="red"> '' Unknown '' </font> <br>
Following data chunks can be found inside container chunks:
uint32 {4}&nbsp;&nbsp; - <font color="red"> '' Unknown '' </font> <br>
 
<br>
{| class="wikitable sortable"
<font color="blue"> ''' // for each file ''' </font> <br>
|-  
: uint32 {4}&nbsp;&nbsp; - <font color="red"> '' Unknown '' </font> <br>
!    Chunk type                                !! Extension      !! Description
: uint32 {4}&nbsp;&nbsp; - <font color="red"> '' Unknown '' </font> <br>
|-
: uint32 {4}&nbsp;&nbsp; - <font color="red"> '' Unknown '' </font> <br>
|    rwID_CLUMP                                || .dff          || 3D Models / Atomics / Lights / Cameras
: uint32 {4}&nbsp;&nbsp; - <font color="red"> '' Unknown '' </font> <br>
|-
: <font color="blue"> ''' // THIS IS THE START OF THE FILE DATA ''' </font> <br>
|    rwID_HANIMANIMATION                      || .anm          || Animation
: uint32 {4}&nbsp;&nbsp; - File Length <font color="purple">(-96)</font> <br>
|-
: uint32 {4}&nbsp;&nbsp; - <font color="red"> '' Unknown '' </font> <br>
|    rwID_TEXTFILE                            || .txt          || Text file
: uint32 {4}&nbsp;&nbsp; - <font color="red"> '' Unknown '' </font> <br>
|-
: uint32 {4}&nbsp;&nbsp; - <font color="red"> '' Unknown '' </font> <br>
|    [[RenderWare TXD|rwID_TEXDICTIONARY]]    || .txd          || Texture
: uint32 {4}&nbsp;&nbsp; - <font color="red"> '' Unknown '' </font> <br>
|-
: uint32 {4}&nbsp;&nbsp; - <font color="red"> '' Unknown '' </font> <br>
|    NAMCO_LEVEL                              || .level        || Level data
: uint32 {4}&nbsp;&nbsp; - <font color="red"> '' Unknown '' </font> <br>
|-
: char {64}&nbsp;&nbsp;&nbsp; - Filename <font color="purple">(null)</font> <br>
|    [[RWS|rwaID_WAVEDICT]]                    || .rws          || Audio
: byte {X}&nbsp;&nbsp;&nbsp;&nbsp; - Rest of the file <br>
|-
<br>
 
</b></tt>
|}


=== MultiEx BMS Script ===  
=== MultiEx BMS Script ===  


Not written yet<br><br>
Not written yet.
 
=== QuickBMS Script ===
 
* [https://github.com/bartlomiejduda/Tools/blob/master/NEW%20Tools/Gaelic%20Games%20Football%202/gaelic_games_football_2_DAT_script.bms gaelic_games_football_2_DAT_script.bms]
 
=== Notes and Comments ===
 
* This file format occurs in games made with '''RenderWare''' engine.
* Files inside archive can be compressed with '''ZLIB compression'''.
 
=== Games ===
List of games using this file format:
* Disney Pixar Cars (PSP)
* Killswitch / kill.switch / Kill Switch [RW v3.5.0.0] (*.DAT)
* Gaelic Games Football 2 (PS2) [RW 3.7.0.2 Build A] (*.DAT)


=== Compatible Programs ===  
=== Compatible Programs ===  


* None - Incomplete format specifications
* [http://www.steve-m.com/downloads/tools/rwanalyze/ RW Analyze]
* [https://github.com/bartlomiejduda/Tools/blob/master/NEW%20Tools/Kill%20Switch/Kill_Switch_DAT_Tool.py Kill_Switch_DAT_Tool.py]
* [https://github.com/xaylinks/gametools/blob/main/rw-ffff0218.js rw-ffff0218.js (made for PSP Disney Pixar Cars)]
 
=== See Also ===
 
* [https://github.com/electronicarts/RenderWare3Docs RenderWare3Docs]
* [https://gtamods.com/wiki/RenderWare RenderWare versioning]
* [https://gtamods.com/wiki/List_of_RW_section_IDs List of RW section IDs]
* [https://gtamods.com/wiki/Texture_archive Texture archive]
* [https://wiki.multimedia.cx/index.php?title=TXD TXD file format]
* [https://gta.fandom.com/wiki/RenderWare_binary_stream_file RenderWare binary stream file]
* [https://en.wikipedia.org/wiki/List_of_RenderWare_games List of RenderWare games]
* [https://www.burnout.wiki/wiki/Texture_(PSP) TXD file format for Burnout PSP games]
* [http://wiki.xentax.com/index.php/RWS RWS Audio file format]
* [[RenderWare TXD]]
<br/><br>
 
 
[[Category:Complete Almost Done|RenderWare DAT]]
[[Category:Platform PC|RenderWare DAT]]
[[Category:Platform PS2|RenderWare DAT]]
[[Category:CE None|RenderWare DAT]]
[[Category:CE Compressed|RenderWare DAT]]
[[Category:Format_Archive | Type: Archive]]
[[Category:Extension_dat | Extension: dat]]
[[Category:BMS_None | BMS: None]]
[[Category:ZLIB compression]]
[[Category:File Format]]

Latest revision as of 19:34, 24 October 2021

Back to index | Edit this page

DAT


Format Specifications (Kill Switch DAT)

// 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
   


Format Specifications (Gaelic Games Football 2 PS2 DAT)

// Gaelic Games Football 2 (PS2)
// DAT file format

// header
4 bytes - signature // 0x95 0x97 0x9E 0x91 (RW DAT archive type?)
4 bytes (uint32) - unknown1 // 6
4 bytes (uint32) - unknown2 // 0
4 bytes (uint32) - unknown3 // 1
4 bytes (uint32) - info array offset

// data
num_of_files *
{
   4 bytes (uint32) - compressed file size
   x bytes - file data  // compressed with ZLIB
}

// info array
4 bytes (uint32) - number of files
num_of_files *
{
   4 bytes (uint32) - filename length
   x bytes (char) - filename
   4 bytes (uint32) - file offset
   4 bytes (uint32) - f_unknown1
   4 bytes (uint32) - f_unknown2  // 1
   4 bytes (uint32) - f_unknown3
}


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

MultiEx BMS Script

Not written yet.

QuickBMS Script

Notes and Comments

  • This file format occurs in games made with RenderWare engine.
  • Files inside archive can be compressed with ZLIB compression.

Games

List of games using this file format:

  • Disney Pixar Cars (PSP)
  • Killswitch / kill.switch / Kill Switch [RW v3.5.0.0] (*.DAT)
  • Gaelic Games Football 2 (PS2) [RW 3.7.0.2 Build A] (*.DAT)

Compatible Programs

See Also