Is there any info around on the implementation of Factorio's zip file handling?
I've started using the 'autosave-compression-level=none' option in config.ini, but getting some unexpected values in the file headers of the resulting zip file (well possibly unexpected because I don't fully understand the intricacies of the zip spec!)...
In the usual compressed Factorio save zip, the files are marked as "Deflate" compression method, with level of "Fastest".
In the 'autosave-compression-level=none' zip, the files are also marked as "Deflate" compression method, but with level of "Normal"... and the resulting packed size of the files are all slightly larger than the original uncompressed file size.
What I expected to see was the "Stored" compression method, and the packed size of the files identical to original.
Background: I've an external tool to manage the saves folder - timestamping zip filenames, archiving off to HDD etc. Now I want it to zip the older uncompressed saves in a Factorio compatible format.
Cheers.
Zip file compression metadata curiosity
Re: Zip file compression metadata curiosity
Your question made me curious, so i tried repacking safes with 7zip.
deflate works with any compression level
deflate64 reports corrupted file
deflate works with any compression level
deflate64 reports corrupted file
My Mods: mods.factorio.com
Re: Zip file compression metadata curiosity
Zlib 1.1.4 per this, apparently (as of a few months back) - not sure if that helps.
There are 10 types of people: those who get this joke and those who don't.