Can anyone help me decompress/decode this single file?

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
Omarios
Posts: 14
Joined: Mon Sep 21, 2020 7:54 am

Can anyone help me decompress/decode this single file?

Post by Omarios »

It is a compressed .xml file from the game ATV Offroad Fury 4. I highly believe it has an lzss compression because thats how the game's developers (Climax Studios) do things.

I copied it directly from the archive.imp file and pasted it in HxD, so its viewable there. Some text is readable and uncompressed but the rest is gibberish due to the compression, is there a way that I can make it fully readable? Because I have been searching online and I don't believe that there is a tool to decompress lzss compressed files.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Can anyone help me decompress/decode this single file?

Post by aluigi »

You need to cut the compressed data from the correct starting point or the result will be invalid.
Just a simple script for lzss:

Code: Select all

comtype lzss
get ZSIZE asize
xmath SIZE "ZSIZE * 10"
clog "decompressed.xml" 0 ZSIZE SIZE
Omarios
Posts: 14
Joined: Mon Sep 21, 2020 7:54 am

Re: Can anyone help me decompress/decode this single file?

Post by Omarios »

aluigi wrote:You need to cut the compressed data from the correct starting point or the result will be invalid.
Just a simple script for lzss:

Code: Select all

comtype lzss
get ZSIZE asize
xmath SIZE "ZSIZE * 10"
clog "decompressed.xml" 0 ZSIZE SIZE

Thanks man.

One last request from me, can you please check this archive? Because whenever I use it with the IMP script it tells me that the compression algorithm is invalid. It does contain an archive.xml file so hopefully it will be easier and faster for you to check.

http://www.mediafire.com/file/f6no3i51e ... 3.zip/file

I know that I might have bombarded you with messages, but you're the only one who knows how to do this.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Can anyone help me decompress/decode this single file?

Post by aluigi »

I updated imp0.bms few days ago
Omarios
Posts: 14
Joined: Mon Sep 21, 2020 7:54 am

Re: Can anyone help me decompress/decode this single file?

Post by Omarios »

aluigi wrote:I updated imp0.bms few days ago

THANK YOUUUUUU!!!!