OBD:BINA/ONIE: Difference between revisions
< OBD:BINA
Jump to navigation
Jump to search
m (added a contents box) |
m (added family to footer template call) |
||
(9 intermediate revisions by 5 users not shown) | |||
Line 2: | Line 2: | ||
---- | |||
==General table== | ==General table== | ||
[[Image:Bin_r_i1.gif]] | |||
Line 19: | Line 20: | ||
{{OBDtrBK|Impact table }} | {{OBDtrBK|Impact table }} | ||
{{OBDtr| 0x00 | char[128] |FFC800| 44 65 66... | Default | impact name (Default.[[OBD:Impt|Impt]]) }} | {{OBDtr| 0x00 | char[128] |FFC800| 44 65 66... | Default | impact name (Default.[[OBD:Impt|Impt]]) }} | ||
{{OBDtr| 0x80 | int16 |FFC800| 00 00 | 0 | | {{OBDtr| 0x80 | int16 |FFC800| 00 00 | 0 | runtime only }} | ||
{{OBDtr| 0x82 | int16 |FFC800| 00 00 | 0 | | {{OBDtr| 0x82 | int16 |FFC800| 00 00 | 0 | runtime only }} | ||
{{OBDtrBK|Material table }} | {{OBDtrBK|Material table }} | ||
{{OBDtr| 0x00 | char[128] |FFC800| 44 65 66... | Default | material name (Default.[[OBD:Mtrl|Mtrl]]) }} | {{OBDtr| 0x00 | char[128] |FFC800| 44 65 66... | Default | material name (Default.[[OBD:Mtrl|Mtrl]]) }} | ||
{{OBDtr| 0x80 | int16 |FFC800| 00 00 | 0 | | {{OBDtr| 0x80 | int16 |FFC800| 00 00 | 0 | runtime only }} | ||
{{OBDtr| 0x82 | int16 |FFC800| 00 00 | 0 | | {{OBDtr| 0x82 | int16 |FFC800| 00 00 | 0 | runtime only }} | ||
|} | |} | ||
---- | |||
==Impact lookup table== | ==Impact lookup table== | ||
This table has the same number of entries as the impact table. | |||
[[Image:Bin_r_i2.gif]] | |||
{{Table}} | {{Table}} | ||
{{OBDth}} | {{OBDth}} | ||
{{OBDtr| 0x00 | int16 |FFC8C8| 00 00 | 0 | index into the impact table }} | {{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| 0x02 | int16 |FFFFC8| 00 00 | 0 | number of used entries in the material index table }} | ||
Line 41: | Line 45: | ||
---- | |||
==Particle table== | ==Particle table== | ||
[[Image:Bin_r_i3.gif]] | |||
{{Table}} | {{Table}} | ||
{{OBDth}} | {{OBDth}} | ||
{{OBDtr| 0x00 | char[64] |FFC8C8| 77 31 30... | w10_sni_x02| particle name (06193-3RAPw10_sni_x02.[[OBD:BINA/PAR3|BINA]]) }} | {{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| 0x40 | int32 |FFFFC8| | | runtime: pointer to particle class }} | ||
{{OBDtr| 0x44 | int32 |C8FFC8| 00 00 00 00 | 0 | | {{OBDtr| 0x44 | int32 |C8FFC8| 00 00 00 00 | 0 | orientation type; the following values are possible: | ||
:0 - | :0 - impact projectile orientation? | ||
:1 - | :1 - impact projectile reversed orientation? | ||
:2 - | :2 - impact direction perpendicular? | ||
:3 - ? | :3 - impact projectile velocity orientation? | ||
{{OBDtr| 0x48 | int32 |C8FFFF| 05 00 00 00 | 5 | location type | }} | ||
:0 - | {{OBDtr| 0x48 | int32 |C8FFFF| 05 00 00 00 | 5 | location type; the following values are possible: | ||
:1 - | :0 - impact location | ||
:1 - impact location + impact direction * float value at 0x4C | |||
:4 - | :4 - impact location; used for decals; at 0x4C there are 2 true/false bytes that control some decal parameters | ||
:5 - ? | :5 - impact location and attach to character? | ||
}} | |||
{{OBDtr| 0x4C | |FFC8FF| 00 00 00 00 | | | {{OBDtr| 0x4C | |FFC8FF| 00 00 00 00 | | depends on location type }} | ||
{{OBDtr| 0x50 | |FFC800| 00 00 00 00 | | unknown; always zero }} | {{OBDtr| 0x50 | |FFC800| 00 00 00 00 | | unknown; always zero }} | ||
|} | |} | ||
---- | |||
==Sound table== | ==Sound table== | ||
[[Image:Bin_r_i4.gif]] | |||
{{Table}} | {{Table}} | ||
{{OBDth}} | {{OBDth}} | ||
{{OBDtr| 0x00 | char[32] |FFC8C8| | not used | sound name (link to an [[OBD:OSBD|OSBD]] file) }} | {{OBDtr| 0x00 | char[32] |FFC8C8| | not used | sound name (link to an [[OBD:OSBD|OSBD]] file) }} | ||
{{OBDtr| 0x20 | | {{OBDtr| 0x20 | |FFFFC8| CD CD | | ignored }} | ||
{{OBDtr| 0x22 | | {{OBDtr| 0x22 | |C8FFC8| CD CD | | ignored }} | ||
{{OBDtr| 0x24 | int32 |C8FFFF| 00 00 00 00 | | runtime: pointer to sound }} | {{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| 0x28 | int16 |FFC8FF| 01 00 | 1 | AI can hear; 0 <nowiki>=</nowiki> no, 1 <nowiki>=</nowiki> yes }} | ||
{{OBDtr| 0x2A | int16 |FFC800| 03 00 | 3 | sound type; the following types are possible: | {{OBDtr| 0x2A | int16 |FFC800| 03 00 | 3 | AI sound type; the following types are possible: | ||
:0 - unimportant | :0 - unimportant | ||
:1 - interesting | :1 - interesting | ||
Line 85: | Line 90: | ||
:3 - melee | :3 - melee | ||
:4 - gunfire }} | :4 - gunfire }} | ||
{{OBDtr| 0x2C | float |C800C8| 00 00 16 43 | 150.000000 | | {{OBDtr| 0x2C | float |C800C8| 00 00 16 43 | 150.000000 | AI sound radius }} | ||
|} | |} | ||
---- | |||
==Impact effects table== | ==Impact effects table== | ||
[[Image:Bin_r_i5.gif]] | |||
{{Table}} | {{Table}} | ||
{{OBDth}} | {{OBDth}} | ||
{{OBDtr| 0x00 | int16 |FFC8C8| 37 00 | 55 | number of the used impact of the first package of part 1 }} | {{OBDtr| 0x00 | int16 |FFC8C8| 37 00 | 55 | number of the used impact of the first package of part 1 }} | ||
{{OBDtr| 0x02 | int16 |FFFFC8| 01 00 | 1 | number of the used material of the second package of part 1 }} | {{OBDtr| 0x02 | int16 |FFFFC8| 01 00 | 1 | number of the used material of the second package of part 1 }} | ||
Line 114: | Line 119: | ||
---- | |||
==Material index table== | ==Material index table== | ||
[[Image:Bin_r_i6.gif]] | |||
{{Table}} | {{Table}} | ||
{{OBDth}} | {{OBDth}} | ||
{{OBDtr| 0x00 | int16 |FFC8C8| 01 00 | 1 | index into material table }} | {{OBDtr| 0x00 | int16 |FFC8C8| 01 00 | 1 | index into material table }} | ||
{{OBDtr| 0x02 | int16 |FFFFC8| 01 00 | 1 | number of used entries in the impact effect table }} | {{OBDtr| 0x02 | int16 |FFFFC8| 01 00 | 1 | number of used entries in the impact effect table }} | ||
Line 127: | Line 132: | ||
{{OBD BINA Footer|align=center|prev=OBJC|type=ONIE|next=PAR3|name=Oni Impact Effects|onistuff=b_ie}} | ---- | ||
==Dialogs from level0_Tools== | |||
[[Image:Tool dialog - Impact Effects.png]] | |||
[[Image:Tool dialog - Impact Effect Properties.png]] | |||
{{OBD BINA Footer | align=center | prev=OBJC | type=ONIE | next=PAR3 | name=Oni Impact Effects | onistuff=b_ie | family=Level}} | |||
{{OBD}} |
Latest revision as of 23:45, 8 December 2023
|
General table
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.
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
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:
|
0x48 | int32 | 05 00 00 00 | 5 | location type; the following values are possible:
|
0x4C | 00 00 00 00 | depends on location type | ||
0x50 | 00 00 00 00 | unknown; always zero |
Sound table
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:
|
0x2C | float | 00 00 16 43 | 150.000000 | AI sound radius |
Impact effects table
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:
|
0x06 | int16 | 00 00 | 0 | modifier; the following modifiers are possible:
|
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
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
ONI BINARY DATA |
---|
AKVA << Other file types >> CBPI |
BINA : Binary data |
OBJC << Other BINA >> PAR3 |
ONIE : Oni Impact Effects |
Level file |