H
halkun
Guest
When parsing a field script, how do you know how many Entity names there are? (The 8 byte clear-text names at offset 0x10) I don't see any refrence to them in the section header.
===EDIT===
This is what I have...
Section 1 Header
Offset Size Description
0x00---------1 byte------------Unknown
0x01---------1 byte------------Number of Sections
0x02---------1 byte------------Unknown
0x03---------2 bytes-----------Dialog Pointer
0x05---------1 byte------------Number of subroutines
0x06---------10 bytes---------Unknown
0x10---------varies------------Entity Names (ASCII text, 8 bytes each)
varies--------varies------------Section Names (ASCII text, 8 bytes each)
varies--------varies------------Subroutine Pointers (4 bytes each)
length of the header : 0x10 +(entity names+number of sections)*8+number of subroutines*4
===EDIT===
This is what I have...
Section 1 Header
Offset Size Description
0x00---------1 byte------------Unknown
0x01---------1 byte------------Number of Sections
0x02---------1 byte------------Unknown
0x03---------2 bytes-----------Dialog Pointer
0x05---------1 byte------------Number of subroutines
0x06---------10 bytes---------Unknown
0x10---------varies------------Entity Names (ASCII text, 8 bytes each)
varies--------varies------------Section Names (ASCII text, 8 bytes each)
varies--------varies------------Subroutine Pointers (4 bytes each)
length of the header : 0x10 +(entity names+number of sections)*8+number of subroutines*4