crimsoncantab / aok-hotkeys

Hotkey Editor for Age of Empires II
Other
25 stars 9 forks source link

Decompressed version of Hotkey file #50

Closed gregstein closed 6 years ago

gregstein commented 6 years ago

Hello,

Could you please share the decompressed version of the hotkey file.

Thank you,

crimsoncantab commented 6 years ago

@gregstein , what version of the file? There's various versions with slightly different formatting depending on what version of AoK you are using. Do you have a particular *.hki file that you want to decompress?

Are you aware that the file is in binary format? Even uncompressed, it's still unreadable without a hex editor, and even then you need to know how the binary data is structured.

If you have a particular *.hki file you want to decompress, you can use the decompress() method with the compressed file as input.

The hkizip module that contains that method is runnable; you can create a decompressed file by running hkizip.py d < {infile} > {outfile} where {infile} is the path to your compressed file, and {outfile} is what you want to call the decompressed output.

gregstein commented 6 years ago

Thank you very much for this !!! But The output of file is empty. If you don't mind I will open a new issue to explain what I want to do.