DDI Wad: Difference between revisions

From Research Realm
No edit summary
No edit summary
Line 1: Line 1:
'''DDI Wad''' is a file format developed by [[Data Design Interactive]] for storing files in games. The format was first used in [[Wikipedia:Conquest Earth|''Conquest Earth'']]. DDI Wad files usually use the file extension '''.wad'''. The format is unrelated to Doom WAD or Wii WAD files.
'''DDI Wad''' is an [[Wikipedia:Archive file format|archive file format]] developed by [[Data Design Interactive]] for storing files in video games. The format was first used in their 1997 game [[Wikipedia:Conquest Earth|''Conquest Earth'']]. DDI Wad files usually use the file extension '''.wad'''. The format is unrelated to [[Wikipedia:Doom WAD|Doom WAD]] or Wii WAD files.


The format changed in different games. In Conquest Earth for instance, the header info is at the end of the file.
== File formats ==
=== ''LEGO Rock Raiders'' PC WAD ===
Format for the PC WAD format used in the Windows version of [[LEGO Rock Raiders (video game)|''LEGO Rock Raiders'']].<ref name="Format WAD"/>
 
''LEGO Rock Raiders'' uses two WAD files by default. LegoRR0.wad stores the majority of the game's data, while LegoRR1.wad stores the [[Main Lego Config File]] and language-related files. Additional streamed files are also stored in the Data folder, while streamed FMV files are stored in a separate Data folder on the game's disc.
 
The game searches for up to ten WAD files while loading, LegoRR0.wad to LegoRR9.wad. The WAD files do not have to have sequential numbers. The contents of WAD files with higher numbers take precedence over those with lower numbers (so if a file with the same name and path is stored in LegoRR0 and LegoRR1, only the file in LegoRR1 will be loaded).
 
{| class="wikitable"
|+ Caption text
|-
! Type !! Value !! Description
|-
| char[4] || "WWAD" || [[Wikipedia:ASCII|ASCII]] file signature. Always WWAD for PC WAD files.
|-
| uint32 || Count || Number of file entries in the WAD file.
|-
| cstring[] || Names || Relative file entry paths within the WAD file ("Relative directories" or "Reldirs"). Example: <code>Languages\ObjectiveText.txt</code>.
|-
| cstring[] || BuildNames || Absolute paths of files used when
building the WAD file ("Absolute directories" or "Absdirs"). Example: <code>\\ROBW\C\Dev\SourceSafe\Lego\Languages\0009-English\Data\Languages\ObjectiveText.txt</code>.
|-
| Entry[] || BuildNames || File entry storage metadata
(Location, size, and storage format).
|-
|}


Layout for LRR PC.<ref name="Format WAD"/>
{| class="wikitable"
{| class="wikitable"
|+ Caption text
|+ Caption text
|-
|-
! Type !! Length !! Description
! Type !! Value !! Description
|-
|-
| char[4] || 4 bytes (0x00–0x03) || [[Wikipedia:ASCII|ASCII]] file signature. Always WWAD for PC WAD files.
| uint32 || Flags || Flag determining
<code>01</code> for Store (uncompressed), <code>02</code> for [https://segaretro.org/Rob_Northen_compression Rob Northern compression] (RNC). The game does not check for the Store flag, rather it checks ''against'' the RNC flag. RNC is not known to be used in ''LEGO Rock Raiders''.
|-
|-
| uint32 || 4 bytes (0x04–0x07) || Number of file entries in the WAD file.
| uint32 || PackedSize || Example
|-
|-
| cstring[] || variable || Entry file paths relative to inside the WAD file ("Relative directories" or "Reldirs")
| uint32 || UnpackedSize || Example
|-
|-
| cstring[] || Example || Example
| uint32 || Offset || Example
|}
|}
=== PlayStation Padded Wad ===


== References ==
== References ==

Revision as of 04:24, 27 July 2023

DDI Wad is an archive file format developed by Data Design Interactive for storing files in video games. The format was first used in their 1997 game Conquest Earth. DDI Wad files usually use the file extension .wad. The format is unrelated to Doom WAD or Wii WAD files.

File formats

LEGO Rock Raiders PC WAD

Format for the PC WAD format used in the Windows version of LEGO Rock Raiders.[1]

LEGO Rock Raiders uses two WAD files by default. LegoRR0.wad stores the majority of the game's data, while LegoRR1.wad stores the Main Lego Config File and language-related files. Additional streamed files are also stored in the Data folder, while streamed FMV files are stored in a separate Data folder on the game's disc.

The game searches for up to ten WAD files while loading, LegoRR0.wad to LegoRR9.wad. The WAD files do not have to have sequential numbers. The contents of WAD files with higher numbers take precedence over those with lower numbers (so if a file with the same name and path is stored in LegoRR0 and LegoRR1, only the file in LegoRR1 will be loaded).

Caption text
Type Value Description
char[4] "WWAD" ASCII file signature. Always WWAD for PC WAD files.
uint32 Count Number of file entries in the WAD file.
cstring[] Names Relative file entry paths within the WAD file ("Relative directories" or "Reldirs"). Example: Languages\ObjectiveText.txt.
cstring[] BuildNames Absolute paths of files used when

building the WAD file ("Absolute directories" or "Absdirs"). Example: \\ROBW\C\Dev\SourceSafe\Lego\Languages\0009-English\Data\Languages\ObjectiveText.txt.

Entry[] BuildNames File entry storage metadata

(Location, size, and storage format).

Caption text
Type Value Description
uint32 Flags Flag determining

01 for Store (uncompressed), 02 for Rob Northern compression (RNC). The game does not check for the Store flag, rather it checks against the RNC flag. RNC is not known to be used in LEGO Rock Raiders.

uint32 PackedSize Example
uint32 UnpackedSize Example
uint32 Offset Example

PlayStation Padded Wad

References

  1. Jordan, Robert [trigger_segfault] (9 July 2021). "Format: WAD file". LEGO Rock Raiders Assembly Analysis wiki. GitHub. Archived from the original on 15 July 2023.