Reversing engenieering a graphic format



Hi,

I am trying to reverse engenieer some data formats from an old 1992
game called "Betrayal at Krondor" and I having some trouble with it's
graphic format. I already understand it's header format, but all the
graphic data is using a compressiom algorithim unknown to me.

This is an image file from the game (inside the zip):
http://www.geocities.com/trooper_files/files/g_lamut.zip

The first 25 bytes are header information, it stores information like
image width and height, compressed data size, uncompressed data size,
frames, etc. The 0xAE byte is the first byte of the compressed data.

The image uses a 8-bit pallete which means that the uncompressed image
probably uses only 1 byte for each pixel.

This is a in-game print-screen of the image:
http://img397.imageshack.us/my.php?image=krondor0013sk.png

I dumped all the pixels pallete index numbers from that png image into
this file:
http://www.geocities.com/trooper_files/files/saida.zip
This file is probably very similar to the uncompressed data.

I also made a few experimentes, I changed the first byte (0xAE) of the
compressed data to 0x05 then I changed the 5th pallete color to RED
(for better visualization). This is the result:
http://img390.imageshack.us/my.php?image=krondor0222vu.png

Since I don't understand much about compression, I thought this would
be the best place to ask for help :) I appreciate any kind of help,
advice, comments, etc.

Thanks,
Canassa

.



Relevant Pages

  • Re: Fixing Day 1 of a 2-Day NAC
    ... VP deck. ... The point of the 2 day format is to make all deck types ... We created the game win ... Table splitting has gone on at every NAC and Qualifier I have ever ...
    (rec.games.trading-cards.jyhad)
  • Re: finals losers losing the next game
    ... Please give an example of a format where this is the case. ... the-2/3-game is played at the same time as the finals, ... least 1 more game than Team B by the 2/3 round. ...
    (rec.sport.disc)
  • Re: International Twenty20 form
    ... silly form of the game. ... Fun it certainly is. ... been a sceptic about T20 but had thoroughly enjoyed it because it was ... And since cricket is primarily a game to be enjoyed, a format ...
    (rec.sport.cricket)
  • Re: Fixing Day 1 of a 2-Day NAC
    ... needed victory points and not a game win might exactly tranlate into ... VP deck. ... The point of the 2 day format is to make all deck types ... it warrants changing the first day of the NAC. ...
    (rec.games.trading-cards.jyhad)
  • Re: Sectionals Day 2 format: Fair or Foul?
    ... As one of the captains of the Hustlers, I am clearly biased, but I'm ... certainly not opposed to the format as it is written and played. ... game two, Filibuster played better than we did and beat us. ... thus limiting the importance of the rematch game in a non ...
    (rec.sport.disc)