Code: Select all
# CFC.DIG
# script for QuickBMS http://quickbms.aluigi.org
get INFO_LIMIT asize
for i = 0
savepos TMP
if TMP u>= INFO_LIMIT
break
endif
get OFFSET long
get SIZE long
get CHANS short
get TYPE short
get FREQ long
math OFFSET * 0x800
if SIZE != 0
if i == 0
math INFO_LIMIT = OFFSET
endif
string NAME p "%d/%08x_%d_%d.raw" TYPE i FREQ CHANS
log NAME OFFSET SIZE
math i + 1
endif
next
However, I'm not sure if it's a generic script for all .DIG files or if it was written for a specific game. Upon extraction I get a folder with audio files in .raw and the IECS header (I believe this folder is right, but it's just 42 MB of the 352 MB of the whole file). But then the second folder has lots of unidentified .raw files without header. This game stores all data inside this CFC.DIG, except cutscenes and voiceover audio which are in separate files. So I expected to extract files for textures, 3D models and dialogue, and not just audio.
I don't know if the script was simply written for a different game or if those .raw files are really the only thing that can be extracted.
This is the file I'm trying to extract:
https://drive.google.com/open?id=0B8-7F ... mNUcWdhcEk
It's from the PS2 game Kami o Tsugu Shoujo (SLPM_660.73). The first game of this series also stored all data in a .DIG file, only that it was called CDDATA.DIG.