OBD:BINA/ONIE: Difference between revisions

From OniGalore
Jump to navigation Jump to search
m (Learn, SSG)
m (added family to footer template call)
 
(15 intermediate revisions by 5 users not shown)
Line 1: Line 1:
{{OBD BINA Header|align=center|prev=OBJC|type=ONIE|next=PAR3|name=Oni Impact Effects|onistuff=b_ie}}
{{OBD BINA Header|align=center|prev=OBJC|type=ONIE|next=PAR3|name=Oni Impact Effects|onistuff=b_ie}}
----
----
----
==General table==
[[Image:Bin_r_i1.gif]]




<B>Header and Part 1:</B>
{{Table}}
{{OBDth}}
{{OBDtr| 0x00 | int32    |FF0000| 45 49 4E 4F | ONIE    | Oni impact effects }}
{{OBDtr| 0x04 | int32    |FFFF00| B8 B7 00 00 | 47032  | 47032 bytes is the length of the following impact effects part from this position }}
{{OBDtr| 0x08 | int32    |00FF00| 02 00 00 00 | 2      | version }}
{{OBDtr| 0x0C | int32    |00FFFF| 5E 00 00 00 | 94      | number of impacts }}
{{OBDtr| 0x10 | int32    |FFC8C8| 1E 00 00 00 | 30      | number of materials }}
{{OBDtr| 0x14 | int32    |FFFFC8| 54 00 00 00 | 84      | number of particles }}
{{OBDtr| 0x18 | int32    |C8FFC8| 20 01 00 00 | 288    | number of sounds }}
{{OBDtr| 0x1C | int32    |C8FFFF| 69 01 00 00 | 361    | number of impact effects }}
{{OBDtr| 0x20 | int32    |FFC8FF| DF 00 00 00 | 223    | number of material indices }}
{{OBDtrBK|Impact table }}
{{OBDtr| 0x00 | char[128] |FFC800| 44 65 66... | Default | impact name (Default.[[OBD:Impt|Impt]]) }}
{{OBDtr| 0x80 | int16    |FFC800| 00 00      | 0      | runtime only }}
{{OBDtr| 0x82 | int16    |FFC800| 00 00      | 0      | runtime only }}
{{OBDtrBK|Material table }}
{{OBDtr| 0x00 | char[128] |FFC800| 44 65 66... | Default | material name (Default.[[OBD:Mtrl|Mtrl]]) }}
{{OBDtr| 0x80 | int16    |FFC800| 00 00      | 0      | runtime only }}
{{OBDtr| 0x82 | int16    |FFC800| 00 00      | 0      | runtime only }}
|}




http://www6.fh-eberswalde.de/user/dkriesch/onistuff/images/bin_r_i1.gif
----
==Impact lookup table==


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


{|{{OBDtable}}
[[Image:Bin_r_i2.gif]]
|align=center|
{|{{OBDtable}}
|-BGCOLOR="#FFDDBB"
! WIDTH=15% |Raw Hex
! WIDTH=15% |Translation
! WIDTH=70% |Meaning
|-
|BGCOLOR="#FF0000" | 45&nbsp;49&nbsp;4E&nbsp;4F
| ONIE
| ALIGN=LEFT | Oni impact effects
|-
| BGCOLOR="#FFFF00" | B8 B7 00 00
| 47032
| ALIGN=LEFT | 47032 bytes is the length of the following impact effects part from this position
|-
| BGCOLOR="#00FF00" | 02 00 00 00
| 2
| ALIGN=LEFT | amount of packages of part 1
|-
| 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
|-
| 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)
|-
| BGCOLOR="#FFFFC8" | 54 00 00 00
| 84
| ALIGN=LEFT | amount of packages of part 3
|-
| BGCOLOR="#C8FFC8" | 20 01 00 00
| 288
| ALIGN=LEFT | amount of packages of part 4
|-
| BGCOLOR="#C8FFFF" | 69 01 00 00
| 361
| ALIGN=LEFT | amount of packages of part 5
|-
| BGCOLOR="#FFC8FF" | DF 00 00 00
| 223
| ALIGN=LEFT | amount of packages of part 6
|-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>
|-
| BGCOLOR="#FFC800" COLSPAN=2 | <TT>Default</TT>
| ALIGN=LEFT | impact effect name (notes)
|}
|}




<B>Part 2:</B>
{{Table}}
{{OBDth}}
{{OBDtr| 0x00 | int16 |FFC8C8| 00 00      | 0  | index into the impact table }}
{{OBDtr| 0x02 | int16 |FFFFC8| 00 00      | 0  | number of used entries in the material index table }}
{{OBDtr| 0x04 | int32 |C8FFC8| DF 00 00 00 | 223 | index of the first used entry in the material index table }}
|}




http://www6.fh-eberswalde.de/user/dkriesch/onistuff/images/bin_r_i2.gif
----
==Particle table==
[[Image:Bin_r_i3.gif]]




{| BORDER=1 WIDTH=100% CELLPADDING=2 CELLSPACING=1 BGCOLOR="#000000"
{{Table}}
|- ALIGN=CENTER BGCOLOR="#FFDDBB"
{{OBDth}}
| WIDTH=15% | <B>Hex</B>
{{OBDtr| 0x00 | char[64] |FFC8C8| 77 31 30... | w10_sni_x02| particle name (06193-3RAPw10_sni_x02.[[OBD:BINA/PAR3|BINA]]) }}
| WIDTH=15% | <B>Translation</B>
{{OBDtr| 0x40 | int32    |FFFFC8|             |           | runtime: pointer to particle class }}
| WIDTH=70% | <B>Meaning</B>
{{OBDtr| 0x44 | int32    |C8FFC8| 00 00 00 00 | 0          | orientation type; the following values are possible:
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#000000"
:0 - impact projectile orientation?
| COLSPAN=3 | <FONT SIZE=2 COLOR="#FFFFFF">Below follows the first package of part 2.</FONT>
:1 - impact projectile reversed orientation?
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
:2 - impact direction perpendicular?
| BGCOLOR="#FFC8C8" | 00 00
:3 - impact projectile velocity orientation?
| 0
}}
| ALIGN=LEFT | part 2 ID
{{OBDtr| 0x48 | int32    |C8FFFF| 05 00 00 00 | 5        | location type; the following values are possible:
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
:0 - impact location
| BGCOLOR="#FFFFC8" | 00 00
:1 - impact location + impact direction * float value at 0x4C
| 0
:4 - impact location; used for decals; at 0x4C there are 2 true/false bytes that control some decal parameters
| ALIGN=LEFT | number of used packages in part 6
:5 - impact location and attach to character?
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
}}
| BGCOLOR="#C8FFC8" | DF&nbsp;00&nbsp;00&nbsp;00
{{OBDtr| 0x4C |          |FFC8FF| 00 00 00 00 |          | depends on location type }}
| 223
{{OBDtr| 0x50 |          |FFC800| 00 00 00 00 |         | unknown; always zero }}
| ALIGN=LEFT | start package in part 6
|}
|}




<B>Part 3:</B>
----


==Sound table==
[[Image:Bin_r_i4.gif]]


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


 
{{Table}}
{| BORDER=1 WIDTH=100% CELLPADDING=2 CELLSPACING=1 BGCOLOR="#000000"
{{OBDth}}
|- ALIGN=CENTER BGCOLOR="#FFDDBB"
{{OBDtr| 0x00 | char[32] |FFC8C8|             | not used  | sound name (link to an [[OBD:OSBD|OSBD]] file) }}
| WIDTH=15% | <B>Hex</B>
{{OBDtr| 0x20 |         |FFFFC8| CD CD      |            | ignored }}
| WIDTH=15% | <B>Translation</B>
{{OBDtr| 0x22 |         |C8FFC8| CD CD      |           | ignored }}
| WIDTH=70% | <B>Meaning</B>
{{OBDtr| 0x24 | int32    |C8FFFF| 00 00 00 00 |            | runtime: pointer to sound }}
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#000000"
{{OBDtr| 0x28 | int16    |FFC8FF| 01 00      | 1          | AI can hear; 0 <nowiki>=</nowiki> no, 1 <nowiki>=</nowiki> yes }}
| COLSPAN=3 | <FONT SIZE=2 COLOR="#FFFFFF">Below follows the first package of part 3.</FONT>
{{OBDtr| 0x2A | int16    |FFC800| 03 00       | 3          | AI sound type; the following types are possible:
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
:0 - unimportant
| BGCOLOR="#FFC8C8" COLSPAN=2 | <TT>w10_sni_x02</TT>
:1 - interesting
| ALIGN=LEFT | particle name (06193-3RAPw10_sni_x02.[[OBD:BINA/PAR3|BINA]])
:2 - danger
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
:3 - melee
| BGCOLOR="#FFFFC8" | A8&nbsp;67&nbsp;7A&nbsp;00
:4 - gunfire }}
| 7A&nbsp;67&nbsp;A8
{{OBDtr| 0x2C | float   |C800C8| 00 00 16 43 | 150.000000 | AI sound radius }}
| 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>
----
==Impact effects table==
[[Image:Bin_r_i5.gif]]




http://www6.fh-eberswalde.de/user/dkriesch/onistuff/images/bin_r_i4.gif
{{Table}}
 
{{OBDth}}
 
{{OBDtr| 0x00 | int16 |FFC8C8| 37 00      | 55 | number of the used impact of the first package of part 1 }}
{| BORDER=1 WIDTH=100% CELLPADDING=2 CELLSPACING=1 BGCOLOR="#000000"
{{OBDtr| 0x02 | int16 |FFFFC8| 01 00      | | number of the used material of the second package of part 1 }}
|- ALIGN=CENTER BGCOLOR="#FFDDBB"
{{OBDtr| 0x04 | int16 |C8FFC8| 00 00      | | component; the following components are possible:
| WIDTH=15% | <B>Hex</B>
:0 - impact
| WIDTH=15% | <B>Translation</B>
:1 - damage
| WIDTH=70% | <B>Meaning</B>
:2 - projectile }}
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#000000"
{{OBDtr| 0x06 | int16 |C8FFFF| 00 00      | | modifier; the following modifiers are possible:
| COLSPAN=3 | <FONT SIZE=2 COLOR="#FFFFFF">Below follows the first package of part 4.</FONT>
:0 - any
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
:1 - heavy
| BGCOLOR="#FFC8C8" COLSPAN=2 | not used
:2 - medium
| ALIGN=LEFT | sound name (link to an [[OBD:OSBD|OSBD]] file)
:3 - light }}
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
{{OBDtr| 0x08 | int16 |FFC8FF| 01 00       | 1 | number of used entries from the particle table }}
| BGCOLOR="#FFFFC8" | CD CD
{{OBDtr| 0x0A | int16 |FFC800| 00 00      | 0 | unknown; looks like garbage to me }}
| 52685
{{OBDtr| 0x0C | int32 |C800C8| FF FF FF FF | -1 | index of the used entry in sound table; -1 <nowiki>=</nowiki> not used }}
| ALIGN=LEFT | unknown; maybe it's garbage that belongs to the sound name field above
{{OBDtr| 0x10 | int32 |C87C64| 53 00 00 00 | 83 | index of the first used entry in the particle table }}
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| BGCOLOR="#C8FFC8" | CD CD
| 52685
| 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=70% | <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=70% | <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}}
----
{{OBD BINA Footer|align=center|prev=OBJC|type=ONIE|next=PAR3|name=Oni Impact Effects|onistuff=b_ie}}

Latest revision as of 23:45, 8 December 2023

ONI BINARY DATA
AKVA << Other file types >> CBPI
OBJC << Other BINA >> PAR3
ONIE : Oni Impact Effects
switch to XML:BINA/ONIE page
Overview @ Oni Stuff
OBD.png



General table

Bin r i1.gif


Offset Type Raw Hex Value Description
0x00 int32 45 49 4E 4F ONIE Oni impact effects
0x04 int32 B8 B7 00 00 47032 47032 bytes is the length of the following impact effects part from this position
0x08 int32 02 00 00 00 2 version
0x0C int32 5E 00 00 00 94 number of impacts
0x10 int32 1E 00 00 00 30 number of materials
0x14 int32 54 00 00 00 84 number of particles
0x18 int32 20 01 00 00 288 number of sounds
0x1C int32 69 01 00 00 361 number of impact effects
0x20 int32 DF 00 00 00 223 number of material indices
Impact table
0x00 char[128] 44 65 66... Default impact name (Default.Impt)
0x80 int16 00 00 0 runtime only
0x82 int16 00 00 0 runtime only
Material table
0x00 char[128] 44 65 66... Default material name (Default.Mtrl)
0x80 int16 00 00 0 runtime only
0x82 int16 00 00 0 runtime only



Impact lookup table

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

Bin r i2.gif


Offset Type Raw Hex Value Description
0x00 int16 00 00 0 index into the impact table
0x02 int16 00 00 0 number of used entries in the material index table
0x04 int32 DF 00 00 00 223 index of the first used entry in the material index table



Particle table

Bin r i3.gif


Offset Type Raw Hex Value Description
0x00 char[64] 77 31 30... w10_sni_x02 particle name (06193-3RAPw10_sni_x02.BINA)
0x40 int32 runtime: pointer to particle class
0x44 int32 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?
0x48 int32 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?
0x4C 00 00 00 00 depends on location type
0x50 00 00 00 00 unknown; always zero



Sound table

Bin r i4.gif


Offset Type Raw Hex Value Description
0x00 char[32] not used sound name (link to an OSBD file)
0x20 CD CD ignored
0x22 CD CD ignored
0x24 int32 00 00 00 00 runtime: pointer to sound
0x28 int16 01 00 1 AI can hear; 0 = no, 1 = yes
0x2A int16 03 00 3 AI sound type; the following types are possible:
0 - unimportant
1 - interesting
2 - danger
3 - melee
4 - gunfire
0x2C float 00 00 16 43 150.000000 AI sound radius



Impact effects table

Bin r i5.gif


Offset Type Raw Hex Value Description
0x00 int16 37 00 55 number of the used impact of the first package of part 1
0x02 int16 01 00 1 number of the used material of the second package of part 1
0x04 int16 00 00 0 component; the following components are possible:
0 - impact
1 - damage
2 - projectile
0x06 int16 00 00 0 modifier; the following modifiers are possible:
0 - any
1 - heavy
2 - medium
3 - light
0x08 int16 01 00 1 number of used entries from the particle table
0x0A int16 00 00 0 unknown; looks like garbage to me
0x0C int32 FF FF FF FF -1 index of the used entry in sound table; -1 = not used
0x10 int32 53 00 00 00 83 index of the first used entry in the particle table



Material index table

Bin r i6.gif


Offset Type Raw Hex Value Description
0x00 int16 01 00 1 index into material table
0x02 int16 01 00 1 number of used entries in the impact effect table
0x04 int32 54 01 00 00 340 index of the first used entry in the impact effect table



Dialogs from level0_Tools

Tool dialog - Impact Effects.png


Tool dialog - Impact Effect Properties.png


ONI BINARY DATA
AKVA << Other file types >> CBPI
BINA : Binary data
OBJC << Other BINA >> PAR3
ONIE : Oni Impact Effects
Level file