DereTore
DereTore copied to clipboard
How do I make a hca file header that is a C8 C3 C1 file?
I extracted some hca from the game, I found that their file headers are C8 C3 C1, now how do I generate such a file, the file headers I make using hcaenc are 48 43 41
Test hca download link https://www.lanzous.com/i4a3upc
The headers are simply XORed with 0x80
. You can write a simple program, or use any hex editor to do that. By the way, most HCA decoders accept both c8 c3 c1
and 48 43 41
.
I think what you generated was simply unencrypted HCA, while the HCA extracted from the game is encrypted - therefore you should then encrypt your generated HCA with correct key (otherwise you'll get incorrect waveform, which sounds like unpleasant noise) if you want to replace such audio resource in the game.