Skip to content

GFF struct types list

elegoselegos Member Posts: 12
edited December 2017 in Tools & Plugin Developers
Hello!

I'm reading and trying to parse the GFF files. I've parsed the header and the StructArray parts, and I've got a question about the latter.

In the documentation, it is written that the Struct.Type represents a "programmer-defined integer ID", but the first which is the "Top-Level Struct". Fine. But is there a known list anywhere? I can't seem to find it.

This is an FAC file that I extracted from an ERF (mod) file of my own:
Header: {FileType: FAC , FileVersion: V3.2, StructCount: 26, FieldCount: 77, LabelCount: 8, FieldDataCount: 53b, FieldIndicesCount: 308b, ListIndicesCount: 108b} StructArray: [ {Type: Top-Level struct, DataOrDataOffset: 60, FieldCount: 2} {Type: 0, DataOrDataOffset: 0, FieldCount: 3} {Type: 1, DataOrDataOffset: 12, FieldCount: 3} {Type: 2, DataOrDataOffset: 24, FieldCount: 3} {Type: 3, DataOrDataOffset: 36, FieldCount: 3} {Type: 4, DataOrDataOffset: 48, FieldCount: 3} {Type: 0, DataOrDataOffset: 68, FieldCount: 3} {Type: 1, DataOrDataOffset: 80, FieldCount: 3} {Type: 2, DataOrDataOffset: 92, FieldCount: 3} {Type: 3, DataOrDataOffset: 104, FieldCount: 3} {Type: 4, DataOrDataOffset: 116, FieldCount: 3} {Type: 5, DataOrDataOffset: 128, FieldCount: 3} {Type: 6, DataOrDataOffset: 140, FieldCount: 3} {Type: 7, DataOrDataOffset: 152, FieldCount: 3} {Type: 8, DataOrDataOffset: 164, FieldCount: 3} {Type: 9, DataOrDataOffset: 176, FieldCount: 3} {Type: 10, DataOrDataOffset: 188, FieldCount: 3} {Type: 11, DataOrDataOffset: 200, FieldCount: 3} {Type: 12, DataOrDataOffset: 212, FieldCount: 3} {Type: 13, DataOrDataOffset: 224, FieldCount: 3} {Type: 14, DataOrDataOffset: 236, FieldCount: 3} {Type: 15, DataOrDataOffset: 248, FieldCount: 3} {Type: 16, DataOrDataOffset: 260, FieldCount: 3} {Type: 17, DataOrDataOffset: 272, FieldCount: 3} {Type: 18, DataOrDataOffset: 284, FieldCount: 3} {Type: 19, DataOrDataOffset: 296, FieldCount: 3}]

So, what are types 0, 1, 2, ... 19?

Thanks :)
Post edited by elegos on

Comments

Sign In or Register to comment.