OBD:BINA/ONIE: Difference between revisions

3,448 bytes removed ,  8 December 2023
m
added family to footer template call
mNo edit summary
m (added family to footer template call)
 
(18 intermediate revisions by 5 users not shown)
Line 1: Line 1:
{|align=center
{{OBD BINA Header|align=center|prev=OBJC|type=ONIE|next=PAR3|name=Oni Impact Effects|onistuff=b_ie}}
![[OBD:Oni Binary Data|ONI BINARY DATA]]
|-
![[OBD:AKVA|AKVA]] << [[OBD:File types|Other file types]] >> [[OBD:CBPI|CBPI]]
|-
!<FONT SIZE=5>BINA : Binary data</FONT>
|-
![[OBD:File types/Start|Start file]]
|-
![[OBD:BINA/OBJC/WEAP|WEAP]] << [[OBD:BINA|Other BINA]] >> [[OBD:BINA/PAR3|PAR3]]
|-
!<FONT SIZE=5>ONIE : Oni Impact Effects</FONT>
|-
!# place for struct def link #
|-
![http://www6.fh-eberswalde.de/user/dkriesch/onistuff/oni_b_ie.htm Overview @ Oni Stuff]
|}




<B>Header and Part 1:</B>
----
==General table==
[[Image:Bin_r_i1.gif]]




http://www6.fh-eberswalde.de/user/dkriesch/onistuff/images/bin_r_i1.gif
{{Table}}
 
{{OBDth}}
 
{{OBDtr| 0x00 | int32    |FF0000| 45 49 4E 4F | ONIE   | Oni impact effects }}
{| BORDER=1 WIDTH=100% CELLPADDING=2 CELLSPACING=1 BGCOLOR="#000000"
{{OBDtr| 0x04 | int32    |FFFF00| B8 B7 00 00 | 47032   | 47032 bytes is the length of the following impact effects part from this position }}
|- ALIGN=CENTER BGCOLOR="#FFDDBB"
{{OBDtr| 0x08 | int32    |00FF00| 02 00 00 00 | 2       | version }}
| WIDTH=15% | <B>Hex</B>
{{OBDtr| 0x0C | int32    |00FFFF| 5E 00 00 00 | 94     | number of impacts }}
| WIDTH=15% | <B>Translation</B>
{{OBDtr| 0x10 | int32    |FFC8C8| 1E 00 00 00 | 30     | number of materials }}
| WIDTH=60% | <B>Meaning</B>
{{OBDtr| 0x14 | int32    |FFFFC8| 54 00 00 00 | 84     | number of particles }}
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
{{OBDtr| 0x18 | int32    |C8FFC8| 20 01 00 00 | 288     | number of sounds }}
| BGCOLOR="#FF0000" | 45&nbsp;49&nbsp;4E&nbsp;4F
{{OBDtr| 0x1C | int32    |C8FFFF| 69 01 00 00 | 361     | number of impact effects }}
| ONIE
{{OBDtr| 0x20 | int32    |FFC8FF| DF 00 00 00 | 223     | number of material indices }}
| ALIGN=LEFT | Oni impact effects
{{OBDtrBK|Impact table }}
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
{{OBDtr| 0x00 | char[128] |FFC800| 44 65 66... | Default | impact name (Default.[[OBD:Impt|Impt]]) }}
| BGCOLOR="#FFFF00" | B8 B7 00 00
{{OBDtr| 0x80 | int16    |FFC800| 00 00      | 0      | runtime only }}
| 47032
{{OBDtr| 0x82 | int16    |FFC800| 00 00      | 0      | runtime only }}
| ALIGN=LEFT | 47032 bytes is the length of the following impact effects part from this position
{{OBDtrBK|Material table }}
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
{{OBDtr| 0x00 | char[128] |FFC800| 44 65 66... | Default | material name (Default.[[OBD:Mtrl|Mtrl]]) }}
| BGCOLOR="#00FF00" | 02 00 00 00
{{OBDtr| 0x80 | int16    |FFC800| 00 00      | 0      | runtime only }}
| 2
{{OBDtr| 0x82 | int16    |FFC800| 00 00      | 0      | runtime only }}
| ALIGN=LEFT | amount of packages of part 1
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| BGCOLOR="#00FFFF" | 5E 00 00 00
| 94
| ALIGN=LEFT | amount of blocks of the first package of part 1 and amount of packages of part 2
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| BGCOLOR="#FFC8C8" | 1E 00 00 00
| 30
| ALIGN=LEFT | amount of blocks of the second package of part 1 (this package is a stand-alone package; it doesn't link to any other part; it contains the names of the material types)
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| BGCOLOR="#FFFFC8" | 54 00 00 00
| 84
| ALIGN=LEFT | amount of packages of part 3
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| BGCOLOR="#C8FFC8" | 20 01 00 00
| 288
| ALIGN=LEFT | amount of packages of part 4
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| BGCOLOR="#C8FFFF" | 69 01 00 00
| 361
| ALIGN=LEFT | amount of packages of part 5
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| BGCOLOR="#FFC8FF" | DF 00 00 00
| 223
| ALIGN=LEFT | amount of packages of part 6
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#000000"
| COLSPAN=3 | <FONT SIZE=2 COLOR="#FFFFFF">Below follows the first entry of the first block of the first package of part 1.</FONT>
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| BGCOLOR="#FFC800" COLSPAN=2 | <TT>Default</TT>
| ALIGN=LEFT | impact effect name (notes)
|}
|}




<B>Part 2:</B>
----
==Impact lookup table==


This table has the same number of entries as the impact table.


http://www6.fh-eberswalde.de/user/dkriesch/onistuff/images/bin_r_i2.gif
[[Image:Bin_r_i2.gif]]




{| BORDER=1 WIDTH=100% CELLPADDING=2 CELLSPACING=1 BGCOLOR="#000000"
{{Table}}
|- ALIGN=CENTER BGCOLOR="#FFDDBB"
{{OBDth}}
| WIDTH=15% | <B>Hex</B>
{{OBDtr| 0x00 | int16 |FFC8C8| 00 00       | 0   | index into the impact table }}
| WIDTH=15% | <B>Translation</B>
{{OBDtr| 0x02 | int16 |FFFFC8| 00 00       | 0   | number of used entries in the material index table }}
| WIDTH=60% | <B>Meaning</B>
{{OBDtr| 0x04 | int32 |C8FFC8| DF 00 00 00 | 223 | index of the first used entry in the material index table }}
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#000000"
| COLSPAN=3 | <FONT SIZE=2 COLOR="#FFFFFF">Below follows the first package of part 2.</FONT>
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| BGCOLOR="#FFC8C8" | 00 00
| 0
| ALIGN=LEFT | part 2 ID
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| BGCOLOR="#FFFFC8" | 00 00
| 0
| ALIGN=LEFT | number of used packages in part 6
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| BGCOLOR="#C8FFC8" | DF&nbsp;00&nbsp;00&nbsp;00
| 223
| ALIGN=LEFT | start package in part 6
|}
|}




<B>Part 3:</B>
----
==Particle table==
[[Image:Bin_r_i3.gif]]




http://www6.fh-eberswalde.de/user/dkriesch/onistuff/images/bin_r_i3.gif
{{Table}}
{{OBDth}}
{{OBDtr| 0x00 | char[64] |FFC8C8| 77 31 30... | w10_sni_x02| particle name (06193-3RAPw10_sni_x02.[[OBD:BINA/PAR3|BINA]]) }}
{{OBDtr| 0x40 | int32    |FFFFC8|            |            | runtime: pointer to particle class }}
{{OBDtr| 0x44 | int32    |C8FFC8| 00 00 00 00 | 0          | orientation type; the following values are possible:
:0 - impact projectile orientation?
:1 - impact projectile reversed orientation?
:2 - impact direction perpendicular?
:3 - impact projectile velocity orientation?
}}
{{OBDtr| 0x48 | int32    |C8FFFF| 05 00 00 00 | 5        | location type; the following values are possible:
:0 - impact location
:1 - impact location + impact direction * float value at 0x4C
:4 - impact location; used for decals; at 0x4C there are 2 true/false bytes that control some decal parameters
:5 - impact location and attach to character?
}}
{{OBDtr| 0x4C |          |FFC8FF| 00 00 00 00 |          | depends on location type }}
{{OBDtr| 0x50 |          |FFC800| 00 00 00 00 |          | unknown; always zero }}
|}




{| BORDER=1 WIDTH=100% CELLPADDING=2 CELLSPACING=1 BGCOLOR="#000000"
----
|- ALIGN=CENTER BGCOLOR="#FFDDBB"
 
| WIDTH=15% | <B>Hex</B>
==Sound table==
| WIDTH=15% | <B>Translation</B>
[[Image:Bin_r_i4.gif]]
| WIDTH=60% | <B>Meaning</B>
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#000000"
| COLSPAN=3 | <FONT SIZE=2 COLOR="#FFFFFF">Below follows the first package of part 3.</FONT>
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| BGCOLOR="#FFC8C8" COLSPAN=2 | <TT>w10_sni_x02</TT>
| ALIGN=LEFT | particle name (06193-3RAPw10_sni_x02.[[OBD:BINA/PAR3|BINA]])
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| BGCOLOR="#FFFFC8" | A8&nbsp;67&nbsp;7A&nbsp;00
| 7A&nbsp;67&nbsp;A8
| ALIGN=LEFT | old offset link
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| BGCOLOR="#C8FFC8" | 00 00 00 00
| 0
| ALIGN=LEFT | modifier?; if yes, the following modifiers are possible:<BR>&nbsp;<BR>0 - any<BR>1 - heavy<BR>2 - medium<BR>3 - light<BR>&nbsp;
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| BGCOLOR="#C8FFFF" | 05 00 00 00
| 5
| ALIGN=LEFT | identifier (bitset?) for the next row
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| BGCOLOR="#FFC8FF" | 00 00 00 00
| 0
| ALIGN=LEFT | unknown; 2 shorts or a float; depends on the identifier above
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| BGCOLOR="#FFC800" | 00 00 00 00
| 0
| ALIGN=LEFT | unknown; always zero
|}




<B>Part 4:</B>
{{Table}}
{{OBDth}}
{{OBDtr| 0x00 | char[32] |FFC8C8|            | not used  | sound name (link to an [[OBD:OSBD|OSBD]] file) }}
{{OBDtr| 0x20 |          |FFFFC8| CD CD      |            | ignored }}
{{OBDtr| 0x22 |          |C8FFC8| CD CD      |            | ignored }}
{{OBDtr| 0x24 | int32    |C8FFFF| 00 00 00 00 |            | runtime: pointer to sound }}
{{OBDtr| 0x28 | int16    |FFC8FF| 01 00      | 1          | AI can hear; 0 <nowiki>=</nowiki> no, 1 <nowiki>=</nowiki> yes }}
{{OBDtr| 0x2A | int16    |FFC800| 03 00      | 3          | AI sound type; the following types are possible:
:0 - unimportant
:1 - interesting
:2 - danger
:3 - melee
:4 - gunfire }}
{{OBDtr| 0x2C | float    |C800C8| 00 00 16 43 | 150.000000 | AI sound radius }}
|}




http://www6.fh-eberswalde.de/user/dkriesch/onistuff/images/bin_r_i4.gif
----
==Impact effects table==
[[Image:Bin_r_i5.gif]]




{| BORDER=1 WIDTH=100% CELLPADDING=2 CELLSPACING=1 BGCOLOR="#000000"
{{Table}}
|- ALIGN=CENTER BGCOLOR="#FFDDBB"
{{OBDth}}
| WIDTH=15% | <B>Hex</B>
{{OBDtr| 0x00 | int16 |FFC8C8| 37 00      | 55 | number of the used impact of the first package of part 1 }}
| WIDTH=15% | <B>Translation</B>
{{OBDtr| 0x02 | int16 |FFFFC8| 01 00      | | number of the used material of the second package of part 1 }}
| WIDTH=60% | <B>Meaning</B>
{{OBDtr| 0x04 | int16 |C8FFC8| 00 00      | | component; the following components are possible:
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#000000"
:0 - impact
| COLSPAN=3 | <FONT SIZE=2 COLOR="#FFFFFF">Below follows the first package of part 4.</FONT>
:1 - damage
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
:2 - projectile }}
| BGCOLOR="#FFC8C8" COLSPAN=2 | not used
{{OBDtr| 0x06 | int16 |C8FFFF| 00 00      | | modifier; the following modifiers are possible:
| ALIGN=LEFT | sound name (link to an [[OBD:OSBD|OSBD]] file)
:0 - any
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
:1 - heavy
| BGCOLOR="#FFFFC8" | CD CD
:2 - medium
| 52685
:3 - light }}
| ALIGN=LEFT | unknown; maybe it's garbage that belongs to the sound name field above
{{OBDtr| 0x08 | int16 |FFC8FF| 01 00       | 1 | number of used entries from the particle table }}
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
{{OBDtr| 0x0A | int16 |FFC800| 00 00      | 0 | unknown; looks like garbage to me }}
| BGCOLOR="#C8FFC8" | CD CD
{{OBDtr| 0x0C | int32 |C800C8| FF FF FF FF | -1 | index of the used entry in sound table; -1 <nowiki>=</nowiki> not used }}
| 52685
{{OBDtr| 0x10 | int32 |C87C64| 53 00 00 00 | 83 | index of the first used entry in the particle table }}
| ALIGN=LEFT | unknown; maybe it's garbage that belongs to the sound name field above
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| BGCOLOR="#C8FFFF" | 00 00 00 00
| not used
| ALIGN=LEFT | old offset link
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| BGCOLOR="#FFC8FF" | 01 00
| 1
| ALIGN=LEFT | AI can hear (0 = no, 1 = yes)
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| BGCOLOR="#FFC800" | 03 00
| 3
| ALIGN=LEFT | sound type; the following types are possible:<BR>&nbsp;<BR>0 - unimportant<BR>1 - interesting<BR>2 - danger<BR>3 - melee<BR>4 - gunfire<BR>&nbsp;
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| BGCOLOR="#C800C8" | 00&nbsp;00&nbsp;16&nbsp;43
| 150.000000
| ALIGN=LEFT | earshot radius
|}
|}




<B>Part 5:</B>
----
 
==Material index table==
 
[[Image:Bin_r_i6.gif]]
http://www6.fh-eberswalde.de/user/dkriesch/onistuff/images/bin_r_i5.gif




{| BORDER=1 WIDTH=100% CELLPADDING=2 CELLSPACING=1 BGCOLOR="#000000"
{{Table}}
|- ALIGN=CENTER BGCOLOR="#FFDDBB"
{{OBDth}}
| WIDTH=15% | <B>Hex</B>
{{OBDtr| 0x00 | int16 |FFC8C8| 01 00       | 1  | index into material table }}
| WIDTH=15% | <B>Translation</B>
{{OBDtr| 0x02 | int16 |FFFFC8| 01 00       | 1   | number of used entries in the impact effect table }}
| WIDTH=60% | <B>Meaning</B>
{{OBDtr| 0x04 | int32 |C8FFC8| 54 01 00 00 | 340 | index of the first used entry in the impact effect table }}
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#000000"
| COLSPAN=3 | <FONT SIZE=2 COLOR="#FFFFFF">Below follows the first package of part 5.</FONT>
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| BGCOLOR="#FFC8C8" | 37 00
| 55
| ALIGN=LEFT | number of the used impact of the first package of part 1
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| BGCOLOR="#FFFFC8" | 01 00
| 1
| ALIGN=LEFT | number of the used material of the second package of part 1
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| BGCOLOR="#C8FFC8" | 00 00
| 0
| ALIGN=LEFT | component; the following components are possible:<BR>&nbsp;<BR>0 - impact<BR>1 - damage<BR>2 - projectile<BR>&nbsp;
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| BGCOLOR="#C8FFFF" | 00 00
| 0
| ALIGN=LEFT | modifier; the following modifiers are possible:<BR>&nbsp;<BR>0 - any<BR>1 - heavy<BR>2 - medium<BR>3 - light<BR>&nbsp;
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| BGCOLOR="#FFC8FF" | 01 00
| 1
| ALIGN=LEFT | number of the used packages in part 3
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| BGCOLOR="#FFC800" | 00 00
| 0
| ALIGN=LEFT | unknown; looks like garbage to me
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| BGCOLOR="#C800C8" | FF&nbsp;FF&nbsp;FF&nbsp;FF
| -1
| ALIGN=LEFT | number of the used package in part 4 (-1 = not used)
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| BGCOLOR="#C87C64" | 53 00 00 00
| 83
| ALIGN=LEFT | start package in part 3
|}
|}




<B>Part 6:</B>
----
==Dialogs from level0_Tools==


[[Image:Tool dialog - Impact Effects.png]]


http://www6.fh-eberswalde.de/user/dkriesch/onistuff/images/bin_r_i6.gif


[[Image:Tool dialog - Impact Effect Properties.png]]


{| BORDER=1 WIDTH=100% CELLPADDING=2 CELLSPACING=1 BGCOLOR="#000000"
|- ALIGN=CENTER BGCOLOR="#FFDDBB"
| WIDTH=15% | <B>Hex</B>
| WIDTH=15% | <B>Translation</B>
| WIDTH=60% | <B>Meaning</B>
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#000000"
| COLSPAN=3 | <FONT SIZE=2 COLOR="#FFFFFF">Below follows the first package of part 6.</FONT>
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| BGCOLOR="#FFC8C8" | 01 00
| 1
| ALIGN=LEFT | number of the used material of the second package of part 1
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| BGCOLOR="#FFFFC8" | 01 00
| 1
| ALIGN=LEFT | number of used packages in part 5
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| BGCOLOR="#C8FFC8" | 54&nbsp;01&nbsp;00&nbsp;00
| 340
| ALIGN=LEFT | start package in part 5
|}


{{OBD BINA Footer | align=center | prev=OBJC | type=ONIE | next=PAR3 | name=Oni Impact Effects | onistuff=b_ie | family=Level}}


----
{{OBD}}
----
{|align=center
![[OBD:AKVA|AKVA]] << [[OBD:File types|Other file types]] >> [[OBD:CBPI|CBPI]]
|-
!BINA : Binary data
|-
![[OBD:BINA/OBJC/WEAP|WEAP]] << [[OBD:BINA|Other BINA]] >> [[OBD:BINA/PAR3|PAR3]]
|-
!ONIE : Oni Imapct Effects
|}