View Single Post
  #13  
Old 30-07-2023, 02:34
KaktoR's Avatar
KaktoR KaktoR is offline
Lame User
 
Join Date: Jan 2012
Location: From outer space
Posts: 4,689
Thanks: 1,106
Thanked 7,336 Times in 2,838 Posts
KaktoR is on a distinguished road
I see.

Edit: It is a legit KB2j file and should work. However the first part of the file does not belong to a standard bink2 file format. Maybe deleting this part and patching it back again after unpacking do the trick.



Bink2 header is "4B 42 32" and the next letter indicates the version and/or codec used. Starting with "n" or later letters are not compatible with binkpack. This way you can always see right off from the start if using binkpack is possible or not.

Edit 2: It works with XTool bink plugin. Normal BPK just failes on extracting.
Code:
Compressed 1 file, 327,833,352 => 283,487,172 bytes. Ratio 86.47%
Compression time: cpu 0.06 sec/real 45.62 sec = 0%. Speed 7.19 mB/s
All OK

Extracted 1 file, 283,487,172 => 327,833,352 bytes. Ratio 86.47%
Extraction time: cpu 0.23 sec/real 22.50 sec = 1%. Speed 14.57 mB/s
All OK
Steps:
  1. Open the bk2 files with HxD and search for the first bink2 header and delete the whole part starting from the beginning of the bink2 header "KB2j" to the start of the file and save the file so "KB2j" is on the very beginning of the file (HxD will make a BAK file as backup).
  2. Use XTool bink video plugin
  3. Make patches from Original and Cutted files
  4. After extracting, patch the files back to original with xdelta or hdiff (patch files should be very small)
__________________
Haters gonna hate

Last edited by KaktoR; 30-07-2023 at 02:54.
Reply With Quote