OBD:BINA/OBJC/CONS: Difference between revisions

From OniGalore
< OBD:BINA‎ | OBJC
Jump to navigation Jump to search
No edit summary
m (there is *no* 0x00 bit ^^)
Line 1: Line 1:
{{OBD OBJC Header|align=center|type=CONS|prev=CMBT|next=DOOR|name=Console|onistuff=b_co}}
{{OBD OBJC Header|align=center|type=CONS|prev=CMBT|next=DOOR|name=Console|onistuff=b_co}}
----
----
----
----
;Example used is '''CJBOConsole.BINA''' from '''level3_Final'''


http://www6.fh-eberswalde.de/user/dkriesch/onistuff/images/bin_r_co.gif
http://www6.fh-eberswalde.de/user/dkriesch/onistuff/images/bin_r_co.gif
;First console object (black outline) listed below




Line 61: Line 64:
| bgcolor="#C87C64" | 08 00
| bgcolor="#C87C64" | 08 00
| 8
| 8
| align="LEFT" | console options; it is a bitset, see below
| align="LEFT" | console options (bitset, see below)
|-
|-
| colspan="2" bgcolor="#B0C3D4" | <tt>_con_INFO</tt>
| colspan="2" bgcolor="#B0C3D4" | <tt>_con_INFO</tt>
Line 74: Line 77:
| bgcolor="#64AAAA" | 01 00
| bgcolor="#64AAAA" | 01 00
| 1
| 1
| align="LEFT" | amount of blocks that follow
| align="LEFT" | amount of console events
|-
|-
| colspan="3" |'''first block'''
! colspan="3" |First event (grey outline) listed below
|-
|-
| bgcolor="#EBEBEB" | 01 00
| bgcolor="#EBEBEB" | 01 00
| 1
| 1
| align="LEFT" | block option ID; see below
| align="LEFT" | console event type (see below); here, "execute script" when the console is used
|-
|-
| colspan="2" bgcolor="#8C8CCC" | <tt>level3c</tt>
| colspan="2" bgcolor="#8C8CCC" | <tt>level3c</tt>
| align="LEFT" | script function called up when the console is used
| align="LEFT" | console event parameter (see below); here, string to be fed to the script engine
|-
| colspan="3" |'''end of the first block'''
|-
|}
|}
|}
|}
;block option IDs
;Console events
:01 - execute script - this one is "32 byte string", rest is "short"
:The number of events is specified at 0x124, first event starts at 0x126
:02 - activate turret
:Event consists of a '''short''' (event type) and of a parameter (either another '''short''' or a 32-byte string)
:03 - deactivate turret  
::(see below for the event types and the corresponding parameters)
:04 - activate console  
:If necessary (i.e., if there are no events, of if there is an even number of script events),
:05 - deactivate console  
::the CONS object is completed to a 4-byte multiple size by means of another (null) '''short'''.
:06 - activate alarm  
;Console event ID - description - event parameter type
:07 - deactivate alarm
:0x01 - execute script - char[32]
:08 - activate trigger  
:0x02 - activate turret - short
:09 - deactivate trigger  
:0x03 - deactivate turret - short
:0a - lock door  
:0x04 - activate console - short
:0b - unlock door  
:0x05 - deactivate console - short
;console options
:0x06 - activate alarm - short
:00 - console deactivated
:0x07 - deactivate alarm - short
:01 -  unknown  
:0x08 - activate trigger - short
:02 - unknown  
:0x09 - deactivate trigger - short
:04 - unknown  
:0x0A - lock door - short
:08 - console activated
:0x0B - unlock door - short
:10 - unknown  
;Console options bitset
:20 - use punch animation  
:0x01 - unknown, never used
:40 - unknown  
:0x02 - unknown, never used
:80 - unknown  
:0x04 - unknown, never used
:0x08 - console active at level load
:0x10 - unknown, never used
:0x20 - use punch animation (??? [[User:Geyser|geyser]])
:0x40 - unknown, never used
:0x80 - unknown, never used
 


----
----

Revision as of 00:54, 4 December 2006

ONI BINARY DATA
AKVA << Other file types >> CBPI
BINA : Binary data
TMBD << Other BINA >> ONIE
OBJC : Objects
CMBT << Other OBJC >> DOOR
CONS : Console
XML tutorial
Overview @ Oni Stuff
OBD.png


Example used is CJBOConsole.BINA from level3_Final


bin_r_co.gif


First console object (black outline) listed below


Hex Translation Meaning
53 4E 4F 43 CONS console
57 12 00 00 5463 old file ID
08 00 00 00 8 unknown
71 0C 6C 44 944.194396 x-position of the spawn point of the console
00 00 D8 C1 -27.000000 y-position (height) of the spawn point of the console
68 05 EB 41 29.377639 z-position of the spawn point of the console
42 FD 17 38 0.000036 rotation on the x-axis in degrees
00 00 87 43 270.000000 rotation on the y-axis in degrees
00 00 00 00 0.000000 rotation on the z-axis in degrees
console_data link by name to global console class (console_data.CONS)
01 00 1 console ID
08 00 8 console options (bitset, see below)
_con_INFO "console deactivated" texture : link by name to global texture _CON_INFO.TXMP
_con_INFO "console activated" texture : link by name to global texture _CON_INFO.TXMP
_con_INFO "console used" texture : link by name to global texture _CON_INFO.TXMP
01 00 1 amount of console events
First event (grey outline) listed below
01 00 1 console event type (see below); here, "execute script" when the console is used
level3c console event parameter (see below); here, string to be fed to the script engine
Console events
The number of events is specified at 0x124, first event starts at 0x126
Event consists of a short (event type) and of a parameter (either another short or a 32-byte string)
(see below for the event types and the corresponding parameters)
If necessary (i.e., if there are no events, of if there is an even number of script events),
the CONS object is completed to a 4-byte multiple size by means of another (null) short.
Console event ID - description - event parameter type
0x01 - execute script - char[32]
0x02 - activate turret - short
0x03 - deactivate turret - short
0x04 - activate console - short
0x05 - deactivate console - short
0x06 - activate alarm - short
0x07 - deactivate alarm - short
0x08 - activate trigger - short
0x09 - deactivate trigger - short
0x0A - lock door - short
0x0B - unlock door - short
Console options bitset
0x01 - unknown, never used
0x02 - unknown, never used
0x04 - unknown, never used
0x08 - console active at level load
0x10 - unknown, never used
0x20 - use punch animation (??? geyser)
0x40 - unknown, never used
0x80 - unknown, never used




Template:OBD TXT



ONI BINARY DATA
AKVA << Other file types >> CBPI
BINA : Binary data
TMBD << Other BINA >> ONIE
OBJC : Objects
CMBT << Other OBJC >> DOOR
CONS : Console
[[OBD:File types/{{{family}}}|{{{family}}} file]]