xmoezzz / KrkrExtract

A tool that can extract and pack krkr2 and krkrz's xp3 files
1.23k stars 122 forks source link

Cannot be extracted #130

Open niohsan opened 2 years ago

niohsan commented 2 years ago

【天神乱漫 Happy Go Lucky!!】

I tried to extract with the latest KrkrExtract.Lite.exe, but an error is displayed and the extraction fails.

a1

We apologize for the inconvenience, but thank you for your cooperation.

jszhtian commented 2 years ago

duplicate issue 129 For old version, FILE chunk contains the MD5 hashed filename, and a special chunk contains the encrypted file name.(RiddleJoker & CafeStella) However due to the issue 129, it looks that engine uses some serialization object to store addition information and doesn't decrypt all filename at once.

For now, the easiest option is that write a dll to Hook TVPCreateStream and collect all file paths (e.g. arc://./appconfig.tjs). Then use TVPCreateIStream to clone a stream. After that, use IStream::Read() to extract the content. The main problem about this method is you can not guarantee that all files have been extracted.