PyCriCodecs
PyCriCodecs copied to clipboard
.CPK building TOC_HDR + ETOC (End of file)
Hello.
Edit: using "mode=1" now works on my game, but unsure if the "header" or ETOC are "properly" done. Strange, because on the "wiki" page the mode 2 include the ETOC, but on mode 1 not (mode 1 worked for me. it was commented on cpk.py that mode=1 maybe include ETOC).
I was building a .cpk with TOC+ETOC (end of file) mode=2 and even can't open with a cpk file viewer.
I was checking the CPKmode for building .cpk and i checked a .cpk i have with this structure:
CPK_HDR
TOC_HDR
CONTENT_OFFSET
common/lipsync/a01a_0000_hina_01.p3lip
common/lipsync/a01a_0020_hina_01.p3lip
common/lipsync/a01a_0020_hina_02.p3lip
common/lipsync/a01a_0020_hina_03.p3lip
common/lipsync/a01a_0020_hina_04.p3lip
common/lipsync/a01a_0020_hina_05.p3lip
...
...
ctr/?????????CTR?
ctr/fix.xr
ETOC_HDR
The mode 2 is the most "close" to the structure (TOC+ITOC on the start of file), but my file doesn't use ITOC, only TOC+ETOC (end of file).
Extracted from the .cpk: ETOC_HDR.zip TOC_HDR.zip
CPK versions i saw:
CPKFBSTD1.30.07, DLL3.00.07 CPKMC2.45.00, DLL3.15.00