added simple math constant folding, but commented it out for now
[gaemu.git] / dox / libformat2.txt
blob531f6dc54b4aa7d6e89eee3ccc9dc112a8885a87
1 All numbers on this documentation are in Decimal format.
2 Unless otherwise stated, values are stored as 4 byte Little-Endian Integers
3 A { and its paired } indicate insertions:
4 > Any Length followed by { <something> } indicates a string insertion
5 > Any value followed by a { on the next line indicates that the
6 > information between that { and its paired } is repeated the amount of
7 > times specified by that value.
9 *1* GM versions:
10   520(dec) for GM5.3+
11   500(dec) for GM5.0 - GM5.2
12   (GM5.0 introduced lib files)
14 *2* Argument Types:
15   0 Expression
16   1 String
17   2 Both
18   3 Boolean
19   4 Menu
20   13 Color
21   15 Font String
22   5 Sprite
23   6 Sound
24   7 Background
25   8 Path
26   9 Script
27   10 Object
28   11 Room
29   12 Font
30   14 Timeline
32 GM version needed for the following info *1*
33 Length of Tab Caption { Tab Caption }
34 Lib ID (if ID < 1000, this file is protected as official)
35 Length of Author { Author }
36 Lib Version
37 (double) is the "Last Changed:" time - days since 1899-12-30
38 Length of Info { Info }
39 Length of Initialization Code { Initialization Code }
40 Advanced
41 Number of actions (changes to a different number in official libs.)
42 Number of actions again
44   GM version needed for the following info *1*
45   Length of Name { Name }
46   Action Id
47   Image size { Image Data (bmp format) }
48   Hidden
49   Advanced
50   *Registered only (* - excluded in version 500)
51   Length of Description { Description }
52   Length of List Text { List Text }
53   Length of Hint Text { Hint Text }
54   Kind (values are 0-10)
55   Interface Kind (0=Normal, 1=None, 2=Arrows, 5=Code, 6=Text)
56   Question
57   Apply to
58   Relative
59   Argument Count
60   Number of Arguments (always 8)
61   {
62    Length of Argument Caption { Argument Caption }
63    Argument Type (0-15) *2*
64    Length of Default Argument Value { Default Argument Value }
65    Length of Menu { Menu }
66   }
67   Execution Type (0-2)
68   Length of Function Name { Function Name }
69   Length of Code { Code }