FileFormats SET
From Seven Kingdoms
SET File Format
SET file format contains RESX data which can be read using ResourceIdx class. See RESX page for more details.
There is only one SET file included with the resources - /RESOURCE/STD.SET
Currently, I've seen only one place it is being used - GameSet methods in OGAMESET.CPP. As I've understood, according to this class STD.SET is used in the folowing (strange) way:
First, file is opened, and the record named "HEADER" is read. This record's data is actually a DBF format data, which also contains only one record. This record is stored in the following format :
struct SetRec { enum { CODE_LEN=8, DES_LEN=60 }; char code[CODE_LEN]; char des[DES_LEN]; };
"code" field contains name of the file itself (yes, it is strange) without extension - "STD". The file specified in "code" field (STD.SET itself) can be opened as a new SET file (see GameSet::open_set). I think it was meant to use STD.SET file as a reference to different SET file, but this idea was not fully implemented.
Additionally, STD.SET contains other records, which are also stored in DBF format. I've still hadn't checked how these records are used, but it looks they are related to resource storage. Gonna update this page, when I'll check it.
In other words, STD.SET has the following structure:
[name = "HEADER", data = [code = "STD", des = ...]], [name = some name, data = [some data]], [name = some name, data = [some data]], ...
