PDA

View Full Version : SRTTR Precompression Tool


Razor12911
26-05-2020, 00:15
I just got Saints Row The Third Remastered and instead of playing the game like a normal person would, I wanted to find out what compression method is used in the game by checking the game executable and to my surprise, I found traces of lz4 functions being used so I checked the vpp_pc files to see if precompression was possible and yes it was.

So I made the tool to use, enjoy ;)

My test results on the vpp_pc files only:
Compressed 44 files, 48,891,349,439 => 73,898,969,645 bytes. Ratio 151.15%
Compression time: cpu 63.91 sec/real 1495.70 sec = 4%. Speed 32.69 mB/s

PS. Not all vpp_pc files contain lz4, maybe I missed a few streams :( but just don't expect to save a lot of GBs because lz4 is also a weak compression algorithm. (Compression not tested)

I'm off to playing the game so cheers. :p

Grumpy
26-05-2020, 01:22
like a normal person

I've always known you are not 'normal' you are 'special' ;)

dixen
26-05-2020, 03:25
misc.vpp_pc
FreeArc 0.67 (March 15 2014) creating archive: data.arc
Compressed 1 file, 112,949,978 => 382,991,702 bytes. Ratio 339.08%
Compression time: cpu 0.13 sec/real 17.24 sec = 1%. Speed 6.55 mB/s
All OK

FreeArc 0.67 (March 15 2014) extracting archive: data.arc
Extracted 1 file, 382,991,702 => 112,949,978 bytes. Ratio 339.08%
Extraction time: cpu 0.31 sec/real 12.24 sec = 3%. Speed 9.23 mB/s
All OK

Thanks!!

Masquerade
26-05-2020, 05:28
Tested on 10GB sample of game data, very good results.
Compressed 37 files, 10,762,908,122 => 16,672,205,140 bytes. Ratio 154.90%
Compression time: cpu 10.36 sec/real 470.71 sec = 2%. Speed 22.87 mB/s
All OK

Update: unpacking works :D