Skip to content

A program for extracting game archives.

User Avatar
#5
Auto-translated
ChASnock


What is the format of the .LOD archives?

(I know the format, but the data in the archive is packed with something unclear... if it's not gzip, then tell me what it is gzip doesn't unpack it it's strange that the data in .LODs is packed with something other than gzip, if it is used in them (in Heroes) everywhere )

LOD data is packed using the DEFLATE algorithm, which is also used by the gzip program.

The LOD headers contain information about the file name, offset, and original compressed size.


At the offset, there is a DEFLATE-compressed file, and the first two bytes are the Zlib header (0x78, 0x9c), and the last four are the Adler-32 checksum.
By discarding these 6 bytes, we get the DEFLATE-compressed information.


To convert to the *.gz format, you need to add 10 bytes of Gzip headers (0x1F 0x8B 0x08 0x00 0x00 0x00 0x00 0x00 0x00 0x0B) + the footer (at the end of the file): CRC-32 checksum (4 bytes) + uncompressed data size in bytes (4 bytes).


Все на земле боится времени, но время боится Героев Меча и Магии