SGA V2 - Data Block

The data block is stream of file metadata and data pairs.

File Metadata & Data

Start

Stop

Size

Type

Name

-264

-1

264

Bytes

File Metadata

0

Bytes

File Data

File Metadata

File metadata begins 264 bytes BEFORE the data offset specified by the file definition.

Metadata does not seem to be required by the engine, and other modding tools may not include metadata, as there are no explicit pointers to it.

File Metadata

Start

Stop

Size

Type

Name

0

255

256

String

File Name

256

259

4

UInt-32

Last Modified

260

263

4

CRC-32

File Data Hash

File Name

Last Modified

Unix Timestamp, truncated to the last second

File Data Hash

CRC32 hash; calculated from the raw/compressed file data in the archive

File Data

Depending on the File’s Storage Flag, this is either raw binary data, or ZLib compressed binary data