What compression is this? [used in Tony Hawk games and some early Guitar Hero games]

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
GHFear
Posts: 290
Joined: Fri Mar 30, 2018 2:48 am

What compression is this? [used in Tony Hawk games and some early Guitar Hero games]

Post by GHFear »

Just want to know what compression this is to be sure.
It looks like deflate and I tried decompressing as deflate and can't get it to work.
File is attached.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: What compression is this? [used in Tony Hawk games and some early Guitar Hero games]

Post by aluigi »

it's deflate.
Works correctly with offzip and I remember to have used it recently in a script too (I remember the .xen extension).
GHFear
Posts: 290
Joined: Fri Mar 30, 2018 2:48 am

Re: What compression is this? [used in Tony Hawk games and some early Guitar Hero games]

Post by GHFear »

aluigi wrote:it's deflate.
Works correctly with offzip and I remember to have used it recently in a script too (I remember the .xen extension).


Yeah I tried offzip now with the "-z -15 -S" settings and see there is one compressed stream. I can't seem to find the decompressed size in the file itself, so I am setting the "ZSIZE = SIZE" but it will not decompress. I am missing something clearly.

I guess I can use offzip to dump it for now tho.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: What compression is this? [used in Tony Hawk games and some early Guitar Hero games]

Post by aluigi »

Use comtype deflate_noerror
GHFear
Posts: 290
Joined: Fri Mar 30, 2018 2:48 am

Re: What compression is this? [used in Tony Hawk games and some early Guitar Hero games]

Post by GHFear »

aluigi wrote:Use comtype deflate_noerror

Thanks it worked fine now.
EDIT: For anyone that wants to decompress Tony Hawk game files and Guitar hero 3 and Aerosmith, look in my Tools and Links Collection post.
There I have an updated script that can Decompress ALL variants of the PAK.XEN, PAB.XEN, IMG.XEN, TEX.XEN and so on.