HCA (from AWB/AFS2) file convert soft need help by akanerin7 at 6:56 AM EDT on June 21, 2017
currently im converting this file (BGM) for playing purposes.. can someone help me? its from Fate Grand Order (Android game).
sample:https://my.pcloud.com/publink/show?code=XZJh6GZLJodIog2eqS1zfnXxAuyP0MvprMX
allready tried hca2wav but no luck.
by Infernus Animositas at 7:19 AM EDT on June 21, 2017
You need to identify the 16-bit encryption key to be able to decrypt the HCA files and then use that key to successfully decode the HCA to WAV using HCA Decoder.

Android unity games usually feature them somewhere within the APK.
by akanerin7 at 7:24 AM EDT on June 21, 2017
allready have decryption key ( 0000000000003039 ) but don't know to use it.. how? (noob sorry)
by Infernus Animositas at 7:37 AM EDT on June 21, 2017
That's definitely not the decryption key at least for that file. I just tried that and it outputs junk data.

To input the decryption key, just drag and drop it onto the .bat file it should be the fifth input (or the last input) before HCA decoder attempts to decode the file.

edited 7:38 AM EDT June 21, 2017
by akanerin7 at 7:45 AM EDT on June 21, 2017
i see your post on search Infernius... how do you find the decryption key-code in old times? looking on acb or manually?
by Infernus Animositas at 9:25 AM EDT on June 21, 2017
For Android games, you need to open up the APK.

There should be a reference file where the audio data is also placed (in this instance it is the file "fgoaudioinfo.bytes" for Fate/Grand Order that we are interested in)

Now, checking through the level# files should reference that "fgoaudioinfo.bytes" file. If not there, then the "mainData" file for other Android games.

Looking through the level0 file reveals a 19 digit decimal number "9117927877783581796" just before the reference to "fgoaudioinfo.bytes"

Converting this from a decimal into a hexadecimal number gives you a 16-bit key which SHOULD be the decryption key. That being "7E89631892EBF464" but this key does not seem to work on the HCA you provided so I am not sure.

Maybe the game downloads additional data and the files in the .awb/.acb files inside the APK are merely place holders?
by akanerin7 at 9:41 AM EDT on June 21, 2017
no.. it doesn't include additional decryption file only game data (as i decompile/looking on whole data in emulatr).. still not understand it very well but hey have a similliar pattern for all files (mostly).. i guest its have same key and still searching for it.. (i hate to admit they use some kind encryption too on sprites..)
by datschge at 5:06 PM EDT on June 21, 2017
@Infernus Animositas - your key actually works.

@akanerin7 - For vgmstream/foobar you add a .hcakey file that contains just the key. Like this. If you are done with the set please consider contributing it (native hca files, not converted) at vgm.hcs64.com.
by Infernus Animositas at 6:00 PM EDT on June 21, 2017
Weird, I just tried it from the files in the APK and it didn't work for me.

But then again I only get 8 HCA files when I extract the .AWB so again I am assuming it probably downloads additional data once the game is running.

Also, your .hcakey starts with 7F instead of 7E.
by datschge at 6:59 PM EDT on June 21, 2017
That's funny, the first byte seems to have no effect indeed. Anyway if you need a proof that the hca file akanerin7 shared works, here's a quick export.
by Infernus Animositas at 7:38 PM EDT on June 21, 2017
Just realised that the HCA decoder v1.20 doesn't seem to be able to decode the file but vgmstream can and that's the issue I was having.
by akanerin7 at 4:55 AM EDT on June 22, 2017
@datschge thx for verifying it.. its was work and i can play most of the file now (some of them aren't work like this one (lenght are 3 minutes probably a bug? could you verify this aswell?)
here the sample that doesn't work: https://my.pcloud.com/publink/show?code=XZvjAGZAm5xQ501f08BOQltFc91OY1Kg5i7

i would upload it on but got low-speed connection here with a terrible issue with upload.. probably i can upload it in my cloud per-file then pack it digitally as zip.
by datschge at 8:57 AM EDT on June 22, 2017
Seems like what Infernus Animositas indicated is correct, the game uses different keys for different parts. Unfortunately it won't run on my Bluestacks so I can't rip it on my own. Ideally somebody who also knows how to find the keys does a rip of this.

If you like to proceed anyway you can share the remaining individual hca files (how many are there?), then I'll assemble then. For the non-working files maybe ssh can help out.

edited 9:02 AM EDT June 22, 2017
by akanerin7 at 9:00 AM EDT on June 22, 2017
use this emulator (with backup) :
http://pc.cd/9Pw7 (install memu,rc5 then import)
(its have old apk update it first)
to dissamble them just open-up vmdk with 7-zip the navigate to game data (you should find it easily)
by akanerin7 at 9:00 AM EDT on June 22, 2017
(sorry for double post)
no just that file can't be played due its 3 minute lenght.. all other file are playable (even newer audio)
by akanerin7 at 9:05 AM EDT on June 22, 2017
500+(CPK include voice over and BGM) over hundred audio(.hca files) if i extract them, it can be played except 3 minutes lenght files.
i would upload it soon on pcloud slowly.. i will inform you in here datsch, if you want more faster way probably you can dissamble by your-own way since the game use somekind interesting encryption on its core files (sprite,text,images,script)
by datschge at 9:32 AM EDT on June 22, 2017
Thanks for sharing, but unfortunately I'm unable to run MEmo on my system.
by akanerin7 at 2:36 PM EDT on June 22, 2017
ah nevermind the file(00048_BGM_EVENT_44) can play perfectly (i decompile them again) here some uploaded file i share with my friend (fb) and fellow on group :
http://pc.cd/p3q7
thanks for you hardwork... the one who make this things possible as a freakout to find out audio does get locked with terrible encryption.


Go to Page 0

Search this thread

Show all threads

Reply to this thread:

User Name Tags:

bold: [b]bold[/b]
italics: [i]italics[/i]
emphasis: [em]emphasis[/em]
underline: [u]underline[/u]
small: [small]small[/small]
Link: [url=http://www.google.com]Link[/url]

[img=https://www.hcs64.com/images/mm1.png]
Password
Subject
Message

HCS Forum Index
Halley's Comet Software
forum source