FileForums

FileForums (https://fileforums.com/index.php)
-   Conversion Tutorials (https://fileforums.com/forumdisplay.php?f=55)
-   -   Precomp+Reflate+Srep+LZMA (https://fileforums.com/showthread.php?t=96138)

Razor12911 12-09-2015 23:04

But do you think it's worth it? Because combining the two SOMETIMES reduces the size by at least 5mb and MOSTLY you are better off with one of them. There arent that many zlib streams on files, its mostly deflates. The reason I suggested reflate first the precomp was the fact that reflate cannot be combined with srep and lzma in one go but precomp can, which saves time and space when decompressing, from my point of view, if you want to use both, rather discard reflate then set precomp to brute mode.

Shegorat 13-09-2015 12:07

Maybe i can explain some features of precomp and reflate...

Precomp searches only zlib streams, zlib is only container for deflate stream with his own header. Precomp can try to search deflate streams in brute mode, but very very slowly. It can handle recursive compressed streams, and input files more than 4 Gb.

Reflate try to search deflate streams, it is more difficult, cause deflate stream is sequence of compressed blocks, every block starts with 3 bits header. So rawdet can find many false-positive streams. But there are some checks in rawdet, that can drop almost all invalid streams. Rawdet can not handle input files more than 4 Gb, and recursive compressed streams - for each unpacked stream need run rawdet again.

Sometimes using both precomp and reflate may get better results, than using one of them.

ChronoCross 13-09-2015 14:09

this is great, this information (from @Razor12911 and @Shegorat) is a piece of gold. (here wasting time) I made compression test and precomp in brute is really but really slow but better in some games. on the other hand with x6cores reflate it is much faster and better, but in some files.
precomp brute mode
reflate level 6
game1 = precomp wins 200% vs 170% reflate md5 OK
game2 = reflate wins 320% vs 210% precomp md5 OK

need to find the right way to use reflate and precomp for my future game compressions,
only to save time
need to make more test i like the speed of reflate. it's a small percentage difference with precomp but is much faster, despite the limitations described by shegorat have reflate.

RamiroCruzo 17-09-2015 01:45

1 Attachment(s)
Hey mates got the CLS-Reflater.dll.........

kenzo34 17-09-2015 02:10

Hello is it possible in your next update to add the audio compressor msc? have reflected precomp+lzma+SREP+msc? compression will be greater for me if I also compress the audio. Thank you

HunterEmrah 25-09-2015 08:36

anybody knows how to compress Mad Max?

mikey26 26-09-2015 16:27

with the many compressors posted on the site.and a little reading on how its done.guys have created some cool tools that will do all the work for.:)

edward99 06-10-2015 13:39

please can you tell me, bro how to compress watch dogs and tell how to create a small size into large size using precomp

edward99 06-10-2015 13:43

please can you tell me, bro what is freearc+plugins

RamiroCruzo 10-10-2015 09:01

Hi Mr. Gozarck....Long time no see........

I was working on a repack when I discovered that precomping .hif files give a better result than precomp+reflate........ I created the bat for it but it has many errors....So could you please try it .........

gozarck 10-10-2015 15:02

1 Attachment(s)
very nice RamiroCruzo,
then you suggest that each file "* .hif" preprocess with precomp or pre-process and compress with precomp ?. Could you share the batch code. Also shares the name of the game you are using to test, and some statistics on the total weight of the game, and the final compressed size of the game with your script?
Also precomp method
Thankyou
---EDITED--------------------
i take youR suggestIon please test the bat file.

RamiroCruzo 10-10-2015 22:35

Quote:

Originally Posted by gozarck (Post 443758)
very nice RamiroCruzo,
then you suggest that each file "* .hif" preprocess with precomp or pre-process and compress with precomp ?. Could you share the batch code. Also shares the name of the game you are using to test, and some statistics on the total weight of the game, and the final compressed size of the game with your script?
Also precomp method
Thankyou
---EDITED--------------------
i take youR suggestIon please test the bat file.

Gracias Mr. Gozarck....I was testing it on MadMax as its deflate steams i.e. .hif files were about 1-2MB big...... So I barely managed to do it by editing your script precomp+reflate+srep+lzma but it gave different errors everytime.........

Yup...Now the results,
Game Size:32GB
Precomp+Srep Size:4.4GB
Reflate+Arc Size:4GB
Reflate+Precomp Size:3.75GB

-------Edited-------------
A few suggestions for your consideration amigo,
1} Add .unp to precomp list too
2} Change the precomp method to -slow0 -cn
3} Don't compress the files i.e. make .refl8 just let them be as it is in a data folder....It will be easier to add it in installations then.

Well are you Mister or Master??? {Frankly asking} :P

gozarck 11-10-2015 03:50

Well my friend in real life im a professor of history's art. But in internet iam gozarck i just sharing my hobby. About the code i hope razor can change the code. The problem is the names of the pcf files hif and unp have the same name. So we need to make a little code to rename it and restore.

gozarck 12-10-2015 20:13

1 Attachment(s)
RamiroCruzo hif and unp with precomp (please change the command of precomp) pack and unpack. check the bat file (reflate_c.cmd and reflate_d.cmd) for info.

RamiroCruzo 13-10-2015 09:31

Quote:

Originally Posted by gozarck (Post 443805)
RamiroCruzo hif and unp with precomp (please change the command of precomp) pack and unpack. check the bat file (reflate_c.cmd and reflate_d.cmd) for info.

Got an idea Mr Gozarck.......How about we precomp .raw files instead......???

I don't know if its a good idea but will be trying it....:)


All times are GMT -7. The time now is 16:11.

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