DAT Format (California Games II)

From ModdingWiki
Jump to navigation Jump to search
DAT Format (California Games II)
Format typeArchive
Max files65,536
File Allocation Table (FAT)Beginning
Filenames?Yes, 8.3
Metadata?None
Supports compression?Yes
Supports encryption?No
Supports subdirectories?No
Hidden data?Yes
Games

The California Games II DAT Format is used to store data for each sub-game. Each file appears to be compressed but the algorithm is currently unknown.

File format

Header

The header indicates how many files are in the archive.

Data type Name Description
UINT16LE fileCount Number of files

The header is followed immediately by a file entry structure, repeated fileCount times.

File entry

A file entry consists of the filename and its size, both before and after decompression.

Data type Name Description
char[8] filename The part of the filename before the dot, not null-terminated but padded with 0x00 bytes if less than eight characters
UINT8 pad Always 0x01
char[3] extension The part of the filename after the dot, null-padded if under three characters but not null-terminated
UINT32LE offset Offset of the file's data, relative to the start of the archive file
UINT32LE decompressedSize File size in bytes after decompression
UINT32LE compressedSize File size in bytes before decompression (how much space it actually takes up in the archive file)

After the last file entry the offset of the first file is typically reached, and the data for each file begins.

Tools

There are currently no known tools that work with this format.