The Forum is up for sale: XeNTaX Forum looking for new owner

Mana Khemia (PS2) LZR Compression? Certainly compressed!

Read or post about compression. And decompression. Or ask questions how to decompress your files.
Darkfox
VVIP member
VVIP member
Posts: 688
Joined: Fri Jul 04, 2003 6:11 pm
Has thanked: 33 times
Been thanked: 16 times

Mana Khemia (PS2) LZR Compression? Certainly compressed!

Post by Darkfox »

I was running through the main BIN file cutting it down as I went into several AFS files stacked over each other then I came to this file with a header called LZR. I've tried extracting and converting the TIM2's but apparently the LZR indicates that they are LZR compressed. Here's a link to the cut down file:

LINK HERE

Also don't worry about the WHOLE BIN, it had no header or anything special to it of it's own, just a bunch of files in it starting from the beginning. There MAY be more LZR archives after it. If anybody can crack this, THANKS. :)
Last edited by Darkfox on Tue Sep 02, 2008 1:42 pm, edited 1 time in total.
Darkfox
VVIP member
VVIP member
Posts: 688
Joined: Fri Jul 04, 2003 6:11 pm
Has thanked: 33 times
Been thanked: 16 times

Re: Mana Khemia LZR file, LZR compression?

Post by Darkfox »

Here's also an extract from that large BIN (But not as big as it was with the AFS files XD;;
You do not have the required permissions to view the files attached to this post.
Darkfox
VVIP member
VVIP member
Posts: 688
Joined: Fri Jul 04, 2003 6:11 pm
Has thanked: 33 times
Been thanked: 16 times

Re: Mana Khemia LZR file, LZR compression?

Post by Darkfox »

ALSO, here is another ripped LZR file, it contains a TIM2 file as you can see which I tried ripping VIA Jaeder Naub and then using TIM2TGA and various other tools to convert them. All failed miserably. So obviously something is up with the TIM2s.
You do not have the required permissions to view the files attached to this post.
User avatar
xrevenge
veteran
Posts: 119
Joined: Thu Jun 05, 2008 3:46 pm
Been thanked: 9 times

Re: Mana Khemia LZR file, LZR compression?

Post by xrevenge »

i have the game back from when i was experimenting with the sfdmux thingie
video club's owner on vacation and we get to keep what we have free of charge until he comes back
i will take a look later...
Darkfox
VVIP member
VVIP member
Posts: 688
Joined: Fri Jul 04, 2003 6:11 pm
Has thanked: 33 times
Been thanked: 16 times

Re: Mana Khemia LZR file, LZR compression?

Post by Darkfox »

Hey, thanks! My automatic assumption is that LZR says it is using the LZR compression algorithm or a variation thereof. The LZR header being a way of telling that this chunk is using that algorithm. Other than that I have had no success decompressing the data.

Edit: The ELF file is around 10MBs which means it contains something. I'll check it out.

Yep, it is as I thought. The ELF file has ALL the info built in especially the indexing and LZR info. Also there seems to be just common TIMs in there, not just TM2s. There seems to be a decode string for LZR in the ELF... hm...
Darkfox
VVIP member
VVIP member
Posts: 688
Joined: Fri Jul 04, 2003 6:11 pm
Has thanked: 33 times
Been thanked: 16 times

Re: Mana Khemia LZR file, LZR compression?

Post by Darkfox »

Sorry to bump but has there been any leads on decompressing the TM2 files? Either they are a compressed/encryption method or the TM2's are modified or something making it hard to convert. Still, is it possible to correct this little situation? Like something to mass decompress/decrypt the files?
Darkfox
VVIP member
VVIP member
Posts: 688
Joined: Fri Jul 04, 2003 6:11 pm
Has thanked: 33 times
Been thanked: 16 times

Re: Mana Khemia LZR file, LZR compression?

Post by Darkfox »

Sorry to bump again but is there any news? Strangely this LZR format prevents me from converting the TIM2s... are the TIM2's really compressed? Or is it an encryption? Whatever it is, it has made them unreadable.
Darkfox
VVIP member
VVIP member
Posts: 688
Joined: Fri Jul 04, 2003 6:11 pm
Has thanked: 33 times
Been thanked: 16 times

Re: Mana Khemia LZR file, LZR compression?

Post by Darkfox »

Additionally! This same compression is uused in the Atelier Iris titles,

Here's an example from Atelier Iris - Eternal Mana. It may hold the same style.

I really wonder if this can be decompressed... it seems like a variant of LZSS, however tools I have tried for LZR compression/decompression have given incorrect results...
You do not have the required permissions to view the files attached to this post.
Darkfox
VVIP member
VVIP member
Posts: 688
Joined: Fri Jul 04, 2003 6:11 pm
Has thanked: 33 times
Been thanked: 16 times

Re: Mana Khemia (PS2) LZR Compression? Certainly compressed!

Post by Darkfox »

Hm, looked a bit more into it. Apparently LZR is as it says. But I'm uncertain if it IS LZR specifically or a LZR derived compression... I've tried some decomp tools for LZSS and LZR tools but got little results.

Closest thing I had to a breakthrough was a non-obtainable plugin for Total Commander that supported some LZR compression.

edit: Tried that plugin, it did not decompress the files. Not sure what to do. All I know is that the LZR is said to be the basis for ZIPs but it doesn't look at all like a ZIP... it seems like a purely LZR compressed file and not an archive of any sort.

Hm... LZ77 variant? Dang this is bothersome... can't seem to find sufficient data on this.
Darkfox
VVIP member
VVIP member
Posts: 688
Joined: Fri Jul 04, 2003 6:11 pm
Has thanked: 33 times
Been thanked: 16 times

Re: Mana Khemia (PS2) LZR Compression? Certainly compressed!

Post by Darkfox »

I think I found a rather difficult workaround for the compression using PCSX2 by making a data dump but this is of course timely and apparently I can't use Jaeder Naub to find them automatically (doesn't detect the correct length). So far I've only managed to use a hex editor to extract the title screen. It is off a bit mind you, I'm not completely accurate on the hex extractions but it proved that, if uncompressed, are just average TIM2s and any TIM2 program can process them.
You do not have the required permissions to view the files attached to this post.
Darkfox
VVIP member
VVIP member
Posts: 688
Joined: Fri Jul 04, 2003 6:11 pm
Has thanked: 33 times
Been thanked: 16 times

Re: Mana Khemia (PS2) LZR Compression? Certainly compressed!

Post by Darkfox »

Here's how the image looks after fixing it up some.

Edit: It'd still be nice to decompress the LZR files though. This method is rather limited and bears some odd results. (like the multiple image TIM2s that are currently nonconvertible)
You do not have the required permissions to view the files attached to this post.
User avatar
Savage
VIP member
VIP member
Posts: 559
Joined: Sun Apr 17, 2005 11:00 am
Has thanked: 16 times
Been thanked: 18 times

Re: Mana Khemia (PS2) LZR Compression? Certainly compressed!

Post by Savage »

8D Nice!
Image
Darkfox
VVIP member
VVIP member
Posts: 688
Joined: Fri Jul 04, 2003 6:11 pm
Has thanked: 33 times
Been thanked: 16 times

Re: Mana Khemia (PS2) LZR Compression? Certainly compressed!

Post by Darkfox »

Yeah, sadly there is a second form of TIM2 that doesn't convert properly.
stephanehl
beginner
Posts: 23
Joined: Fri Dec 19, 2008 7:25 pm
Has thanked: 1 time

Re: Mana Khemia (PS2) LZR Compression? Certainly compressed!

Post by stephanehl »

Hello,

Please can anyone help me how to decompress the file RPK.bin which was compress by LZR in atelier iris games?

I really need your help.
Darkfox
VVIP member
VVIP member
Posts: 688
Joined: Fri Jul 04, 2003 6:11 pm
Has thanked: 33 times
Been thanked: 16 times

Re: Mana Khemia (PS2) LZR Compression? Certainly compressed!

Post by Darkfox »

It would be beneficial to be able to decompress these files as VRAM seems to splice several TIM2s into one instance.
Post Reply