Go Back   FileForums > Game Backup > PC Games > PC Games - CD/DVD Conversions > Conversion Tutorials

Reply
 
Thread Tools Display Modes
  #616  
Old 03-06-2023, 08:49
huluwizard huluwizard is offline
Registered User
 
Join Date: May 2023
Location: Canada
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
huluwizard is on a distinguished road
Forgive me if I have missed something obvious, but the first post in this thread mentions documentation, but I'm not able to locate any documentation for xtool. Specifically, I'm trying to figure out the command line. I can get the results I want from the GUI plus a plugin, but ultimately I'd like to pair it with a batch file that does the same thing.
Reply With Quote
Sponsored Links
  #617  
Old 03-06-2023, 09:07
KaktoR's Avatar
KaktoR KaktoR is offline
Lame User
 
Join Date: Jan 2012
Location: From outer space
Posts: 4,412
Thanks: 1,078
Thanked 7,016 Times in 2,658 Posts
KaktoR is on a distinguished road
xtool.chm is what you are looking for.
__________________
Haters gonna hate
Reply With Quote
  #618  
Old 03-06-2023, 09:12
huluwizard huluwizard is offline
Registered User
 
Join Date: May 2023
Location: Canada
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
huluwizard is on a distinguished road
Quote:
Originally Posted by KaktoR View Post
xtool.chm is what you are looking for.
Oh wow, it really was right there all along. Thanks!
Reply With Quote
  #619  
Old 08-06-2023, 03:17
dixen dixen is offline
Registered User
 
Join Date: Sep 2014
Location: Russia
Posts: 396
Thanks: 450
Thanked 436 Times in 200 Posts
dixen is on a distinguished road
And yet I don't understand how to use the memory limit in the -dd# function. The --srepmem=# parameter does not give anything at all. Maybe I'm doing something wrong?
Reply With Quote
  #620  
Old 08-06-2023, 04:10
Cesar82's Avatar
Cesar82 Cesar82 is offline
Registered User
 
Join Date: May 2011
Location: Brazil
Posts: 1,026
Thanks: 1,738
Thanked 2,192 Times in 750 Posts
Cesar82 is on a distinguished road
Quote:
Originally Posted by dixen View Post
And yet I don't understand how to use the memory limit in the -dd# function. The --srepmem=# parameter does not give anything at all. Maybe I'm doing something wrong?
I think the parameter for srep memory usage in XTool 0.70 is "-sm#" and not anymore "--srepmem=#".
Reply With Quote
  #621  
Old 08-06-2023, 06:10
shazzla shazzla is offline
Registered User
 
Join Date: Nov 2010
Location: Hunnia
Posts: 273
Thanks: 501
Thanked 94 Times in 71 Posts
shazzla is on a distinguished road
It would be nice if someone document this parameters....
Reply With Quote
  #622  
Old 08-06-2023, 10:09
Masquerade's Avatar
Masquerade Masquerade is offline
Registered User
 
Join Date: Jan 2020
Location: Monte d'Or
Posts: 1,167
Thanks: 284
Thanked 1,358 Times in 615 Posts
Masquerade is on a distinguished road
Quote:
Originally Posted by shazzla View Post
It would be nice if someone document this parameters....


Code:
CMD> xtool precomp

XTool is created by Razor12911

precomp - data precompressor

Usage:
  xtool precomp [parameters] input output


Parameters:
  -m#  - codecs to use for precompression (separate with "+" if more than one)
  -c#  - scanning range of precompressor [16mb]
  -t#  - number of working threads [50p]
  -d#  - scan depth [0]
  -dd  - use stream deduplication
  -l#  - compress data using fast lzma2 (separate params with ":")
               d# - dictionary size
  -lm  - low memory mode
  -s   - skip stream verification
  -v   - enables verbose
  -df# - set xdelta threshold to accept streams [5p]
  -x#  - extract streams to directory path
  -dm# - deduplication memory usage limit (#=size) [75p]
  -sm# - srep memory usage limit (#=size) [75p]
Reply With Quote
The Following User Says Thank You to Masquerade For This Useful Post:
Razor12911 (08-06-2023)
  #623  
Old 08-06-2023, 10:55
Razor12911's Avatar
Razor12911 Razor12911 is offline
Noob
 
Join Date: Jul 2012
Location: South Africa
Posts: 3,746
Thanks: 2,141
Thanked 11,098 Times in 2,295 Posts
Razor12911 is on a distinguished road
Executing xtool with the command as the only parameter will display information of how the command is used alongside the available parameters. The reason certain parameters remain undocumented is simply because they were added for personal usage or as a gimmick and not a lot of testing has been done and as such, they may not work as intended and may corrupt your data in certain instances.

Any of the listed parameter is fine to be used by you, the end user however anything not listed here is limited to advanced users who may have gone through the source code over on github to even know of these parameters existence.
Reply With Quote
The Following 3 Users Say Thank You to Razor12911 For This Useful Post:
Cesar82 (08-06-2023), L0v3craft (09-06-2023), shazzla (09-06-2023)
  #624  
Old 09-06-2023, 02:53
shazzla shazzla is offline
Registered User
 
Join Date: Nov 2010
Location: Hunnia
Posts: 273
Thanks: 501
Thanked 94 Times in 71 Posts
shazzla is on a distinguished road
Thanks,but i miss exactly those undocumented parameters!

Somehow i missed github. lol
Going there now,btw thanks!

Last edited by shazzla; 09-06-2023 at 02:55.
Reply With Quote
The Following User Says Thank You to shazzla For This Useful Post:
seryogakms (09-06-2023)
  #625  
Old 12-06-2023, 08:21
Razor12911's Avatar
Razor12911 Razor12911 is offline
Noob
 
Join Date: Jul 2012
Location: South Africa
Posts: 3,746
Thanks: 2,141
Thanked 11,098 Times in 2,295 Posts
Razor12911 is on a distinguished road
Update available

Changes

- memory usage optimizations

Notes

Resources utilised by zlib, lzo, zstd and some other codecs have been made to initialize only when used, this was down to reduce memory usage and allocation.

If you're users like shazzla however, who want to utilise features of xtool before they are tested and ready for, there's a new parameter introduced in this release which makes xtool utilise the GPU's VRAM to improve precompression speed and reduce memory usage even more when decoding by offloading deduplication memory requires onto the GPU.

-g# (# may be a percentage or specific value), default value is 0

So how does it work? When precompressing, xtool reads, processes then writes, it does this again and again until it finishes. The problem with this however is there's a bottleneck when it is writing especially if you're repacking on HDD because xtool may be processing faster than it is actually writing to the disk so that's where caching feature introduced in 0.7.0 and the new GPU feature comes in. Instead of writing straight to disk, the data is written to the GPU and as xtool reads and processes the next batch of data, the GPU will be writing to the disk making sure that the processing aspects of xtool are not slowed down.

When decoding, xtool can sometimes use the ram for the duplicated streams resulting in high memory usage when installing a repack, usually when you're installing a game, the GPU isn't doing anything so these duplicated streams are stored on the GPU, this is done to reduce memory usage. 75% of the allocated GPU is dedicated to this while 25% is dedicated to caching data from srep+lolz/lzma or what it is that you use where xtool would be reading data in advance to reduce bottlenecks even more.

TLDR; how to enable this feature? just add -g75p when encoding/decoding (can be both, up to you)

How to know if it's working? Check in task manager and you should see xtool utilising the GPU with the Engine "Copy".

Benchmarks

0.7.1
Code:
XTool is created by Razor12911

Streams: 1415315 / 1415335
Time: 00:07:20 (CPU 00:44:37)
Duplicates: 1134302 (1.99 GB) [7.11 GB >> 16.1 GB]
Srep decompression memory: 738 MB [5.13 GB*]

Size: 15.3 GB >> 29.0 GB >> 13.0 GB >> 9.06 GB >> 4.65 GB

Done!!!
0.7.2
Code:
XTool is created by Razor12911

NVIDIA GeForce GTX 1060 6GB (4.50 GB loaded)
Streams: 1415315 / 1415335
Time: 00:05:31 (CPU 00:46:09)
Duplicates: 1134302 (1.99 GB) [7.11 GB >> 16.1 GB]
Srep decompression memory: 738 MB [5.13 GB*]

Size: 15.3 GB >> 29.0 GB >> 13.0 GB >> 9.06 GB >> 4.65 GB

Done!!!
There was a 30% speed improvement, your mileage may vary but only use this feature if you repack on HDD. There won't much speed gains on SSD.

OpenCL was used to achieve this so if your PC does not have the library in system32 folder, you should place the dll near xtool.

If feature does not work as intended then you must understand why I keep some features undocumented.
Attached Images
File Type: png image.png (15.9 KB, 269 views)
File Type: png xtgpu.PNG (46.5 KB, 266 views)

Last edited by Razor12911; 12-06-2023 at 08:23.
Reply With Quote
The Following 16 Users Say Thank You to Razor12911 For This Useful Post:
-tara (13-06-2023), BKR-TN (15-06-2023), Cesar82 (12-06-2023), Ele (26-06-2023), Gehrman (13-06-2023), hdneo (13-06-2023), Junior53 (12-06-2023), KaktoR (12-06-2023), kj911 (13-06-2023), L0v3craft (15-06-2023), Masquerade (12-06-2023), Mini (12-06-2023), ScOOt3r (12-06-2023), shazzla (13-06-2023), vint56 (12-06-2023), Wanterlude (13-06-2023)
  #626  
Old 12-06-2023, 11:11
Masquerade's Avatar
Masquerade Masquerade is offline
Registered User
 
Join Date: Jan 2020
Location: Monte d'Or
Posts: 1,167
Thanks: 284
Thanked 1,358 Times in 615 Posts
Masquerade is on a distinguished road
Nothing short of incredible, always love seeing XTool updates. Thanks again Razor!
Reply With Quote
The Following 2 Users Say Thank You to Masquerade For This Useful Post:
hdneo (13-06-2023), Razor12911 (12-06-2023)
  #627  
Old 12-06-2023, 11:27
infovs infovs is offline
Registered User
 
Join Date: Feb 2005
Location: Home
Posts: 44
Thanks: 2
Thanked 10 Times in 7 Posts
infovs is on a distinguished road
Thank you Razor12911 for your incredible work! Two short questions if it is not too much trouble...how to use undocumented option introduced in 0.70?
- added optimize option to speed up the decoding process for zstd and oodle codecs
Looking at source it is used by adding parameter -o ...but not sure where, at decoding or encoding... I tried used it at both places, precomp some oodle data -> decoding speed was exactly the same as before without -o parameter :\
Also, is there any chance or parameter that can make xtool use and utilize srep64.exe instead of renamed srep.exe?
Thanks in advance, again, big thanks for everything!

Last edited by infovs; 12-06-2023 at 11:43.
Reply With Quote
  #628  
Old 12-06-2023, 17:00
Razor12911's Avatar
Razor12911 Razor12911 is offline
Noob
 
Join Date: Jul 2012
Location: South Africa
Posts: 3,746
Thanks: 2,141
Thanked 11,098 Times in 2,295 Posts
Razor12911 is on a distinguished road
Quote:
Originally Posted by infovs View Post
Thank you Razor12911 for your incredible work! Two short questions if it is not too much trouble...how to use undocumented option introduced in 0.70?
- added optimize option to speed up the decoding process for zstd and oodle codecs
Looking at source it is used by adding parameter -o ...but not sure where, at decoding or encoding... I tried used it at both places, precomp some oodle data -> decoding speed was exactly the same as before without -o parameter :\
Also, is there any chance or parameter that can make xtool use and utilize srep64.exe instead of renamed srep.exe?
Thanks in advance, again, big thanks for everything!
Hi, optimise was added but not documented simply because the conditions needed for the benefits to even be noticeable are obscure, essentially the game Returnal was the reason this feature was added. The game used leviathan which takes a long time to process, to put it into perspective, if a stream was compressed using level 9 and let's say it takes 20 seconds to process, what optimise does is try lesser compression settings that give the same output, like level 8 which takes half the time on average compared to level 9 so that's about 10 seconds, 50% gain in speed, it does this again and again until the compression setting no longer gives the same output. As a result, some level 9 compressed streams of Returnal could be compressed with level 6, some level 7.

With this in mind, the installation should be faster right? Well yes it is but I wasn't impressed by the improvements so I left it undocumented.

Benchmark on pakchunk2_s8-WindowsNoEditor.pak of Returnal

without -o
Code:
XTool is created by Razor12911

Time: 00:22:17 (CPU 02:12:41)
with -o
Code:
XTool is created by Razor12911

Time: 00:18:50 (CPU 01:52:02)
We got about 15% speed improvement. You might see this as a win, but precompression took 32 mins with -o than 23 mins without -o so 40% more time for precompression.

As for srep/srep64, just let 32-bit programs die.
Reply With Quote
The Following 7 Users Say Thank You to Razor12911 For This Useful Post:
Gehrman (13-06-2023), hdneo (13-06-2023), L0v3craft (15-06-2023), ScOOt3r (15-06-2023), seryogakms (13-06-2023), shazzla (13-06-2023), Wanterlude (13-06-2023)
  #629  
Old 19-06-2023, 08:16
janb14 janb14 is offline
Registered User
 
Join Date: May 2017
Location: Germany
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
janb14 is on a distinguished road
external ogg codec/compressor

Hello everyone,
first of all thank you Razor12911 and eveyone else who made this possible.
Im currently experimenting with xtool and noticed no dedicated handling of ogg files. Im trying to compress some of my minecraft backups where mods with ogg sound files contribute a significant share.
I have already extraced some and compressed them with standalone oggre. Now i want to include them the same way panker1992 (i recreated his wavpack config and it worked ;D) did but im not really a hex guru. Did anyone already have a working ogg config ?
So far ive found the Signature but im not sure what to fill in for the rest of the ini values:

HTML Code:
[Stream1]
Name=ogg
Codec=oggre
BigEndian=0
Signature=0x5367674f
Structure=Signature(4),FileSize(4),FileType(4),Stream
StreamOffset=-12
CompressedSize=FileSize + 8
DecompressedSize=0
Quote:
Originally Posted by panker1992 View Post
Hello, it's been ages since i had an error !!

This Came directly from Xtool documentation
Xtool version used 6.2

this is my wav.ini
[Stream1]
Name=wav
Codec=wavpack
BigEndian=0
Signature=0x46464952
Structure=Signature(4),FileSize(4),FileType(4),Str eam
StreamOffset=-12
CompressedSize=FileSize + 8
DecompressedSize=0
Condition1=FileType = 0x45564157
Condition2=FileSize >= 4096

this is my xtool.ini
[wavpack]
Encode=wavpack.exe -hh -x4 <filein>.wav <fileout>.wv
Decode=wvunpack.exe <filein>.wv <fileout>.wav

i have been unable to make this even detect the sample FLAC internal codec works and so any other
NOTE: i use this as standalone and not in FA for testing purposes
Reply With Quote
  #630  
Old 19-06-2023, 09:17
Masquerade's Avatar
Masquerade Masquerade is offline
Registered User
 
Join Date: Jan 2020
Location: Monte d'Or
Posts: 1,167
Thanks: 284
Thanked 1,358 Times in 615 Posts
Masquerade is on a distinguished road
^^
I'd advise against using XTool with oggre because oggre has built in deduplication that will not be working when each ogg is compressed individually with XTool.
Reply With Quote
Reply

Thread Tools
Display Modes

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
[Dev]XTool Razor12911 Conversion Tutorials 180 23-10-2020 07:26
Project Cars Digital Edition (3xDVD5) (srep+lzma) GTX590 PC Games - CD/DVD Conversions 10 28-08-2017 09:34
Project IGI Anthology 1xCD700 CIUV2 2039 mausschieber PC Games - CD/DVD Conversions 0 24-07-2017 16:12
Space Channel 5 Part 2 Translation Project Christuserloeser DC Games 0 21-06-2004 19:16



All times are GMT -7. The time now is 12:26.


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