View Single Post
  #14  
Old 21-05-2021, 15:18
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
@Razor12911, I had an idea for XTool.
I don't know if that would be possible, but since we can't pass the "+" character in a parameter on the FreeArc command line, I thought it might be possible to make XTool decode multiple method parameters separately, allowing you to send multiple commands in a bat file...

Currently the parameter for the XTool method is -m.
Currently it is possible to use this way:
Code:
Arc.ini
[External compressor:xtool]
header    = 0
default   = -c64mb -t100p
packcmd   = "PRE\XTool_2020\XTool.exe" precomp {options} --dbase - - <stdin> <stdout>

pack.bat
arc.exe a -ep1 -r -ed -s; -w.\temp -mxtool:mzlib data.arc "pack\*"
Suggestion is to use multiple parameters (XTool concatenated with "+" sign the parametters -m1, -m2, -m3, etc if it exists, otherwise it would use -m current).
This change in XTool would allow you to use combinations (without parameters)

Code:
Arc.ini
[External compressor:xtool]
header    = 0
default   = -c64mb -t100p
packcmd   = "PRE\XTool_2020\XTool.exe" precomp {options} --dbase - - <stdin> <stdout>

pack.bat
arc.exe a -ep1 -r -ed -s; -w.\temp -mxtool:m1zlib:m2reflate data.arc "pack\*"

The result would be as if using mzlib+reflate
To make it possible to send parameters, "," could be used in the parameters -m1, -m2, etc. and XTool replaces ":" internally when concatenating the methods.

Borderlands 3 method if usage example if I applied my idea to XTool
Code:
pack.bat

arc.exe a -ep1 -r -ed -s; -w.\temp -mxtool:m1zlib:m2ue4,m1,k0x115EE4F8C625C792F37A503308048E79726E512F0BF8D2AD7C4C87BC5947CBA7 data.arc "pack\*"
This is just an idea.
I don't know if it would be good for XTool or if for some reason it would hinder performance so think about this idea.

This would be very useful to use with DiskSpan_GUI as I cannot send combined methods currently. And using XTool.ini is complicated because DiskSpan_GUI is fully configurable in the INI file without internal setinistring processing with sections and fixed keys to insert these values ​​in XTool.ini (You would have to read the DiskSpan_GUI configuration INI file to know where it would be inserted the value).
Reply With Quote