Free Hero Mesh

Changes To Picture file format
Login
This is a mirror of the main repository for Free Hero Mesh. New tickets and changes will not be accepted at this mirror.

Initial version of "Picture file format"




























1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
This document describes the format of the <tt>.xclass</tt> files. This file is a Hamster archive; all numbers are small-endian (except lump sizes). The possible lumps are mentioned below.

Despite the page title, this file contains both pictures and sounds.

<h2>*.IMG</h2>
Replace the asterisk with the name of the picture (which is case-insensitive; this name is used in the [Class definition file|<tt>.class</tt> file] to identify the picture).

This lump has a header, as follows:
  *  The low nybble of the first byte of the header specifies how many picture variants there are (from 1 to 15).
  *  After that is a number of bytes equal to the number of picture variants; each one is a number from 1 to 255 indicating the picture size (the width and height are both equal to this number, so the pictures are always square).
  *  After that is a number of bytes equal to half of the number of picture variants, rounding down. The first picture uses the high nybble of the first byte of the header; other than that, in this section, they use one nybble, where the low nybbles come first. These specify the encoding format.

Encoding formats:
  *  0 =
  *  1 =
  *  2 =
  *  3 =
  *  4 =
  *  5 =
  *  6 =
  *  7 =
  *  15 = Uncompressed

(TODO)

<h2>*.WAV</h2>
Replace the asterisk with the name of the sound. The data of this lump is a RIFF WAVE file.