View Single Post
  #5  
Old Yesterday, 11:31
Razor12911's Avatar
Razor12911 Razor12911 is offline
Noob
 
Join Date: Jul 2012
Location: South Africa
Posts: 3,772
Thanks: 2,195
Thanked 11,295 Times in 2,330 Posts
Razor12911 is on a distinguished road
Precompressing the game (simple)

Most of the codecs xtool provides have built in scanners to make precompression easier for the end user this is a list of codecs you can use directly without much issues.

Quote:
zlib, lz4f, zstd, oodle (kraken, mermaid, selkie), direct storage (gdeflate), wav pcm audio (flac), jpg (brunsli)
png is a preprocessor codec, by itself it doesn't really do anything to the compression but what it does it restructure the stream in such a way that it allows zlib to be able to properly precompress it and that means whenever you use png, you can have to combine it with zlib (preferably reflate or preflate) alongside the -d1 parameter.

Now what is reflate and preflate? Well, both are zlib/deflate precompressor that are used whenever zlib fails to process a certain input and since this is a simple guide, it is better to use both zlib+preflate method whenever the scanners have picked up zlib streams.

What about leviathan and lz4/lz4hc?

These two codecs are very problematic to make universal precompression for, either scanning becomes annoyingly slow or their design just makes it unfeasible.

And the following codecs are placeholder codecs, either meant to help notify you of streams being detected but provide nothing other than that or assist in plugin creation. (Ignore them unless you plan on making a plugin)

Quote:
xor, aes, rc4, zipcrypto, lz4, lz4hc, lzna, hydra, leviathan, wwise, mp3, ogg, bink

Last edited by Razor12911; Yesterday at 11:49.
Reply With Quote
The Following 2 Users Say Thank You to Razor12911 For This Useful Post:
ScOOt3r (Yesterday), Wanterlude (Yesterday)