DAT Format (Centurion - Defender of Rome)
The DAT Format in Centurion: Defender of Rome 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.
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.
|Offset of the file's data, relative to the start of the .dat file
|File's size on disk (compressed size, if compressed)
|Filename, must be null-terminated.
|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.
|Decompress on extract?
|Compress on insert?
|Access hidden data?