Difference between revisions of "Talk:GFF"
From Dragon Age Toolset Wiki
Overture1943 (Talk | contribs) (Created page with 'Can anyone confirm whether the Field's type flags are as stated or if perhaps the bits are swapped? Based on my tests with the GFF used for save game files (.das), bit 3 is set ...') |
Overture1943 (Talk | contribs) (wrt Field info) |
||
Line 1: | Line 1: | ||
− | + | == Field information incorrect == | |
+ | After checking a .das file with the GFF editor that comes with the toolset, it would appear that FieldType is TypeID *then* flags. Also the flags are Reference (MSB, bit 16), List (bit 15), and Struct (bit 14). | ||
+ | |||
+ | This can be verified with: | ||
+ | |||
+ | <pre> | ||
+ | # let data be an array of the gff file | ||
+ | # let offset be the start of a field in the field array | ||
+ | (id, type, flags, index) = unpack("I H H I),data[offset:offset+12]) | ||
+ | |||
+ | isList = (flags & (1 << 15) >0) | ||
+ | isStruct = (flags & (1 << 14) >0) | ||
+ | isRef = (flags & (1 << 16) >0) | ||
+ | </pre> | ||
+ | |||
+ | Given this, I'm going to change the page. If I'm incorrect, feel free to revert and explain why here. | ||
+ | |||
+ | --[[User:Overture1943|Overture1943]] 19:22, 6 November 2009 (UTC) |
Revision as of 20:22, 6 November 2009
Field information incorrect
After checking a .das file with the GFF editor that comes with the toolset, it would appear that FieldType is TypeID *then* flags. Also the flags are Reference (MSB, bit 16), List (bit 15), and Struct (bit 14).
This can be verified with:
# let data be an array of the gff file # let offset be the start of a field in the field array (id, type, flags, index) = unpack("I H H I),data[offset:offset+12]) isList = (flags & (1 << 15) >0) isStruct = (flags & (1 << 14) >0) isRef = (flags & (1 << 16) >0)
Given this, I'm going to change the page. If I'm incorrect, feel free to revert and explain why here.
--Overture1943 19:22, 6 November 2009 (UTC)