The Centurion Defender of Rome data file format
Posted: June 14th, 2022, 5:31 am
Centurion Defender of Rome is a late 80's/early 90's game which (at least the DOS version) appears to use *.dir and *.dat files to store *.bin/.cmb/.lzw sub-files. The *.dir files appear to be structures as follows:
for each listed sub-file a 20 byte record:
uint32: offset
uint16: length
13 bytes: null padded 8.3 filename with terminating null
byte: sub-file type
The above reflects my understanding of the *.dir files. Each data file has the same names as the *.dir files except for the .dat extension.
Attached to this post is vb.net code file containing the data file extractor I wrote. While it appears to work I am not entirely certain. Could someone verify this?
for each listed sub-file a 20 byte record:
uint32: offset
uint16: length
13 bytes: null padded 8.3 filename with terminating null
byte: sub-file type
The above reflects my understanding of the *.dir files. Each data file has the same names as the *.dir files except for the .dat extension.
Attached to this post is vb.net code file containing the data file extractor I wrote. While it appears to work I am not entirely certain. Could someone verify this?