OpenCGSS / DereTore

Music and beatmap authoring toolkit for THE iDOLM@STER Cinderella Girls Starlight Stage (CGSS/DereSute/デレステ). / 偶像大师灰姑娘女孩星光舞台音乐&谱面制作工具箱
MIT License
185 stars 28 forks source link

How do I make a hca file header that is a C8 C3 C1 file? #55

Open huashao2019 opened 5 years ago

huashao2019 commented 5 years ago

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

hozuki commented 4 years ago

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.

segfault-bilibili commented 2 years ago

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.