Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

trouble with a .awb file #8

Closed
GoldieLeGenie opened this issue Jul 30, 2023 · 2 comments
Closed

trouble with a .awb file #8

GoldieLeGenie opened this issue Jul 30, 2023 · 2 comments

Comments

@GoldieLeGenie
Copy link

Hi, great job! I just have a small issue with an AWB file that cannot be decrypted correctly. Do you have a solution for this file It would be really awesome ? https://www.mediafire.com/file/7tefsy31qy3wiqq/voice_r01.awb/file

@Youjose
Copy link
Owner

Youjose commented Jul 30, 2023

Hello, HCA files are encrypted using a key, and you would need this key to decrypt it, I searched a bit and managed to find that this AWB is from a game called "One Piece Treasure Cruise", and the key they use is 1224 or 0x04C8, with this information you can extract the audio by running this:

from PyCriCodecs import *
awbobj = AWB("voice_r01.awb") # Given that the this script is in the same folder with the file.
awbobj.extract(True, 1224)

This will extract the awb. Better yet, if you have an ACB that is with this AWB you can get the original filename of the audio, but currently my library does not support that, so I would suggest using a better tool called VGMStream, it also can extract this awb with no problems!

Hope this helps, tell me how it goes.

@GoldieLeGenie
Copy link
Author

Yep, it was from 'One Piece Treasure Cruise,' and the code you gave me works perfectly fine. Thank you so much! Have a great day :)

@Youjose Youjose closed this as completed Jul 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants