Skip to content

.CPK building TOC_HDR + ETOC (End of file) #13

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
rocknard opened this issue Feb 20, 2025 · 0 comments
Open

.CPK building TOC_HDR + ETOC (End of file) #13

rocknard opened this issue Feb 20, 2025 · 0 comments

Comments

@rocknard
Copy link

rocknard commented Feb 20, 2025

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

tt1_ctr.cpk.txt

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

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant