Free Hero Mesh

Changes To Level 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.

Changes to "Level file format" between 2018-08-18 05:13:29 and 2018-08-18 06:14:28

51
52
53
54
55
56
57
58

59
60
61
62
63
51
52
53
54
55
56
57

58
59
60
61
62
63







-
+





  *  bit7-bit6 = Indicate which parameters are set. 0=Misc2 and Misc3, 1=Misc1, 2=Misc1 and Misc2, 3=Misc1 and Misc2 and Misc3.
  *  bit5-bit4 = Data type of Misc3. 0=number, 1=class, 2=message, 3=string. (Directions and key codes also use type 0.)
  *  bit3-bit2 = Data type of Misc2.
  *  bit1-bit0 = Data type of Misc1.

After the data type byte will be the misc data; any misc data not defined implicitly has a value of zero. The data is represented as a 16-bit number, in order Misc1, Misc2, Misc3, whichever are present (as specified above).

(Note: In EKS Hero Meshm the data type is used only in the editor. In Free Hero Mesh, data is strongly typed and so the data type is used at run time too.)
(Note: In EKS Hero Mesh the data type is used only in the editor. In Free Hero Mesh, data is strongly typed and so the data type is used at run time too.)

After the objects is a byte with value 0xFF to indicate there are no more objects, and then the level strings (if any). The level strings are simply null-terminated strings (which can include formatting controls).

<h2>LEVEL.IDX</h2>
This lump contains a series of 16-bit numbers, which are the ID numbers of the levels, in the display order.