View Single Post
  #7  
Old 25-09-2017, 18:11
elit elit is offline
Registered User
 
Join Date: Jun 2017
Location: sun
Posts: 156
Thanks: 109
Thanked 225 Times in 79 Posts
elit is on a distinguished road
You can chain ztool for games like Ghost Recon Wildlands that use both lzo and some zlib streams, like this for example:

[External compressor:pzlib,plz4,plzo,pzstd]
header = 0
packcmd = ZTool e:{compressor}{:option} - - <stdin> <stdout>
unpackcmd = ZTool d:{compressor}{:option} - - <stdin> <stdout>

-m5 -mc-delta -mc:rep/srep64:m5f:mem2gb:s128gb:l1k -mc$default,$precomp,$obj:+plzo+pzlib
"

In the above we first pass it through lzo precompress filter and then to pzlib. Pzlib filter will also look into data that was precompressed from lzo as well as outside it. If data inside lzo's were also zlibed those will be additionally processed.
Btw for srep you absolutely have to use "s" option if you pipe its input:

[External compressor:srep64]
packcmd = srep64avx2 {options} - - <stdin> <stdout>
unpackcmd = srep64avx2 -d {options} - - <stdin> <stdout>

^then you save space and time as data are streamed directly: ztool:plzo=>ztool=>pzlib=>srep but you have to use "s" option and you have to take into account preprocessed size after ztool!

Another game where you can chain ztool is Mirror's Edge Catalyst, there you chain plz4=>pzlib.
Reply With Quote
The Following 5 Users Say Thank You to elit For This Useful Post:
COPyCAT (21-10-2017), EzzEldin16 (26-09-2017), JustFun (25-09-2017), rivesh (10-10-2017), TheGeekyGamer (24-06-2018)