DAT Format (Centurion - Defender of Rome)

From ModdingWiki
Jump to navigation Jump to search
DAT Format (Centurion - Defender of Rome)
Format typeArchive
Max filesUnlimited
File Allocation Table (FAT)External
Filenames?Yes, 8.3
Supports compression?Yes
Supports encryption?No
Supports subdirectories?No
Hidden data?Yes

The Centurion - Defender of Rome DAT Format is used to store game data. Files can be compressed but the algorithm is currently unknown.

The format uses two files with the same base name, but different extensions. The .dir extension stores the filenames and attributes, and the .dat extension stores the actual data for each file.

File format

File entry

The .dir file consists of a list of entries, one for each file. Each entry is 20 bytes in length, so dividing the file size by 20 will reveal the number of files in the archive.

Note that a 16-bit integer is used for the file size, preventing files larger than 64 kB from being stored in the archive.

Data type Name Description
UINT32LE offset Offset of the file's data, relative to the start of the .dat file
UINT16LE size File's size on disk (compressed size, if compressed)
char[13] filename Filename, must be null-terminated.
UINT8 attributes Bitfield: 0x80 = compressed, 0x40 = CBM file?

The file data is stored in the .dat file, at the given offsets and lengths.


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
Camoto/gamearchive.js AnyYesNoYesYesNoNoN/A