SCO

From GTAMods Wiki
Revision as of 10:48, 3 February 2009 by Sacky (talk | contribs)
Jump to navigation Jump to search

SCO files contain GTA 4's game scripts. Its new format replaces old scm one.

File Format

There are 2 types of SCO files, an encrypted and unencrypted one. Each file however shares the same unencrypted header structure, and you can use this to determine which type of SCO file you are dealing with. The size of this header is 24 bytes.

4b - CHAR[4]/UINT32 - SCO Identifier
4b - UINT32 - Code Size
4b - UINT32 - Local Var Size
4b - UINT32 - Global Var Size
4b - UINT32 - Script Flags
4b - UINT32 - Signature