The MCH Format is used to store sprite animations, e.g. the image frames of a creature walking.
The file starts with an image count.
|Number of frames in the animation
After the image count are frame details, repeated frameCount times.
|Width in pixels
|Height in pixels
|Offset from start of file where data begins
Each frame's image data starts at offset bytes from the start of the file.
Frame image data
Frame pixel data is stored in chunks representing horizontal runs of pixels. Each chunk has this format:
|Position to start drawing
|Number of pixels in the chunk
|Pixels using current level palette
One row's pixels may be defined by multiple chunks. The data ends when x == 0xFF.
The following tools are able to work with files in this format.
|View images in this format?
|Convert/export to another file/format?
|Import from another file/format?
|Access hidden data?
This file format was reverse engineered by Malvineous and Ceidwad. If you find this information helpful in a project you're working on, please give credit where credit is due. (A link back to this wiki would be nice too!)