View Single Post
Old 21-10-2020, 11:40
hch1337 hch1337 is offline
Join Date: Dec 2018
Location: netherlands
Posts: 4
Thanks: 12
Thanked 9 Times in 3 Posts
hch1337 is on a distinguished road
Basically, first precompress the data, then deduplicate and compress using whatever works best for you. Here's a short, simplified explanation of steps:

1. Precompress
Precompression can be considered as a stage before compressing. Precompression takes care of deflating compressed streams of unknown file formats. Examples of great precompressors are XTool and Precomp. Precomp is a widely used precompressor that comes with PackJPG and PackMP3 which both are great advantages to have. XTool (Now ZTool) is a very interesting precompressor by Razor19211. It uses multiple forms of decompression and is often more successful as Precomp, however, in rare cases Precomp wins over XTool, both have a interesting approach of precompressing data.

A precompressor basically always should expand the data, making it better for compression by a stronger algorithm. However, since Precomp can also effectively compress JPG/MP3 it can also reduce instead of expand, or do both. XTool should always expand the input data.

On this forum you can find the XTool/ZTool topic, download it, and play with it, run some tests.

2. Deduplicate data
Then use SREP, basically, it 'removes' duplicate data, to explain it very simple, reducing the dataset that you're going to compress (and later, decompress). This saves a lot of time since SREP is a relative short process. Lrzip and XDelta are alternatives for SREP. Though usually SREP works best.

3. Compress
Now you're ready to pick a compressor, LOLZ/ZCM/LZMA/NANOZIP or whatever is used nowadays.

4. Make an installer
Also on this forum you can find information and resources on howto make your own (Inno/Freearc) Setup using modules/plugins for the various methods of repacking.

Good luck

Last edited by hch1337; 21-10-2020 at 12:07. Reason: Expanded the explanation
Reply With Quote
The Following 5 Users Say Thank You to hch1337 For This Useful Post:
Epic Titan 69 (04-04-2021), Giriplayslegend899 (21-10-2020), Hatchi (12-12-2020), Newbie-repacker (07-05-2021), pralin (04-04-2021)