Go Back   FileForums > Game Backup > PC Games > PC Games - CD/DVD Conversions > Conversion Tutorials
Register FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 17-02-2023, 19:36
Cesar82's Avatar
Cesar82 Cesar82 is offline
Registered User
 
Join Date: May 2011
Location: Brazil
Posts: 1,074
Thanks: 1,814
Thanked 2,304 Times in 787 Posts
Cesar82 is on a distinguished road
Quote:
Originally Posted by Masquerade View Post
For Bink 2 videos, you may need to make use of the --diff=* parameter as some patches between CRC imperfect videos to the original state can be larger than XTool's default threshold for patches.

For me if I use --diff=* in arc.ini it doesn't work, return:
ERROR: write error (disk full?) in compression algorithm xtool:c256mb:mbk2
Code:
Arc.ini

--cache=0
[External compressor:xtool]
header    = 0
default   = -c64mb -t100p
packcmd   = "{compressor}.exe" precomp { -option} --diff=* - - <stdin> <stdout>
unpackcmd = "{compressor}.exe" decode -t100p - - <stdin> <stdout>

pack.bat
arc.exe a -ep1 -dses --dirs -s; -lc- -di -i2 -r -w.\temp -m"xtool:c256mb:mbk2" data.arc "pack\*"
I also tested using it directly from the command line after removing --diff=* from arc.ini:
xtool:c256mb:mbk2:-diff=*
xtool:c256mb:mbk2:df*

Code:
Arc.ini

--cache=0
[External compressor:xtool]
header    = 0
default   = -c64mb -t100p
packcmd   = "{compressor}.exe" precomp { -option} - - <stdin> <stdout>
unpackcmd = "{compressor}.exe" decode -t100p - - <stdin> <stdout>

pack.bat
arc.exe a -ep1 -dses --dirs -s; -lc- -di -i2 -r -w.\temp -m"xtool:c256mb:mbk2:df*" data.arc "pack\*"
or
arc.exe a -ep1 -dses --dirs -s; -lc- -di -i2 -r -w.\temp -m"xtool:c256mb:mbk2:-diff=*" data.arc "pack\*"
If I don't use --diff=* it compresses normally.
Code:
FreeArc 0.67 (March 15 2014) using additional options: --cache=0
Creating archive: data.arc using xtool:c256mb:mbk2
Memory for compression 0b, decompression 0b, cache 0b
Compressing 5 files, 336,582,396 bytes
  Compressing health_screen.bk2
  Compressing ms_logo.bk2
  Compressing ps_studios_long_strawberry_4k30_006.bk2
  Compressing lt_outro_1080p.bk2
  Compressing lt_intro_1080p.bk2
Compressed 5 files, 336,582,396 => 291,316,936 bytes. Ratio 86.55%
Compression time: cpu 0.20 sec/real 29.95 sec = 1%. Speed 11.24 mB/s
All OK
Am I doing something wrong?
Reply With Quote
Sponsored Links
  #2  
Old 17-02-2023, 23:48
Masquerade Masquerade is offline
Registered User
 
Join Date: Jan 2020
Location: Monte d'Or
Posts: 1,217
Thanks: 294
Thanked 1,405 Times in 637 Posts
Masquerade is on a distinguished road
Quote:
Originally Posted by Cesar82 View Post
Am I doing something wrong?
The --diff parameter in XTool sets a max size in bytes or percentage size of the stream in order for XTool to accept the stream.

The * character is just a placeholder (a wildcard effectively meaning anything/everything). My explanation meant you'd need to change this to an integer.

By default, XTool will not accept a stream if the generated XDelta patch is greater in size than 5% of the stream, but using --diff= allows you to increase this threshold.

You can use --diff=20p to set the max patch size to be less than or equal to 20% of the stream size for XTool to accept the stream. You can also use an integer to specify a max patch size in bytes (e.g. --diff=50000).
Reply With Quote
The Following User Says Thank You to Masquerade For This Useful Post:
Cesar82 (18-02-2023)
  #3  
Old 11-03-2023, 12:46
exorc exorc is offline
Registered User
 
Join Date: Jan 2010
Location: Spain
Posts: 75
Thanks: 78
Thanked 6 Times in 6 Posts
exorc is on a distinguished road
Quote:
Originally Posted by Masquerade View Post
Bink Video
  • XTool plugin adding support for Bink Video compression.
  • This plugin uses Bink Pack library by ProFrager.
  • Thanks to Razor12911 for the little help.
Advantages of using this plugin versus vanilla Bink Pack
  • Multithreading support.
  • No CRC check fail since XTool will patch the videos as they are unpacked.
  • Incompatible Bink 2 videos (KB2n) are automatically ignored.
Special Notes
  • For Bink 2 videos, you may need to make use of the --diff=* parameter as some patches between CRC imperfect videos to the original state can be larger than XTool's default threshold for patches.
  • You may need to use a large chunk size to ensure all videos are processed. See example below.
Example Usage
  • Extract the attached archive to the XTool folder and use -mbik or -mbk2 depending on your data set.
Test
  • Test on the videos from Assassin's Creed 2 (27x Bink 1 videos).
    Code:
    xtool precomp -mbik "AC2Videos\"
    XTool is created by Razor12911
    
    Streams: 13/13
    Time: 00:00:09 (00:00:01)
    Memory: 148 MB (148 MB)
    
    Results: 937 MB >> 928 MB
    Code:
    xtool precomp -c128mb -mbik "AC2Videos\"
    XTool is created by Razor12911
    
    Streams: 26/26
    Time: 00:02:12 (00:00:04)
    Memory: 391 MB (391 MB)
    
    Results: 937 MB >> 776 MB
    Code:
    xtool precomp -c256mb -mbik "AC2Videos\"
    XTool is created by Razor12911
    
    Streams: 27/27
    Time: 00:02:25 (00:00:06)
    Memory: 677 MB (677 MB)
    
    Results: 937 MB >> 725 MB
  • Test on 05_DAM folder from Shadow Warrior 3 Defintive Edition (6x Bink 2 videos).
    Code:
    xtool precomp -c256mb -mbk2 "SW3\Content\Movies\Cutscenes\05_DAM"
    XTool is created by Razor12911
    
    Streams: 6/6
    Time: 00:01:06 (00:00:03)
    Memory: 406 MB (406 MB)
    
    Results: 214 MB >> 187 MB
How to use with DiskSpan GUI?
Reply With Quote
  #4  
Old 17-06-2023, 08:33
kj911 kj911 is offline
Registered User
 
Join Date: Apr 2010
Location: world
Posts: 231
Thanks: 158
Thanked 88 Times in 62 Posts
kj911 is on a distinguished road
Xtool 0.71 dont compress Bink video

Quote:
Originally Posted by Masquerade View Post
Bink Video
  • Extract the attached archive to the XTool folder and use -mbik or -mbk2 depending on your data set.
Whats wrong or am i lame?? (From testing. See two attached pictures.)

Directly use Binkpack.exe or Freearc usaged whole Bink*.exe file and or CLS-based (de)compressors its works in (de)compress in vice versa... Packed 3.07GB huge BIK file correctly to 2.4GB size with Binkpack.
Use Xtool 0.71 directly or Arc with configurations, don't compress smaller.
Attached Files
File Type: rar screenz.rar (583.9 KB, 16 views)
Reply With Quote
  #5  
Old 09-09-2023, 08:31
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
Quote:
Originally Posted by Masquerade View Post
Bink Video
  • XTool plugin adding support for Bink Video compression.
  • This plugin uses Bink Pack library by ProFrager.
  • Thanks to Razor12911 for the little help.
Advantages of using this plugin versus vanilla Bink Pack
  • Multithreading support.
  • No CRC check fail since XTool will patch the videos as they are unpacked.
  • Incompatible Bink 2 videos (KB2n) are automatically ignored.
Special Notes
  • For Bink 2 videos, you may need to make use of the --diff=* parameter as some patches between CRC imperfect videos to the original state can be larger than XTool's default threshold for patches.
  • You may need to use a large chunk size to ensure all videos are processed. See example below.
Example Usage
  • Extract the attached archive to the XTool folder and use -mbik or -mbk2 depending on your data set.
Updated plugin.

Basically the 'MessageBoxA' was patched out and replaced with some other function from User32.dll. On some bink2 inputs you had encountered some error messages like 'MotionData_warn' or 'err'. I have included two samples for which it is the case. You shouldn't receive error messages anymore with this patched plugin. Inputs which would give these types of errors are just ignored but processed still, but not compressed with binkpack.

Thanks to masquerade and Razor12911.
Attached Files
File Type: 7z XTool_Bink_STDIO_Patched.7z (4.56 MB, 138 views)
__________________
Haters gonna hate
Reply With Quote
The Following 8 Users Say Thank You to KaktoR For This Useful Post:
Abbat (26-01-2024), Gehrman (12-03-2024), kj911 (10-09-2023), L0v3craft (11-09-2023), Lord.Freddy (09-09-2023), murphy78 (15-09-2023), shazzla (09-09-2023), Wanterlude (10-09-2023)
  #6  
Old 06-03-2023, 01:34
Masquerade Masquerade is offline
Registered User
 
Join Date: Jan 2020
Location: Monte d'Or
Posts: 1,217
Thanks: 294
Thanked 1,405 Times in 637 Posts
Masquerade is on a distinguished road
Plugin Update

Added STDIN/STDOUT support for Bink Video plugin (thanks to Gehrman for idea).

Thanks to 78372 for cls wrapper.

Usage has not changed, but its significantly faster.
Reply With Quote
The Following 3 Users Say Thank You to Masquerade For This Useful Post:
Gehrman (06-03-2023), KaktoR (06-03-2023), L0v3craft (14-03-2023)
  #7  
Old 18-02-2023, 00:15
dixen dixen is offline
Registered User
 
Join Date: Sep 2014
Location: Russia
Posts: 410
Thanks: 453
Thanked 444 Times in 204 Posts
dixen is on a distinguished road
XCOM Enemy Unknown

*.bik *.bk2 (With XTool 0.69 + Bink Plugin)

Quote:
FreeArc 0.67 (March 15 2014) testing archive: data.arc
Tested 168 files, 6,433,251,603 => 7,859,788,952 bytes. Ratio 81.85%
Testing time: cpu 8.44 sec/real 344.19 sec = 2%. Speed 22.84 mB/s
All OK

Last edited by dixen; 18-02-2023 at 05:19.
Reply With Quote
The Following 2 Users Say Thank You to dixen For This Useful Post:
Gehrman (18-02-2023), L0v3craft (14-03-2023)
  #8  
Old 22-02-2023, 00:05
Masquerade Masquerade is offline
Registered User
 
Join Date: Jan 2020
Location: Monte d'Or
Posts: 1,217
Thanks: 294
Thanked 1,405 Times in 637 Posts
Masquerade is on a distinguished road
Labyrinth of Galleria: The Moon Society [LZ4]
  • Requires LZ4.DLL from the game files. Rename it to liblz4.dll for use with XTool.
  • Drop the configuration into XTool folder and use -mLoGTMS
By Razor12911
Attached Files
File Type: 7z LoGTMS.7z (301 Bytes, 9 views)
Reply With Quote
The Following User Says Thank You to Masquerade For This Useful Post:
Razor12911 (22-02-2023)
  #9  
Old 21-03-2023, 15:07
Masquerade Masquerade is offline
Registered User
 
Join Date: Jan 2020
Location: Monte d'Or
Posts: 1,217
Thanks: 294
Thanked 1,405 Times in 637 Posts
Masquerade is on a distinguished road
NPK2 Archives

Archives ending in .NPK and have a magic no. of NPK2.

Encrypted using Cipherfinal AES_256_CBC which isn't natively supported by XTool.

Examples of games using this scheme:
  • Tokyo Necro
  • Demonbane
  • Sonicomi

Usage

Place npk2.dll with XTool and use
Code:
-mnpk2:k###Key in Hexadecimal###+png+preflate -d2
Example for Tokyo Necro [Steam Version]

Code:
-mnpk2:k0xAAE616FB7DB7EE84ED424C474AADDAD69A8372799AD576629601EF9B8938E20F+png+preflate -d2
A file is generated during precomp stage called npk2.bin. This must be retained for decoding as well as npk2.dll. npk2.bin contains the initialisation vectors for re-encrypting the data.

By Razor12911
Attached Files
File Type: 7z XTool_NPK2.7z (358.6 KB, 28 views)
Reply With Quote
The Following 6 Users Say Thank You to Masquerade For This Useful Post:
Cesar82 (21-03-2023), Gehrman (21-03-2023), kj911 (22-03-2023), ScOOt3r (21-03-2023), Wanterlude (21-03-2023), ZAZA4EVER (29-04-2023)
  #10  
Old 30-03-2023, 11:30
dixen dixen is offline
Registered User
 
Join Date: Sep 2014
Location: Russia
Posts: 410
Thanks: 453
Thanked 444 Times in 204 Posts
dixen is on a distinguished road
oo2core_9_win64.dll v2.9.8 & v2.9.9
Attached Files
File Type: zip v2.9.zip (570.7 KB, 14 views)
Reply With Quote
The Following 2 Users Say Thank You to dixen For This Useful Post:
hdneo (10-04-2023), ScOOt3r (30-03-2023)
  #11  
Old 21-04-2023, 15:44
Razor12911's Avatar
Razor12911 Razor12911 is offline
Noob
 
Join Date: Jul 2012
Location: South Africa
Posts: 3,751
Thanks: 2,181
Thanked 11,211 Times in 2,309 Posts
Razor12911 is on a distinguished road
Star Ocean: The Divine Force

Supported games
Star Ocean: The Divine Force (requires libzstd.dll)

Usage
Place sodf.dll near xtool.exe along with required libraries and use -msodf+zstd (game is encrypted), so use -d1 as well

Notes

The library is required both when encoding and decoding.
zstd version 1.5.0 seems to work best
using two instances of xtool without -d1 is faster because some encrypted blocks are large and can only fit in 1 or 2 threads which cannot fully utilise the cpu leading to slower decoding
Attached Files
File Type: 7z sodf_R1.7z (415.6 KB, 20 views)

Last edited by Razor12911; 21-04-2023 at 18:05.
Reply With Quote
The Following 7 Users Say Thank You to Razor12911 For This Useful Post:
Cesar82 (22-04-2023), Gehrman (21-04-2023), hdneo (26-04-2023), kuyhaa (24-04-2023), L0v3craft (21-04-2023), Masquerade (21-04-2023), Wanterlude (21-04-2023)
  #12  
Old 26-04-2023, 06:32
Razor12911's Avatar
Razor12911 Razor12911 is offline
Noob
 
Join Date: Jul 2012
Location: South Africa
Posts: 3,751
Thanks: 2,181
Thanked 11,211 Times in 2,309 Posts
Razor12911 is on a distinguished road
Plugin update available

Changes

- improved header decoder in unity plugin
- added ue5 method in unreal plugin to handle ucas/utoc file format without the need of using database creator

Results

Ghostwire Tokyo\Snowfall\Content\Paks\pakchunk0-WinGDK.ucas

-mue5:k0xC26CC5659A24AE8635585C8687DCE552A205DBD72D C4AA0CBE187C60D88921E2+kraken -d1
Code:
Streams: 39249 / 39250
Time: 00:07:54 (CPU 00:46:14)

Size: 4.84 GB >> 11.1 GB
I don't know how it compares with Unreal Engine ucas Database maker but this is an alternative for the newer ucas format as the database maker doesn't support it but this plugin does.

Last edited by Razor12911; 26-04-2023 at 06:50.
Reply With Quote
The Following 11 Users Say Thank You to Razor12911 For This Useful Post:
Cesar82 (26-04-2023), dixen (26-04-2023), Gehrman (26-04-2023), hdneo (26-04-2023), KaktoR (26-04-2023), kuyhaa (28-04-2023), L0v3craft (27-04-2023), L33THAK0R (26-04-2023), Masquerade (26-04-2023), shazzla (27-04-2023), Wanterlude (26-04-2023)
  #13  
Old 29-04-2023, 10:36
Razor12911's Avatar
Razor12911 Razor12911 is offline
Noob
 
Join Date: Jul 2012
Location: South Africa
Posts: 3,751
Thanks: 2,181
Thanked 11,211 Times in 2,309 Posts
Razor12911 is on a distinguished road
PlayStation archive

Supported games
PlayStation games?

Usage
Place psarc.dll near xtool.exe along with required libraries and use -mpsarc

Notes

If you plan on capturing the zlib streams in some of the psarc from The Last of Us, it's advisable to use two instances of xtool because the kraken streams are chunked meaning using -d1 will result in the zlib/reflate part of the precompression receiving incomplete streams.

core.psarc
Code:
2,11 GB >> 5.16 GB >> 7.53 GB
Attached Files
File Type: 7z psarc_R3.7z (64.0 KB, 57 views)

Last edited by Razor12911; 22-08-2023 at 14:37.
Reply With Quote
The Following 14 Users Say Thank You to Razor12911 For This Useful Post:
Cesar82 (29-04-2023), dixen (29-04-2023), emadmoner (29-04-2023), exorc (31-08-2023), Gehrman (30-04-2023), hdneo (29-04-2023), KaktoR (29-04-2023), kj911 (17-06-2023), kuyhaa (30-04-2023), L0v3craft (29-04-2023), Masquerade (29-04-2023), NERV (10-05-2023), ScOOt3r (29-04-2023), Wanterlude (29-04-2023)
  #14  
Old 29-04-2023, 11:48
Razor12911's Avatar
Razor12911 Razor12911 is offline
Noob
 
Join Date: Jul 2012
Location: South Africa
Posts: 3,751
Thanks: 2,181
Thanked 11,211 Times in 2,309 Posts
Razor12911 is on a distinguished road
Quote:
Originally Posted by Razor12911 View Post
core.psarc
Code:
2,11 GB >> 5.16 GB >> 7.53 GB
Turns out I missed a few streams, R2 uploaded

core.psarc
Code:
2.12 GB >> 5.44 GB >> 7.82 GB
Source 2

Supported games
Half-Life: Alyx (requires liblz4.dll)

Usage
Place src2.ini near xtool.exe along with required libraries and use -msrc2

Notes

Sadly I didn't spend too much time on this game and there's really not a lot of lz4 streams and I just totally forgot to upload it after the disappointment.
Attached Files
File Type: 7z src2_R1.7z (274 Bytes, 38 views)
Reply With Quote
The Following 9 Users Say Thank You to Razor12911 For This Useful Post:
Cesar82 (29-04-2023), emadmoner (29-04-2023), Gehrman (30-04-2023), hdneo (29-04-2023), kuyhaa (10-05-2023), L0v3craft (29-04-2023), Masquerade (29-04-2023), shazzla (29-04-2023), Wanterlude (29-04-2023)
  #15  
Old 10-05-2023, 00:07
Masquerade Masquerade is offline
Registered User
 
Join Date: Jan 2020
Location: Monte d'Or
Posts: 1,217
Thanks: 294
Thanked 1,405 Times in 637 Posts
Masquerade is on a distinguished road
TT Isle Of Man Ride on the Edge 3 [LZ4F]
  • Extract the contents of the attached archive and use -mTTIoM3.
  • TTIoM3.xtl can be discarded for decoding, but lz4.exe, xtool.ini and xdelta3_dll.dll must be present.
Code:
xtool precomp -mTTIoM3 -c128mb -t8 -df20p "WIN32\PKG\CHUNK_0"

XTool is created by Razor12911

Streams: 19100 / 19112
Time: 00:11:36 (CPU 00:03:19)

Size: 8.23 GB >> 13.4 GB
Attached Files
File Type: 7z TTIoM3.7z (319.3 KB, 30 views)
Reply With Quote
The Following 5 Users Say Thank You to Masquerade For This Useful Post:
Cesar82 (13-05-2023), Gehrman (10-05-2023), kuyhaa (10-05-2023), L0v3craft (11-05-2023), ScOOt3r (10-05-2023)
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
XTool 2020 (Main Project) Razor12911 Conversion Tutorials 713 01-06-2026 23:52
XTool - Successor of ZTool Razor12911 Conversion Tutorials 584 22-04-2023 18:16
[Dev]XTool Razor12911 Conversion Tutorials 180 23-10-2020 06:26
XTool 2019 (Plugins) Razor12911 Conversion Tutorials 50 16-05-2020 06:14



All times are GMT -7. The time now is 21:46.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
FileForums @ https://fileforums.com