View Single Post
Old 07-07-2011, 08:40 AM   #6
jestar_jokin
Rookie
 
Join Date: Sep 2004
Posts: 39
Quote:
Originally Posted by gumpy View Post
Would it be possible to edit Zak and Maniac V2 as well? If there is a tool out there to do this or if you come up with your own tool let me know.

My e-mail is:
sammymarlo@yahoo.com
Here you go, I've updated my (poor) SCUMM Image Encoder to support V2 images.

http://www.jestarjokin.net/sw/scummimg_bin_20110707.zip

(Source code (Python, requires PIL):
http://www.jestarjokin.net/sw/scummimg_src_20110707.zip)

How to use:
  • Extract game blocks with ScummRp
  • Call scummimg to decode a room's background:
    scummimg -v 2 -d d:\temp\zak_out\LFv2_0001 out.png
  • Edit your image (don't change the colour palette, or you'll get weird results!)
  • Call scummimg to encode the background (will write files in the LFLF\RO directory):
    scummimg -v 2 -e d:\temp\zak_out\LFv2_0001 in.png
  • Import game blocks with ScummRp

Some notes on the format, for anyone interested:
  • Compressed with column-based RLE.
  • Uses a "dither table" of the 128 colours used in the last column.
  • Favours using colours from the "dither table", even if it breaks the run of a colour.
  • Dither table is reset every 8 columns (presumably to keep the data in "strips").

Next task: V1. (Sorry a.borque, I thought it's easier to work with formats from later versions of SCUMM, so I'm working backwards.)

Last edited by jestar_jokin; 07-07-2011 at 08:45 AM.
jestar_jokin is offline   you may: quote & reply,