GOB Files


GOB Files General

COB files are used for distributing many files in one easy to use file.Think of it as a container file for many others. These are not compatable with Dark Forces Gob files and vice versa. The new JK gob files may contain a directory path as well the actual file name.

The file is structured in three parts.

File structure:

GobHeader
Gob Item information
Gob Data 

The header for an GOB file is:


GOBHeader=record
array[0..2] of char;    {'GOB '}
byte;                   {Apparently - version= x20 }
Longint;                {Offset to first file size from begining of file= x14 }
Longint;                {Offset to #of GobItems from file beginning= x0C }
Longint;                {# of items in gob file }

Followed by the Item Information .

GobItems =record
Longint:              {offset from begining of file}
Longint;              {Length of file}
array[0..127] of char {path and name of file}

Finaly followed by the file data