vn-tools / arc_unpacker

CLI tool for extracting images and sounds from visual novels.
GNU General Public License v3.0
562 stars 83 forks source link

Game request: [calme][160628]KARAKARA #47

Closed WorkingWarrior closed 8 years ago

WorkingWarrior commented 8 years ago

It seems that XP3 archives use different encryption key. Could you, please, add support for it? https://vndb.org/v18974

rr- commented 8 years ago

This is the old CXDEC in a new skin. I couldn't find the decryption parameters (namely the keys used to derive the "edge" between two encryption passes) in the game code, but I managed to obtain them via brute force nonetheless. This is surprising because these keys were easiest to get in previous CXDEC implementations.

@morkt it also seems as if CXDEC control block discovery needs adjustments:

  1. I couldn't find physical cxdec.tpm (I haven't bothered to look how the game actually ends up loading it).
  2. The block itself no longer begins with Encryption control block and contains random garbage instead.
  3. It's immediately followed by insufficient code space error message. Maybe this could be used to search for it.

Eventually rather than writing extra discovery bloat, I ended up just embedding the control block into the program.

Changes should be available in tonight's nightly build:

rr- commented 7 years ago

@WorkingWarrior I'm sorry, the builds seem to have been broken for about two weeks. The build 0.10.349 should work fine.

WorkingWarrior commented 7 years ago

Thanks for your work, I'll check it now. EDIT: Okay, everything's fine!