Skip to content

Posts from A program for extracting game archives.

No ratings yet — be the first to rate!
Auto-translated
Is there a program that can unpack .lod files and convert their contents into something readable (in case the contents are not readable)?
I've been searching the internet for two days and can't find anything. Please help if anyone knows. :smile17:
User Avatar
Auto-translated
Take a look here; maybe you'll find something useful:)
/topic/1181/
Auto-translated
Thank you very much! :)\

*quietly went to continue working on my Heroes-like game*
In reply to Starl1ght
Auto-translated
:smile45:

What is the format of .LOD archives?

(I know the format, but the data in the archive is packed in an unclear way... :( if it's not gzip, please tell me what it is :( gzip doesn't unpack it :( it's strange that the data in .LOD files is packed with something other than gzip, if it's used in them (in Heroes) everywhere and always :confused: )
In reply to ChASnock
User Avatar
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).


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

Statistics

Welcome our newest member: Emil