OBD:Instance file format: Difference between revisions

From OniGalore
Jump to navigation Jump to search
(New page: bla)
 
(the basics)
Line 1: Line 1:
bla
{{Table}}
{{OBD_Table_Header}}
{{OBDtrBK|Instance file header }}
{{OBDtr| 0x00 | int64  | | 1F 27 DC 33 DF BC 03 00 | 0x0003BCDF33DC271F | template checksum }}
{{OBDtr| 0x08 | int32  | | 31 33 52 56            | 'VR31'            | version }}
{{OBDtr| 0x0C | int64  | | 40 00 14 00 10 00 08 00 | 0x0008001000140040 | signature }}
{{OBDtr| 0x14 | int32  | | F9 05 00 00 | 1529      | instance count  }}
{{OBDtr| 0x18 | int32  | | D5 01 00 00 | 469      | name count }}
{{OBDtr| 0x1C | int32  | | 32 00 00 00 | 50        | template count }}
{{OBDtr| 0x20 | int32  | | 80 89 00 00 | 0x008980  | data table offset }}
{{OBDtr| 0x24 | int32  | | 20 6E 55 00 | 0x556E20  | data table size }}
{{OBDtr| 0x28 | int32  | | A0 F7 55 00 | 0x55F7A0  | name table offset }}
{{OBDtr| 0x2C | int32  | | 35 1D 00 00 | 0x001D35  | name table size }}
{{OBDtr| 0x30 | int32  | | 00 00 00 00 |          | unused }}
{{OBDtr| 0x34 | int32  | | 00 00 00 00 |          | unused }}
{{OBDtr| 0x38 | int32  | | 00 00 00 00 |          | unused }}
{{OBDtr| 0x3C | int32  | | 00 00 00 00 |          | unused }}
{{OBDtrBK|First instance descriptor }}
{{OBDtr| 0x00 | tag    | | 41 53 49 41 | 'AISA'    | template tag }}
{{OBDtr| 0x04 | int32  | | 08 00 00 00 | 0x0008    | data offset (relative to data table) }}
{{OBDtr| 0x08 | int32  | | 00 00 00 00 | 0x0000    | name offset (relative to name table) }}
{{OBDtr| 0x0C | int32  | | 80 01 00 00 | 0x0180    | data size }}
{{OBDtr| 0x10 | int32  | | 00 00 00 00 | 0        | flags; possible values:
:0x'''01''' 00 00 00 - unnamed
:0x'''02''' 00 00 00 - empty }}
{{OBDtrBK|First name index entry }}
{{OBDtr| 0x00 | int32  | | 00 00 00 00 | 0    | instance number }}
{{OBDtr| 0x04 | int32  | | 00 00 00 00 | 0    | unused }}
{{OBDtrBK|First template table entry }}
{{OBDtr| 0x00 | int64  | | A0 6D 12 00 00 00 00 00 | 0x126DA0    | template checksum }}
{{OBDtr| 0x0C | tag    | | 41 4E 42 41            | 'ABNA'      | template tag }}
{{OBDtr| 0x08 | int32  | | 01 00 00 00            | 1          | number of instances that use this template }}
{{OBDtrBK|First instance }}
{{OBDtr| 0x00 | int32  | | 01 00 00 00 | 1          | instance id <nowiki>=</nowiki> (instance number << 8) | 1}}
{{OBDtr| 0x04 | int32  | | 01 00 00 02 | 0x02000001 | file id <nowiki>=</nowiki> hash of the filename }}
{{OBDtr| 0x08 |        | |            |            | [[OBD:File_types|instance specific data]] }}
{{OBDtrBK|First name }}
{{OBDtr| 0x00 | string  | | 41 49 ... 00 | "AISAlevel1_scripts" | name string (0 terminated) }}
|}

Revision as of 22:36, 2 May 2008

Offset Type Raw Hex Value Description
Instance file header
0x00 int64 1F 27 DC 33 DF BC 03 00 0x0003BCDF33DC271F template checksum
0x08 int32 31 33 52 56 'VR31' version
0x0C int64 40 00 14 00 10 00 08 00 0x0008001000140040 signature
0x14 int32 F9 05 00 00 1529 instance count
0x18 int32 D5 01 00 00 469 name count
0x1C int32 32 00 00 00 50 template count
0x20 int32 80 89 00 00 0x008980 data table offset
0x24 int32 20 6E 55 00 0x556E20 data table size
0x28 int32 A0 F7 55 00 0x55F7A0 name table offset
0x2C int32 35 1D 00 00 0x001D35 name table size
0x30 int32 00 00 00 00 unused
0x34 int32 00 00 00 00 unused
0x38 int32 00 00 00 00 unused
0x3C int32 00 00 00 00 unused
First instance descriptor
0x00 tag 41 53 49 41 'AISA' template tag
0x04 int32 08 00 00 00 0x0008 data offset (relative to data table)
0x08 int32 00 00 00 00 0x0000 name offset (relative to name table)
0x0C int32 80 01 00 00 0x0180 data size
0x10 int32 00 00 00 00 0 flags; possible values:
0x01 00 00 00 - unnamed
0x02 00 00 00 - empty
First name index entry
0x00 int32 00 00 00 00 0 instance number
0x04 int32 00 00 00 00 0 unused
First template table entry
0x00 int64 A0 6D 12 00 00 00 00 00 0x126DA0 template checksum
0x0C tag 41 4E 42 41 'ABNA' template tag
0x08 int32 01 00 00 00 1 number of instances that use this template
First instance
0x00 int32 01 00 00 00 1 instance id = (instance number << 8)
0x04 int32 01 00 00 02 0x02000001 file id = hash of the filename
0x08 instance specific data
First name
0x00 string 41 49 ... 00 "AISAlevel1_scripts" name string (0 terminated)