1
Offtopic / Re: Cannon Fodder remake - WE NEED HELP!
« on: June 02, 2013, 05:16:52 pm »
the file format of the cf_eng.dat actually isn't very difficult.
The first long is the total header chunk size, in this case 0x156F
The file entries are parsed as:
1 byte: string length
x bytes: string (filename)
1 long: offset in the file
1 long: length of the data part (filesize)
and so on
so first record is:
Filename: INT26.VOC
Offset: 0x156F
Filesize: 0xCF7
second file:
Filename: MOR28.VOC
Offset: 0x2266
Filesize: 0xB79
and so on
The first long is the total header chunk size, in this case 0x156F
The file entries are parsed as:
1 byte: string length
x bytes: string (filename)
1 long: offset in the file
1 long: length of the data part (filesize)
and so on
so first record is:
Filename: INT26.VOC
Offset: 0x156F
Filesize: 0xCF7
second file:
Filename: MOR28.VOC
Offset: 0x2266
Filesize: 0xB79
and so on