Unpacking the archives .hnk

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
Vlalchinanya
Posts: 18
Joined: Mon Apr 27, 2020 5:05 pm

Unpacking the archives .hnk

Post by Vlalchinanya »

Hi, everybody. I am the first time on the forum, I ask for your help. There is a game Barbie and Her Sisters: Puppy Rescue, the fact is that I am interested in models from this game and would like to get them, but they are contained in archives with the extension .hnk and I have no idea how to unpack them. Ninja Ripper is not an option, since I need models with a rig. Example of an archive with models: https://drive.google.com/open?id=14QuL7 ... 22k08t_pV0
Thank you in advance с:
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Unpacking the archives .hnk

Post by aluigi »

http://aluigi.org/bms/barbie_hnk.bms

Not sure if the extracted data is useful since they are not known format (usually just raw data).
Vlalchinanya
Posts: 18
Joined: Mon Apr 27, 2020 5:05 pm

Re: Unpacking the archives .hnk

Post by Vlalchinanya »

aluigi wrote:http://aluigi.org/bms/barbie_hnk.bms

Not sure if the extracted data is useful since they are not known format (usually just raw data).


Oh thanks, but will this script work on other files of the same game with the same extension?
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Unpacking the archives .hnk

Post by aluigi »

Just try and if doesn't work upload the hnk file that gives the error.
Vlalchinanya
Posts: 18
Joined: Mon Apr 27, 2020 5:05 pm

Re: Unpacking the archives .hnk

Post by Vlalchinanya »

aluigi wrote:Just try and if doesn't work upload the hnk file that gives the error.


Yes, this script works on all game files, but what can I do with files that don't have an extension? These files clearly contain something, because they can reach up to 10 MB in size.
Recently I tried to open the same files with a script from this theme: viewtopic.php?t=173 and unlike the script for the game Barbie, this script unpacked like this:
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Unpacking the archives .hnk

Post by aluigi »

The files have no name stored in the archive, so the script just assign a guessed extension.
If you have no extension you can only try to open them with a hex editor and checking if you can recognize something.
It's a big problem if they are custom formats or raw data