Currently I check v469 download and can confirmed: if previous file download failed via HTTPDownload all other files can be downloaded from it.
But in v436 - no. If HTTPDownload failed download one file, all next will not use HTTPDownload anymore.
"WindowsXP help content" is not a good candidate for this. You want good compression, so just make comment with repeatable same symbol.
I think 1024 times will be enough.
RLE eat this highly repeatable block easily. And you win 1024 bytes, which obviously enough for make .uz smaller from .u.
-----
New version 1.5:
Add allowbad parameter.
Improve output.
https://github.com/SeriousBuggie/UZ/releases/latest
Code: Select all
allowbad Allows the creation of .uz files that cause crash on clients below version 469.
Code: Select all
uz compress relicsbindings.u
Compressing relicsbindings.u (582 bytes)
stage 0: 0.000000 secs
stage 1: 0.000000 secs
stage 2: 0.000000 secs
stage 3: 0.000000 secs
Total: 0.000000 secs
Skipped: This .uz file cause crash on clients below 469. Use the 'allowbad' parameter to create this .uz file anyway.
Such files should be the last in the ServerPackages list to avoid speed drops for all subsequent files on older clients.
-----
Also if you want better compression you can consider possibility usage 'newformat' option. IDK from which UT version it supported, but v436 unpack this UZ fine:
Code: Select all
uz compress CTF-Blice-Alpha.unr buffer=0x4000
The BWT buffer size is limited to 16384 (0x4000) bytes
Compressing CTF-Blice-Alpha.unr (87328898 bytes)
stage 0: 4.290000 secs
stage 1: 114.052002 secs
stage 2: 2.870000 secs
stage 3: 3.822000 secs
Total: 125.034004 secs
Compressed CTF-Blice-Alpha.unr -> CTF-Blice-Alpha.unr.uz (21.135%)
Code: Select all
uz compress CTF-Blice-Alpha.unr newformat buffer=0x4000
The BWT buffer size is limited to 16384 (0x4000) bytes
Compressing CTF-Blice-Alpha.unr (87328898 bytes)
stage 0: 4.275000 secs
stage 1: 112.290001 secs
stage 2: 2.792000 secs
stage 3: 1.124000 secs
stage 4: 2.465000 secs
Total: 122.945999 secs
Compressed CTF-Blice-Alpha.unr -> CTF-Blice-Alpha.unr.uz (17.041%)
Code: Select all
ut\system\ucc decompress CTF-Blice-Alpha.unr.uz
stage 0: 1.810315 secs
stage 1: 1.387295 secs
stage 2: 2.902404 secs
stage 3: 1.134453 secs
stage 4: 3.841292 secs
Total: 11.075759 secs
Decompressed CTF-Blice-Alpha.unr.uz -> CTF-Blice-Alpha.unr