OBD:BINA/OBJC/DOOR: Difference between revisions
(separated header data from OSD; corrected/explained flags) |
(corrected hex transcription errors; more explanation of the events list; also, the image was shaded incorrectly in that area, so who wants to fix it?) |
||
Line 9: | Line 9: | ||
{{OBDth}} | {{OBDth}} | ||
{{OBDtr| 0x00 | char[4] |FF0000| 43 4A 42 4F | OBJC | objects }} | {{OBDtr| 0x00 | char[4] |FF0000| 43 4A 42 4F | OBJC | objects }} | ||
{{OBDtr| 0x04 | int32 |FFFF00| | {{OBDtr| 0x04 | int32 |FFFF00| 08 38 00 00 | 14344 | size of the complete door part from this position in bytes }} | ||
{{OBDtr| 0x08 | int32 |00FF00| 27 00 00 00 | 39 | object list version }} | {{OBDtr| 0x08 | int32 |00FF00| 27 00 00 00 | 39 | object list version }} | ||
{{OBDtr| 0x0C | int32 |00FFFF| FC 00 00 00 | 252 | size of the following element in bytes }} | {{OBDtr| 0x0C | int32 |00FFFF| FC 00 00 00 | 252 | size of the following element in bytes }} | ||
Line 15: | Line 15: | ||
{{OBDtrsubgroup}} | {{OBDtrsubgroup}} | ||
{{OBDtr| 0x00 | char[4] |FFC8C8| 52 4F 4F 44 | DOOR | door }} | {{OBDtr| 0x00 | char[4] |FFC8C8| 52 4F 4F 44 | DOOR | door }} | ||
{{OBDtr| 0x04 | int32 |FFFFC8| | {{OBDtr| 0x04 | int32 |FFFFC8| 15 19 00 00 | 6421 | object ID }} | ||
{{OBDtr| 0x08 | int32 |C8FFC8| 08 00 00 00 | 8 | object flags }} | {{OBDtr| 0x08 | int32 |C8FFC8| 08 00 00 00 | 8 | object flags }} | ||
{{OBDtr| 0x0C | float |C8FFFF| 00 00 4F 43 | 207.000000| x-position of the bottom of the door }} | {{OBDtr| 0x0C | float |C8FFFF| 00 00 4F 43 | 207.000000| x-position of the bottom of the door }} | ||
Line 23: | Line 23: | ||
{{OBDtr| 0x1C | float |FFC8FF| 67 85 25 3D | 0.040410 | rotation on the y-axis in degrees }} | {{OBDtr| 0x1C | float |FFC8FF| 67 85 25 3D | 0.040410 | rotation on the y-axis in degrees }} | ||
{{OBDtr| 0x20 | float |FFC8FF| 00 00 00 00 | 0.000000 | rotation on the z-axis in degrees }} | {{OBDtr| 0x20 | float |FFC8FF| 00 00 00 00 | 0.000000 | rotation on the z-axis in degrees }} | ||
{{OBDtr2|0x24 | char[63] |FFC800| TCdouble | door | {{OBDtr2|0x24 | char[63] |FFC800| TCdouble | door class name (reference to 00957-TCdouble.[[OBD:DOOR|DOOR]] of level 0) }} | ||
{{OBDtrsubgroup|end}} | {{OBDtrsubgroup|end}} | ||
{{OBDtr| 0x63 | int16 |C800C8| 01 00 | 1 | door ID }} | {{OBDtr| 0x63 | int16 |C800C8| 01 00 | 1 | door ID }} | ||
Line 48: | Line 48: | ||
{{OBDtr2|0x79 | char[63] |EBEBEB| _DOOR_RL_FLOOR3 | first door texture (reference to 00216-_DOOR_RL_FLOOR3.[[OBD:TXMP|TXMP]]) }} | {{OBDtr2|0x79 | char[63] |EBEBEB| _DOOR_RL_FLOOR3 | first door texture (reference to 00216-_DOOR_RL_FLOOR3.[[OBD:TXMP|TXMP]]) }} | ||
{{OBDtr2|0xA8 | char[63] |8C8CCC| unused | second door texture (reference to a [[OBD:TXMP|TXMP]] file) }} | {{OBDtr2|0xA8 | char[63] |8C8CCC| unused | second door texture (reference to a [[OBD:TXMP|TXMP]] file) }} | ||
{{OBDtr |0xE7 | int16 |8C8CCC| 00 00 | 0 | number of | {{OBDtr |0xE7 | int16 |8C8CCC| 00 00 | 0 | number of event blocks following (executed when the door is locked/unlocked) }} | ||
{{OBDtr |0xE9 | | {{OBDtr |0xE9 | uint32 |8C8CCC| 00 00 00 FC | (garbage) | no events are attached to this sample DOOR; see [[OBD:BINA/OBJC/CONS|CONS]] or [[OBD:BINA/OBJC/TRIG|TRIG]] for examples and documentation of the event feature }} | ||
|} | |} | ||
Revision as of 04:48, 20 May 2025
- This is about door instances. For the door class resource, see OBD:DOOR
|
|
![]() |
Offset | Type | Raw Hex | Value | Description |
---|---|---|---|---|
0x00 | char[4] | 43 4A 42 4F | OBJC | objects |
0x04 | int32 | 08 38 00 00 | 14344 | size of the complete door part from this position in bytes |
0x08 | int32 | 27 00 00 00 | 39 | object list version |
0x0C | int32 | FC 00 00 00 | 252 | size of the following element in bytes |
First element (black outline) | ||||
Generic object data | ||||
0x00 | char[4] | 52 4F 4F 44 | DOOR | door |
0x04 | int32 | 15 19 00 00 | 6421 | object ID |
0x08 | int32 | 08 00 00 00 | 8 | object flags |
0x0C | float | 00 00 4F 43 | 207.000000 | x-position of the bottom of the door |
0x10 | float | 00 00 D8 42 | 108.000000 | y-position (height) of the bottom of the door |
0x14 | float | 98 7F CC C3 | -408.996826 | z-position of the bottom of the door |
0x18 | float | 00 00 00 00 | 0.000000 | rotation on the x-axis in degrees |
0x1C | float | 67 85 25 3D | 0.040410 | rotation on the y-axis in degrees |
0x20 | float | 00 00 00 00 | 0.000000 | rotation on the z-axis in degrees |
0x24 | char[63] | TCdouble | door class name (reference to 00957-TCdouble.DOOR of level 0) | |
Object-specific data | ||||
0x63 | int16 | 01 00 | 1 | door ID |
0x65 | int16 | 00 00 | 0 | key ID |
0x67 | bitset16 | 15 00 | 21, 0 | door options; the following bits are possible, but note that the "runtime" flags are not stored in data but only used by the engine at runtime to track door states:
|
0x69 | float | 00 00 4F 43 | 207.000000 | x-position of the center of the door |
0x6D | float | 00 00 F6 42 | 123.000000 | y-position (height) of the center of the door |
0x71 | float | 98 7F CC C3 | -408.996826 | z-position of the center of the door |
0x75 | float | 00 00 61 44 | 900.000000 | activation radius (squared) |
0x79 | char[63] | _DOOR_RL_FLOOR3 | first door texture (reference to 00216-_DOOR_RL_FLOOR3.TXMP) | |
0xA8 | char[63] | unused | second door texture (reference to a TXMP file) | |
0xE7 | int16 | 00 00 | 0 | number of event blocks following (executed when the door is locked/unlocked) |
0xE9 | uint32 | 00 00 00 FC | (garbage) | no events are attached to this sample DOOR; see CONS or TRIG for examples and documentation of the event feature |
Some interesting doors
Doors below are given as "level #:door ID".
- Instances NOT using the "frame attachment" flag
- 2:26; 3:62; 6:1,41,42,43,45,46,47,48,49; 8:73; 18:97; 19:43,44
- Instances using "mirrored door" flag
- 1:4,6,7,9,15,16,24,25,26,27,32,33,36,37,61,68,79,92,108;
- 3:50; 6:29,31,33,46,47; 8:14; 10:11,14,18,20; 18:14,42,70
- The mirroring is complementary to the transformation in the ONLV's OBOA.
- Tool Mode dialog
ONI BINARY DATA |
---|
AKVA << Other file types >> CBPI |
BINA : Binary data |
TMBD << Other BINA >> ONIE |
OBJC : Objects |
CONS << Other OBJC >> FLAG |
DOOR : Door |
Level file |