SA SCM

From GTAMods Wiki
Revision as of 16:40, 15 November 2005 by Y_Less (talk | contribs)
Jump to navigation Jump to search
(02 00 01)h + 32 bit int     Jump to second segment
byte                         Padding
  (Global vars)              Space for variable saving
(02 00 01)h + 32 bit int     Jump to third segment
byte                         Segment id
  32 bit int                 Number of models
  (model names)              24 byte model names * number of models(model 0 not used)
(02 00 01)h + 32 bit int     Jump to fourth segment
byte                         Segment id
  32 bit int                 MAIN size
  32 bit int                 Largest mission size
  32 bit int                 Number of missions
  32 bit int                 Highest number of locals used in mission/exernal
  (mission addresses)        32 bit addresses * number of missions
(02 00 01)h + 32 bit int     Jump to fifth segment
byte                         Segment id
  32 bit int                 Largest external size
  32 bit int                 Number of externals
  (external data):           28 byte external data * number of externals
    20 bytes                 Name of external
    32 bit int               Offset of external
    32 bit int               Size of external
(02 00 01)h + 32 bit int     Jump to sixth segment
byte                         Segment id
  32 bit int                 Unknown
(02 00 01)h + 32 bit int     Jump to seventh segment
byte                         Segment id
  32 bit int                 Size of global var space
  32 bit int                 Unknown
(MAIN code)                  MAIN section, equal to size defined earlier
(mission code)               The mission data, missions stored at offsets defined earlier