View Single Post
  #3  
Old 06-08-2023, 05:46
KaktoR's Avatar
KaktoR KaktoR is offline
Lame User
 
Join Date: Jan 2012
Location: From outer space
Posts: 4,688
Thanks: 1,106
Thanked 7,335 Times in 2,837 Posts
KaktoR is on a distinguished road
The file is 1.08gb (1169576856 bytes).

BPK works but it will break the file on unpacking stage (crc error).

I already tried to set --diff=100p but to no avail, the ratio is just 100% for some reason (STDIO).
The old plugin works but it's the same as normal BPK, it will break the file on unpacking.

Tried different chunk sizes aswell, from c256mb up to c4gb.

Edit: I got some things mixed up, but nevertheless it doesn't work. Here is the full test.

STDIO plugin
Code:
GUS_CGI01_Part1.bk2
Compressed 1 file, 513,393,104 => 467,499,327 bytes. Ratio 91.06%
Compression time: cpu 0.20 sec/real 67.98 sec = 0%. Speed 7.55 mB/s
All OK

Extracted 1 file, 467,499,327 => 513,393,104 bytes. Ratio 91.06%
Extraction time: cpu 0.45 sec/real 32.36 sec = 1%. Speed 15.86 mB/s
All OK



GUS_CGI01_Part2.bk2
Compressed 1 file, 1,169,576,856 => 982,148,782 bytes. Ratio 83.97%
Compression time: cpu 0.69 sec/real 151.34 sec = 0%. Speed 7.73 mB/s
All OK

Extracting 1 file, 1,169,576,856 bytes. Processed   0.0%
ERROR: general (de)compression error in xtool:bk2


Splash_Logo_Larian.bk2
Compressed 1 file, 35,526,400 => 28,360,433 bytes. Ratio 79.83%
Compression time: cpu 0.05 sec/real 5.35 sec = 1%. Speed 6.64 mB/s
All OK

Extracted 1 file, 28,360,433 => 35,526,400 bytes. Ratio 79.83%
Extraction time: cpu 0.05 sec/real 3.01 sec = 2%. Speed 11.79 mB/s
All OK
Non-STDIO plugin
Code:
GUS_CGI01_Part2.bk2
Compressed 1 file, 1,169,576,856 => 1,169,577,126 bytes. Ratio 100.00%
Compression time: cpu 0.73 sec/real 2.50 sec = 29%. Speed 467.63 mB/s
All OK

Extracted 1 file, 1,169,577,126 => 1,169,576,856 bytes. Ratio 100.00%
Extraction time: cpu 0.75 sec/real 2.08 sec = 36%. Speed 562.62 mB/s
All OK
And it does not matter if I use xtool stdio mode or not
Code:
Compressing 1 file, 1,169,576,856 bytes. Processed  83.1%
Compressing 1,169,576,856 bytes with xtool.exe precomp -c2048mb -mbk2 -t100p --diff=100p InFile OutFile
100.0%XTool is created by Razor12911

Streams: 0 / 1
Time: 00:03:19 (CPU 00:00:02)

Size: 1.09 GB >> 1.09 GB

100.0%
Errorlevel=0
Compressed 1 file, 1,169,576,856 => 1,169,577,126 bytes. Ratio 100.00%
Compression time: cpu 0.81 sec/real 226.68 sec = 0%. Speed 5.16 mB/s
All OK
XTool.ini
Code:
[bink]
Encode=bink.exe <filein> <fileout>
Decode=binku.exe <filein> <fileout>
bk2.ini, bink.exe, binku.exe, xdelta3_dll.dll are present

Btw, with -c2gb I get a access violation error in xtool.exe. I have to write -c2048mb to get the 2gb chunk size.

Edit 2: Sample https://pixeldrain.com/u/bnfw8nDp
__________________
Haters gonna hate

Last edited by KaktoR; 06-08-2023 at 07:47.
Reply With Quote
The Following User Says Thank You to KaktoR For This Useful Post:
Masquerade (06-08-2023)