The Settlers 4 .LIB archives decryption and decompression

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
Siberian GRemlin
Posts: 22
Joined: Tue Aug 02, 2016 7:46 am

The Settlers 4 .LIB archives decryption and decompression

Post by Siberian GRemlin »

Good Day.

Game uses some compression for .lib archives (game.lib and gfx.lib). Offset to TOC is located at end of lib archive. Can anybody help with decompression of it content? Free Demo available https://archive.org/details/thesettlers4_demo_201607

Added.
As I can see, files encrypted after some RLE or LZ compression.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: The Settlers 4 .LIB archives decryption and decompression

Post by aluigi »

compression is not supported yet so you will get an error, but you can extract all the non-compressed files from gfx.lib
http://aluigi.org/bms/settlers4_lib.bms
Siberian GRemlin
Posts: 22
Joined: Tue Aug 02, 2016 7:46 am

Re: The Settlers 4 .LIB archives decryption and decompression

Post by Siberian GRemlin »

Shift left FLAGS by 16 bit and you'll get id of folder name.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: The Settlers 4 .LIB archives decryption and decompression

Post by aluigi »

Script updated :D