View Single Post
  #14  
Old 30-07-2023, 05:20
Dragonis40 Dragonis40 is offline
Registered User
 
Join Date: Mar 2021
Location: italy
Posts: 70
Thanks: 0
Thanked 3 Times in 3 Posts
Dragonis40 is on a distinguished road
Quote:
Originally Posted by KaktoR View Post
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)
First of all, THANK YOU for your support.
The only issue I have is how to decompress .bin file using Xtool bink. I think I have to use files i can find in "COMPRESSOR\Resources\TOOLS\Bink" from DiskSpan, but how?
Reply With Quote