SA SCM

From GTAMods Wiki
Revision as of 16:21, 15 November 2005 by Y_Less (talk | contribs)
Jump to navigation Jump to search
[02 00 01] + 32 bit int         jump to next section
byte                            padding?? (73h)
  ...                           global vars
[02 00 01] + 32 bit int         jump to next section
byte                            section id (0)
  32 bit int                    num model names
  ...                           24 byte model names (first = unused)
[02 00 01] + 32 bit int         jump to next section
byte                            section id (1)
  32 bit int                    size of main
  32 bit int                    size of largest mission
  32 bit int                    num missions
  32 bit int                    highest number of local vars used in a mission or external script
  ...                           32 bit ints = mission offsets in file
[02 00 01] + 32 bit int         jump to next section
byte                            section id (2)
  32 bit int                    size of largest external script
  32 bit int                    num external scripts
  28 bytes per external script file:
  20 bytes                      script filename
  32 bit int                    script offset (in memory, relative to base of main.scm?)
  32 bit int                    script len
[02 00 01] + 32 bit int         jump to next section
byte                            section id (3)
  32 bit int                    ??? (0)
[02 00 01] + 32 bit int         jump to next section
byte                            section id (4)
  32 bit int                    size of global var section
  32 bit int                    ??? (862h=2146)
...                             code starts here!