OBD:CONS: Difference between revisions

m
...
No edit summary
 
m (...)
 
(17 intermediate revisions by 5 users not shown)
Line 1: Line 1:
[[Main Page]] >> [[OBD:Oni Binary Data|Oni Binary Data]] >> [[OBD:File types|File Types]] >> CONS File
:''This is about the console class resource. For console instances, see [[OBD:BINA/OBJC/CONS]].
{{OBD_File_Header | type=CONS | prev=CBPM | next=CRSA | name=Console | family=Level | desc=The data in '''CONS''' stores the basic info on a single console. While in practice the CONS data for a given console is basically always the same, except for switching between "alarm" and "console" status and between a couple of possible geometries, this file can also be used to set a unique standing position and angle for the character using it. | align=center}}




<CENTER>[[OBD:CBPM|<==]] <FONT SIZE=5>CONS File</FONT> [[OBD:CRSA|==>]]<BR>
[[image:cons_all.gif]]
<FONT SIZE=2>Console - Level 0 File</FONT></CENTER>




http://www.fh-eberswalde.de/user/dkriesch/onistuff/images/cons_all.gif
{{Table}}
{{OBDth}}
{{OBDtr| 0x00 | res_id  |FF0000| 01 E7 02 00 | 743      | 00743-console0.CONS }}
{{OBDtr| 0x04 | lev_id  |FFFF00| 01 00 00 00 | 0        | level 0 }}
{{OBDtr| 0x08 | uint32    |00FF00| 00 00 00 00 | 0        | flags; used values:
:0x'''01''' 00 00 00 - alarm console }}
{{OBDtr| 0x0C | float    |00FFFF| CA 62 5F 3D | 0.054537  | action point x position }}
{{OBDtr| 0x10 | float    |00FFFF| 3C 9D 3B 41 | 11.725887 | action point y position }}
{{OBDtr| 0x14 | float    |00FFFF| 22 93 4E 40 | 3.227730  | action point z position }}
{{OBDtr| 0x18 | float    |FF00FF| 00 00 00 00 | 0.000000  | orientation vector x component }}
{{OBDtr| 0x1C | float    |FF00FF| 00 00 00 00 | 0.000000  | orientation vector y component }}
{{OBDtr| 0x20 | float    |FF00FF| 00 00 80 3F | 1.000000  | orientation vector z component }}
{{OBDtr| 0x24 | link    |FFC8C8| 01 C5 02 00 | 709      | link to [[OBD:OFGA|00709-.OFGA]] - console geometry }}
{{OBDtr| 0x28 | link    |FFFFC8| 01 E0 02 00 | 736      | link to 00736-.[[OBD:M3GM|M3GM]] - console screen geometry }}
{{OBDtr| 0x2C | uint32    |C8FFC8| 00 80 01 00 |          | screen GQ flags; ignored }}
{{OBDtr2|0x30 | char[32] |C8FFFF| NONE                    | inactive console screen texture name }}
{{OBDtr2|0x50 | char[32] |FFC8FF| NONE                    | active console screen texture name }}
{{OBDtr2|0x70 | char[32] |FFC800| NONE                    | used console screen texture name }}
|}


;Console geometry
:The geometry referenced here is not used to display the console during play, only the design tools display it. After a console is added to a level the geometry is baked into the [[OBD:AKEV|environment]].


<TABLE BORDER=1 WIDTH=100% CELLPADDING=2 CELLSPACING=0>
;Flags
<TR ALIGN=CENTER BGCOLOR="#FFDDBB"><TD WIDTH=15%><B>Hex</B></TD><TD WIDTH=15%><B>Translation</B></TD><TD WIDTH=70%><B>Meaning</B></TD></TR>
:The "alarm console" flag decides what autoprompt is displayed when the character is close to a console ("autoprompt_useconsole" or "autoprompt_usealarm").
<TR ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"><TD BGCOLOR="#FF0000">01 E7 02 00</TD><TD>743</TD><TD ALIGN=LEFT>00743-console0.CONS</TD></TR>
<TR ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"><TD BGCOLOR="#FFFF00">01 00 00 00</TD><TD>0</TD><TD ALIGN=LEFT>level 0</TD></TR>
<TR ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"><TD BGCOLOR="#00FF00">01 00 00 00</TD><TD>0</TD><TD ALIGN=LEFT>unknown; always the same</TD></TR>
<TR ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"><TD BGCOLOR="#00FFFF">CA 62 F5 3D</TD><TD>0.1198</TD><TD ALIGN=LEFT>x-dimension</TD></TR>
<TR ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"><TD BGCOLOR="#00FFFF">3C 9D 3B 41</TD><TD>11.7259</TD><TD ALIGN=LEFT>y-dimension</TD></TR>
<TR ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"><TD BGCOLOR="#00FFFF">22 93 4E 40</TD><TD>3.2277</TD><TD ALIGN=LEFT>z-dimension</TD></TR>
<TR ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"><TD BGCOLOR="#FF00FF">00 00 80 3F</TD><TD>1.0000</TD><TD ALIGN=LEFT>unknown; always the same</TD></TR>
<TR ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"><TD BGCOLOR="#FF00FF">00 00 80 3F</TD><TD>1.0000</TD><TD ALIGN=LEFT>unknown</TD></TR>
<TR ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"><TD BGCOLOR="#FF00FF">00 00 80 3F</TD><TD>1.0000</TD><TD ALIGN=LEFT>unknown; always the same</TD></TR>
<TR ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"><TD BGCOLOR="#FFC8C8">01 C5 02 00</TD><TD>709</TD><TD ALIGN=LEFT>link to 00709-.[[OBD:OFGA|OFGA]]</TD></TR>
<TR ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"><TD BGCOLOR="#FFFFC8">01 E0 02 00</TD><TD>736</TD><TD ALIGN=LEFT>link to 00736-.[[OBD:M3GM|M3GM]]</TD></TR>
<TR ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"><TD BGCOLOR="#C8FFC8">00 80</TD><TD>32768</TD><TD ALIGN=LEFT>unknown; always the same</TD></TR>
<TR ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"><TD BGCOLOR="#C8FFFF">01 00</TD><TD>1</TD><TD ALIGN=LEFT>unknown; always the same</TD></TR>
<TR ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"><TD BGCOLOR="#FFC8FF" COLSPAN=2><TT>NONE</TT><TD ALIGN=LEFT>unknown; always the same</TD></TR>
<TR ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"><TD BGCOLOR="#FFC800" COLSPAN=2><TT>NONE</TT><TD ALIGN=LEFT>unknown; always the same</TD></TR>
<TR ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"><TD BGCOLOR="#C800C8" COLSPAN=2><TT>NONE</TT><TD ALIGN=LEFT>unknown; always the same</TD></TR>
<TR ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"><TD BGCOLOR="#C87C64">AD DE</TD><TD>dead</TD><TD ALIGN=LEFT>not used</TD></TR>
</TABLE>


;Action point & orientation vector
:These 2 are used to compute where the character should stay and what facing it should have to use the console. Both are in console coordinates.


<HR>
;Screen textures
<CENTER>[[OBD:CBPM|<==]] <B>CONS File</B> [[OBD:CRSA|==>]]</CENTER>
:The screen textures specified here are used only if [[OBD:BINA/OBJC/CONS|CONS object]] has empty texture names.
<HR>




[[Main Page]] >> [[OBD:Oni Binary Data|Oni Binary Data]] >> [[OBD:File types|File Types]] >> CONS File
{{OBD_File_Footer | type=CONS | prev=CBPM | next=CRSA | name=Console | family=Level}}
 
{{OBD}}
281

edits