DAT Format (Centurion - Defender of Rome)
Format type | Archive |
---|---|
Max files | Unlimited |
File Allocation Table (FAT) | External |
Filenames? | Yes, 8.3 |
Metadata? | None |
Supports compression? | Yes |
Supports encryption? | No |
Supports subdirectories? | No |
Hidden data? | Yes |
Games |
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.
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.
Tools
The following tools are able to work with files in this format.
Name | Platform | Extract files? | Decompress on extract? | Create new? | Modify? | Compress on insert? | Access hidden data? | Edit metadata? | Notes |
---|---|---|---|---|---|---|---|---|---|
Camoto/gamearchive.js | Any | Yes | No | Yes | Yes | No | No | N/A |