WAD: Difference between revisions

From Spiral Framework
Jump to navigation Jump to search
(Filled out the basic summary)
 
(10 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Infobox
{{File Format
|title = WAD
|TYPE = [[:Category:Archive Formats|Archive Format]]
|label2 = Type
|SYSTEM = Steam
|data2 = [[:Category:Archives|Archive Format]]
|TITLES = [[Danganronpa: Trigger Happy Havoc|Danganronpa: Trigger Happy Havoc]] and [[Danganronpa 2: Goodbye Despair|Danganronpa 2: Goodbye Despair]]
|label3 = System
|CREDIT = [https://github.com/TcT2k/HLMWadExplorer TcT2k/HLMWadExplorer]
|data3 = Steam
|SIGNEDNESS = Unsigned
|label4 = Applicable Titles
|ENDIANNESS = [[wikipedia:Little Endian|Little-Endian]]
|data4 = [[wikipedia:Danganronpa: Trigger Happy Havoc|Danganronpa: Trigger Happy Havoc]] and [[wikipedia:Danganronpa 2: Goodbye Despair|Danganronpa 2: Goodbye Despair]]
|STATUS = 100%
|label5 = Credit
|data5 = [https://github.com/TcT2k/HLMWadExplorer TcT2k/HMLWadExplorer]
}}
}}
WAD files are used by the Steam releases of [[Danganronpa: Trigger Happy Havoc]] and [[Danganronpa 2: Goodbye Despair]]. The WAD files contain all of the files for their respective game. The format is proprietary, created by Abstraction Games who are responsible for the PC ports of Trigger Happy Havoc and Goodbye Despair.


==Specification==
==Specification==
{| class="wikitable"
{| class="wikitable"
!colspan="6"|WAD File
|-
!Offset
!Offset
!Size
!Size
Line 55: Line 56:
|Number of files
|Number of files
|23871
|23871
|Unsigned [[wikipedia:Little Endian|Little-Endian]]
|
|-
|-
|...
|...
Line 83: Line 84:
|
|
|-
|-
|}
{| class="wikitable"
!colspan="6"|File Entry
|-
!Offset
!Size
!Data Type
!Function
!Example Value
!Notes
|-
|0x00
|4 Bytes
|Int
|File Name Length
|3
|
|-
|0x04
|<code>File Name Length</code>
|String
|File Name
|Dr1
|Not NULL terminated
|-
|0x04+<code>File Name Length</code>
|8 Bytes
|Long/Int
|File Size
|4480237
|
|-
|0x0C+<code>File Name Length</code>
|8 Bytes
|Long/Int
|File Offset
|0
|The offset is from the beginning of the file data section in the parent WAD
|}
{| class="wikitable"
!colspan="6"|Directory Entry
|-
!Offset
!Size
!Data Type
!Function
!Example Value
!Notes
|-
|0x00
|4 Bytes
|Int
|Dir Name Length
|3
|
|-
|0x04
|<code>Dir Name Length</code>
|String
|Dir Name
|Dr1
|Not NULL terminated
|-
|0x04+<code>Dir Name Length</code>
|4 Bytes
|Int
|Number of subfiles
|8
|-
|0x08+<code>Dir Name Length</code>
|Varying
|Subfile Entries
|Subfiles
|
|
|}
{| class="wikitable"
!colspan="6"|Subfile Entry
|-
!Offset
!Size
!Data Type
!Function
!Example Value
!Notes
|-
|0x00
|4 Bytes
|Int
|Name Length
|4
|-
|0x04
|<code>Name Length</code>
|String
|Subfile Name
|data
|Not NULL terminated
|-
|0x04+<code>Name Length</code>
|1 Byte
|Boolean
|Is Directory
|1
|"Truthy"; 1 for true, 0 for false
|}
|}


==Uses==
==Uses==
Game data is spread across 4 WAD files which serve different purposes.
'''dr1_data''' or '''dr2_data''' contains general data for the game such as models, audio and textures.<br/>
'''dr1_data_keyboard''' or '''dr2_data_keyboard''' contains general data related to the mouse and keyboard controls for the games.<br/>
'''dr1_data_keyboard_us''' or '''dr2_data_keyboard_us''' contains English localisation specific data for the mouse and keyboard controls for the games.<br/>
'''dr1_data_us''' or '''dr2_data_us''' contains English localisation specific data for the game such as script files, translated textures and translated cutscenes.<br/>
[[Category:Archive Formats]] [[Category:Steam Formats]] [[Category:Danganronpa: Trigger Happy Havoc]] [[Category:Danganronpa 2: Goodbye Despair]] [[Category: Technical]]

Latest revision as of 16:29, 19 April 2019

WAD
TypeArchive Format
SystemSteam
Applicable TitlesDanganronpa: Trigger Happy Havoc and Danganronpa 2: Goodbye Despair
CreditTcT2k/HLMWadExplorer
Default SignednessUnsigned
Default EndiannessLittle-Endian
Implementation Status100%

WAD files are used by the Steam releases of Danganronpa: Trigger Happy Havoc and Danganronpa 2: Goodbye Despair. The WAD files contain all of the files for their respective game. The format is proprietary, created by Abstraction Games who are responsible for the PC ports of Trigger Happy Havoc and Goodbye Despair.

Specification

WAD File
Offset Size Data Type Function Example Value Notes
0x00 4 Bytes String/Data Magic Number "AGAR" or 0x41 0x47 0x41 0x52
0x04 4 Bytes Int Major Version 1
0x08 4 Bytes Int Minor Version 0
0x0C 4 Bytes Int Header Size 0 Danganronpa does not seem to support WAD headers
0x10 Header Size Data Header
... 4 Bytes Int Number of files 23871
... Varying File Entries Files
... 4 Bytes Int Number of directories 40
... Varing Directory entries Directories
... Varying Data File Data
File Entry
Offset Size Data Type Function Example Value Notes
0x00 4 Bytes Int File Name Length 3
0x04 File Name Length String File Name Dr1 Not NULL terminated
0x04+File Name Length 8 Bytes Long/Int File Size 4480237
0x0C+File Name Length 8 Bytes Long/Int File Offset 0 The offset is from the beginning of the file data section in the parent WAD
Directory Entry
Offset Size Data Type Function Example Value Notes
0x00 4 Bytes Int Dir Name Length 3
0x04 Dir Name Length String Dir Name Dr1 Not NULL terminated
0x04+Dir Name Length 4 Bytes Int Number of subfiles 8
0x08+Dir Name Length Varying Subfile Entries Subfiles
Subfile Entry
Offset Size Data Type Function Example Value Notes
0x00 4 Bytes Int Name Length 4
0x04 Name Length String Subfile Name data Not NULL terminated
0x04+Name Length 1 Byte Boolean Is Directory 1 "Truthy"; 1 for true, 0 for false

Uses

Game data is spread across 4 WAD files which serve different purposes.

dr1_data or dr2_data contains general data for the game such as models, audio and textures.
dr1_data_keyboard or dr2_data_keyboard contains general data related to the mouse and keyboard controls for the games.
dr1_data_keyboard_us or dr2_data_keyboard_us contains English localisation specific data for the mouse and keyboard controls for the games.
dr1_data_us or dr2_data_us contains English localisation specific data for the game such as script files, translated textures and translated cutscenes.