Hello guys 🙂!
I decided to do a little experiment. I added supporting of a zip-compressing of VDF volumes in my vdfs32g.dll (library from Union project). For now some mods (cheeked on RUS community projects and LoA from wop.de) are compressed on 50% or more. For good performance was written a segmented compression format. VDFS can access to any file information without complete decompressing. Decompressed information will be added to the cache for quick re-use.
See details about format and compression library this:
https://github.com/Gratt-5r2/ZippedStream
For compress can be used VDFS tool with a ZIP support (see link below). For saving zipped volumes click on [Files->SaveAs] and choose [Zipped VDF/MOD] format. +Optional can be checked a backup checkbox [Volume->Create backups on save].
IMPORTANT: For now Ogg cannot be compressed to zip, I will add support later (but it makes no sense, because Ogg almost doesn't compress).
So, interesting to discuss about this.
Library and VDFS tool:
https://drive.google.com/drive/folde...TA?usp=sharing
Russian thread of tool:
https://worldofplayers.ru/threads/42314/
Tests of Unofficial update v24 (RUS):
g2a_nr_scriptpatch_v24.mod 184 576 КБ -> 69 898 ККБ (37,9%)
g2a_nr_scriptpatch_v24_speech_add.mod 2 700 КБ -> 2 315 КБ (85,7%)
g2a_nr_scriptpatch_v24_speech_fix.mod 20 264 КБ -> 17 014 КБ (84,0%)
g2a_nr_scriptpatch_v24_wasteland.mod 46 880 КБ -> 16 200 КБ (34,6%)
g2a_nr_scriptpatch_v24_widescreen.mod 6 146 КБ -> 3 936 КБ (64,0%)