Free Hero Mesh

Artifact [8ba9026577]
Login
This is a mirror of the main repository for Free Hero Mesh. New tickets and changes will not be accepted at this mirror.

Artifact 8ba9026577d481ca8251f4b64a8dfda4453be1a7:

Wiki page [Picture file format] by zzo38 on 2018-08-18 05:12:17.
D 2018-08-18T05:12:17.366
L Picture\sfile\sformat
P be1974649fed01f69648c5fc1ff12617225e86a1
U zzo38
W 1686
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 = Compressed; order by y asc, x asc
  *  1 = Compressed; order by y asc, x desc
  *  2 = Compressed; order by y desc, x asc
  *  3 = Compressed; order by y desc, x desc
  *  4 = Compressed; order by x asc, y asc
  *  5 = Compressed; order by x desc, y asc
  *  6 = Compressed; order by x asc, y desc
  *  7 = Compressed; order by x desc, y desc
  *  15 = Uncompressed; order by y asc, x asc

(TODO)

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