Shaw's Nightmare Archive Format

From ModdingWiki
Jump to navigation Jump to search
Shaw's Nightmare Archive Format
Format typeArchive
Max files4,294,967,295
File Allocation Table (FAT)End
Filenames?Y
Metadata?None
Supports compression?No
Supports encryption?No
Supports subdirectories?No
Hidden data?Yes
Games

The Shaw's Nightmare Archive Format stores the archive headers first, file data next, and file index last.

File Format

Archive Header

If the header is not "DAT\x1a", it isn't a valid archive.

Data type Bytes Name Description
char[4] 4 magic Each archive starts with the magic/signature "DAT\x1a"
UINT16LE 2 numitems How many files in the archive
UINT32LE 4 index_offset Offset for the file index in the archive
UINT32LE 4 index_size size of the index in bytes

Total size of header is 14 bytes

File Header

File data is stored at the top of the archive after the header and before the file index.

Data type Bytes Name Description
char[13] 13 name Filenames are right padded with 0x0 to 13 bytes
BYTE[3] 3 padding 3 bytes of padding
UINT32LE 4 size Size of file
UINT32LE 4 offset Offset for the file.

Total size of header is 24 bytes

Tools

The following tools are able to work with files in this format.

Name PlatformExtract files? Decompress on extract? Create new? Modify? Compress on insert? Access hidden data? Edit metadata? Notes
SNE DOSYesN/ANoNoN/ANoN/A Coded in the Fennel language by parlortricks
SNP Windows/LinuxNoN/AYesNoN/ANoN/A Coded in the Fennel language by parlortricks