[SOLVED] Icewind Dale - extract *.bif with chitin.key info

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
AlphaTwentyThree
Posts: 909
Joined: Sat Aug 09, 2014 11:21 am

[SOLVED] Icewind Dale - extract *.bif with chitin.key info

Post by AlphaTwentyThree »

Hi!

The Enhanced Edition of Icewind Dale saw an update in the bif file contents so an old bif extractor won't work anymore. Luigi's script doesn't use the chitin.key info (file names) to extract the bif contents. Is there a way to implement this key file into the script?
Here are some samples (the data\ folder has 166 bif files): https://1fichier.com/?l32uwps3bnz04bj9qo5j
Thanks!
Last edited by AlphaTwentyThree on Mon Feb 07, 2022 6:30 am, edited 3 times in total.
AlphaTwentyThree
Posts: 909
Joined: Sat Aug 09, 2014 11:21 am

Re: Icewind Dale: Enhanced Edition - extract *.bif with chitin.key info

Post by AlphaTwentyThree »

Hm, anyone?
AlphaTwentyThree
Posts: 909
Joined: Sat Aug 09, 2014 11:21 am

Re: Icewind Dale: Enhanced Edition - extract *.bif with chitin.key info

Post by AlphaTwentyThree »

I'd also take a simple BIF extractor if that's the question. ;)
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Icewind Dale: Enhanced Edition - extract *.bif with chitin.key info

Post by aluigi »

http://aluigi.org/bms/icewind_bif.bms

Btw, I didn't have a script for this format, those 4 on the website come from the old Xentax collection (not written by me).
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Icewind Dale: Enhanced Edition - extract *.bif with chitin.key info

Post by aluigi »

The next step would be to implement the parsing of chitin.key for the filenames but it seems quite complex
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Icewind Dale: Enhanced Edition - extract *.bif with chitin.key info

Post by aluigi »

I just released the script 0.2 that includes EVERYTHING: full parsing of the key file and optional stand-alone extraction of single BIF depending what file you select.
I checked the filenames and they seem all correct
;)
AlphaTwentyThree
Posts: 909
Joined: Sat Aug 09, 2014 11:21 am

Re: Icewind Dale: Enhanced Edition - extract *.bif with chitin.key info

Post by AlphaTwentyThree »

Oh my god, Luigi, you're the MAN! Once again and over and over - like always! :D
This hobby would be almost impossible without your work! Thanks so much for what you do!
AlphaTwentyThree
Posts: 909
Joined: Sat Aug 09, 2014 11:21 am

Re: [SOLVED] Icewind Dale: Enhanced Edition - extract *.bif with chitin.key info

Post by AlphaTwentyThree »

Hi once more, sorry to get back to this. Four of the bif files give me a compression error when trying to use the .key method: https://www.mediafire.com/file/4j28eske ... or.7z/file
I thought it'd be nice to have the script work for all of the files. :)
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: [SOLVED] Icewind Dale: Enhanced Edition - extract *.bif with chitin.key info

Post by aluigi »

Ok script updated.
Apparently only TYPE 1028 uses that type of compressed format.

I can't do the same with TYPE 1000 because it identifies both "BAM " uncompressed and "BAMC" compressed, so it would still need the SIGN check + TYPE 1000 check (I left it as it was before).
AlphaTwentyThree
Posts: 909
Joined: Sat Aug 09, 2014 11:21 am

Re: [SOLVED] Icewind Dale: Enhanced Edition - extract *.bif with chitin.key info

Post by AlphaTwentyThree »

Perfect, thanks, Luigi! :)
AlphaTwentyThree
Posts: 909
Joined: Sat Aug 09, 2014 11:21 am

Re: Icewind Dale - extract *.bif with chitin.key info

Post by AlphaTwentyThree »

I just found a problem with the Heart of Winter patch (Trials of the Luremaster) where only about 30% of the archives is extracted.

Here are the source files: https://www.mediafire.com/file/hp2n57d5 ... lm.7z/file

Thanks for yet another update. ;)
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Icewind Dale - extract *.bif with chitin.key info

Post by aluigi »

The remaining part is just raw data that was referenced after the files, their number was that field previous called FLAGS.
I have updated the script but I don't think the content is of any use since it's just raw data (number of entries of the same size, some resources or variables I guess).
AlphaTwentyThree
Posts: 909
Joined: Sat Aug 09, 2014 11:21 am

Re: Icewind Dale - extract *.bif with chitin.key info

Post by AlphaTwentyThree »

huh, interesting... Thanks again, Luigi!