Dat Files Architecture - andreas-volz/stargus GitHub Wiki

Relational Database Schema

Documentation of the original game data that is parsed while data extraction process. This overview is not intend to document the complete schema but only the implicit (index based) connection between the tables. All other fields are documented well inside the kaitai schema. For this please look into the source code or the generated dot/svg files. Edit in Draw.io

record_size

The record_size is a flexible way to support different data versions including broodwar data. Inside the parser is a definition of the record size which is then used to divide the file size to get the number of parsed records. In case there're versions with different record size (e.g. broodwar) it's possible with a modulo operation to identify that and choose the right parser method.