Egg Mania *.RLE + *.LZ

Textures, recreate headers, conversions, algorithms and parsing of image files
Anexenaumoon
Posts: 119
Joined: Sun Dec 27, 2015 10:22 pm

Egg Mania *.RLE + *.LZ

Post by Anexenaumoon »

Hey so, I reversed these pair of archives from this game (So simplistic), and I was wondering if anyone could help me verify if these files have a compression algorithm? There's no mentioning of compressed sizes in the data entries of the index file, so I'm uncertain. I've attached samples below. Some of these files have corresponding *.TM2 images (easily convertible obviously). So if need be, I can upload some of those images as well. Any help would be appreciated!

~Anexenaumoon

Samples.zip
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Egg Mania *.RLE + *.LZ

Post by aluigi »

I think that only the LZ files are compressed because the RLE ones look raw.
For LZ:

Code: Select all

comtype lzss0
get SIZE long
savepos OFFSET
get ZSIZE asize
math ZSIZE - OFFSET
get NAME basename
string NAME + ".tm2"
clog NAME OFFSET ZSIZE SIZE
Anexenaumoon
Posts: 119
Joined: Sun Dec 27, 2015 10:22 pm

Re: Egg Mania *.RLE + *.LZ

Post by Anexenaumoon »

Yea you were right about the *.lz files. The *.RLE's are raw image files. The format is as follows it seems:

Code: Select all

Endian: Little
0x0 - Width of bitmap
0x4- Height of bitmap
0x8- Some sort of value
0xC- Data Start


I just don't know the encoding this image format uses. I'm not very good at images (In fact, I'm terrible at them). Luckily, developers were generous enough to leave their *.TM2 unconverted, where the raw data lines up. So, the raw images may need to be rebuilt into the *.TM2 format? Some TM2's were left by the developers and some weren't, so some images are in just raw formats instead of those TM2 files.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Egg Mania *.RLE + *.LZ

Post by aluigi »

Moved in the Graphics section.