Noesis helped me to extract a file called HP.CPK (under USRDIR\). I got a bunch of folders and .bin/.dlz files, which I don't know how to open. For example, there are a bunch of .dlz files under HP_files\btl\chr\--I guess these are character image/3D model files. Then I tried to use QuickBMS. Since I don't know the compression algorithm, I used the reverse engineering method shown at http://aluigi.altervista.org/quickbms/comtype_scan.htm. However, none of the 500 files generated by comtype_scan2.bms + comtype_scan2.bat seems to make any sense like those described in the example. Now I am stuck, not sure how to proceed.
Please advise. Thanks!
P.S. a sample .dlz file is attached for you to take a look.
comtype saint_seya # lzss "12 4 2 2 0" or puyo_lz00 (LZSS with init 0x00) get SIZE long savepos OFFSET get ZSIZE asize math ZSIZE -= OFFSET clog MEMORY_FILE OFFSET ZSIZE SIZE
get OFFSET long MEMORY_FILE for i = 0 get NEXT_OFFSET long MEMORY_FILE if NEXT_OFFSET == 0 break endif xmath SIZE "NEXT_OFFSET - OFFSET" log "" OFFSET SIZE MEMORY_FILE math OFFSET = NEXT_OFFSET next i
You mean simply save the code you posted as a .bms file (e.g., hp.bms)? I ran: "quickbms hp.bms c01001.dlz output" but only got the attached file. Am I supposed to get those .tga files from the compressed file? Did I do something wrong here (maybe missing a crucial step)?
ok I have updated the script to extract the files contained in it. Just some notes, these files are not ready to use, for example the first one probably contains some tgas (don't know if the original tga or some raw format), the 00000023.dat one contains a cpk archive but you need to cut the first 0x1040 bytes before unpacking it with cpk.bms. So it's necessary some manual editing before being able to use them.
As you suggested, I cut the first 0x1040 bytes from 00000023.dat and unpacked it using "quickbms cpk.bms 00000023.dat output." Script cpk.bms was found at http://aluigi.altervista.org/papers/bms/cpk.bms.
Now I have got a bunch of .vag files from 00000023.dat, and I don't know what to do with them. At the same time, I am not able to use other .dat files extracted from the original c01001.dlz although I know they may contain .tga files in some form. Am I missing some important information here? Even after I extracted those files, how could I make use of them?
VAG is the audio format used on PlayStation, there are programs to read them (vgmstream for example). For the other files, probably other users can help you. On PSP that's quite normal to have files that cannot be used immediately (no dds, png, wav, mp3 and other known formats).