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

HCACC.exe #54

Open
Lakoyo opened this issue Apr 8, 2019 · 5 comments
Open

HCACC.exe #54

Lakoyo opened this issue Apr 8, 2019 · 5 comments

Comments

@Lakoyo
Copy link

Lakoyo commented Apr 8, 2019

I want to encrypt .hca file with custom key 14121473. how to write command correctly?
hcacc.exe in.hca out.hca -ot 56 -i1 00d77a01 -i2 ??? -o1 ??? -o2 ??? Please help?

@Lakoyo Lakoyo changed the title HCAEnc.exe HCACC.exe Apr 8, 2019
@hozuki
Copy link
Member

hozuki commented Apr 8, 2019

Since the questions asked are very similar, you can take a look at #51.

@Lakoyo
Copy link
Author

Lakoyo commented Apr 8, 2019

Yes but still I don't know how to write command line correctly works for it. Please help me for typing :)

@Lakoyo
Copy link
Author

Lakoyo commented Apr 10, 2019

Help please

@MiniatureHusk
Copy link

@Lakoyo:
in my case, it worked by drag and dropping HCACC.exe to the CMD window. I made sure to leave a space after ".exe" though. And then drag and drop your HCA file, this should specify exactly to where the input HCA file is. And if you want to save it next to your input HCA, then copy-paste the path of your input HCA and change the HCA's file name. So it should look like this

C:\Users\CURRENT USER>D:\More\DereTore-master\Apps\Hcacc\bin\Release\hcacc.exe "D:\more\custom_song\input hca.hca" "D:\more\custom_song\output hca.hca" -ot 0 and just hit enter.

And actually, I want to point out that @hozuki 's answer on #51 raised another question for me. Which 16-hex halves go to where? I got a bit confused when they considered the second half of the key to be 00000000. Now, my problem would be,
what if the custom key's hex value was longer?
I'll make my own custom key for this example:
91280410300 = 1540BC86BC
so is key no. 1 00000015? or 40BC86BC?
or is key no. 2 40BC86BC? or 00000015?
thanks for any future clarification!

@hozuki
Copy link
Member

hozuki commented Feb 28, 2021

@Lakoyo:
in my case, it worked by drag and dropping HCACC.exe to the CMD window. I made sure to leave a space after ".exe" though. And then drag and drop your HCA file, this should specify exactly to where the input HCA file is. And if you want to save it next to your input HCA, then copy-paste the path of your input HCA and change the HCA's file name. So it should look like this

C:\Users\CURRENT USER>D:\More\DereTore-master\Apps\Hcacc\bin\Release\hcacc.exe "D:\more\custom_song\input hca.hca" "D:\more\custom_song\output hca.hca" -ot 0 and just hit enter.

And actually, I want to point out that @hozuki 's answer on #51 raised another question for me. Which 16-hex halves go to where? I got a bit confused when they considered the second half of the key to be 00000000. Now, my problem would be,
what if the custom key's hex value was longer?
I'll make my own custom key for this example:
91280410300 = 1540BC86BC
so is key no. 1 00000015? or 40BC86BC?
or is key no. 2 40BC86BC? or 00000015?
thanks for any future clarification!

Key 1 is the lower 32 bits (40bc86bc) and key 2 is the higher 32 bits (00000015).

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

3 participants