|
|
(17 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]
| |
| |}
| |
| ----
| |
| ---- | | ---- |
| | ==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. |
|
| |
|
| {| BORDER=1 WIDTH=100% CELLPADDING=2 CELLSPACING=1 BGCOLOR="#000000"
| | [[Image:Bin_r_i2.gif]] |
| |- ALIGN=CENTER BGCOLOR="#FFDDBB"
| |
| | WIDTH=15% | <B>Hex</B>
| |
| | WIDTH=15% | <B>Translation</B>
| |
| | WIDTH=60% | <B>Meaning</B>
| |
| |- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| |
| | BGCOLOR="#FF0000" | 45 49 4E 4F
| |
| | ONIE
| |
| | ALIGN=LEFT | Oni impact effects
| |
| |- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| |
| | BGCOLOR="#FFFF00" | B8 B7 00 00
| |
| | 47032
| |
| | ALIGN=LEFT | 47032 bytes is the length of the following impact effects part from this position
| |
| |- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| |
| | BGCOLOR="#00FF00" | 02 00 00 00
| |
| | 2
| |
| | 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>
| | {{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=60% | <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 00 00 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>
| | ---- |
| | |
|
| |
|
| http://www6.fh-eberswalde.de/user/dkriesch/onistuff/images/bin_r_i3.gif
| | ==Sound table== |
| | [[Image:Bin_r_i4.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[32] |FFC8C8| | not used | sound name (link to an [[OBD:OSBD|OSBD]] file) }} |
| | WIDTH=15% | <B>Translation</B>
| | {{OBDtr| 0x20 | |FFFFC8| CD CD | | ignored }} |
| | WIDTH=60% | <B>Meaning</B>
| | {{OBDtr| 0x22 | |C8FFC8| CD CD | | ignored }} |
| |- ALIGN=CENTER VALIGN=TOP BGCOLOR="#000000"
| | {{OBDtr| 0x24 | int32 |C8FFFF| 00 00 00 00 | | runtime: pointer to sound }} |
| | COLSPAN=3 | <FONT SIZE=2 COLOR="#FFFFFF">Below follows the first package of part 3.</FONT>
| | {{OBDtr| 0x28 | int16 |FFC8FF| 01 00 | 1 | AI can hear; 0 <nowiki>=</nowiki> no, 1 <nowiki>=</nowiki> yes }} |
| |- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| | {{OBDtr| 0x2A | int16 |FFC800| 03 00 | 3 | AI sound type; the following types are possible: |
| | BGCOLOR="#FFC8C8" COLSPAN=2 | <TT>w10_sni_x02</TT>
| | :0 - unimportant |
| | ALIGN=LEFT | particle name (06193-3RAPw10_sni_x02.[[OBD:BINA/PAR3|BINA]]) | | :1 - interesting |
| |- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | | :2 - danger |
| | BGCOLOR="#FFFFC8" | A8 67 7A 00 | | :3 - melee |
| | 7A 67 A8 | | :4 - gunfire }} |
| | ALIGN=LEFT | old offset link | | {{OBDtr| 0x2C | float |C800C8| 00 00 16 43 | 150.000000 | AI sound radius }} |
| |- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | |
| | BGCOLOR="#C8FFC8" | 00 00 00 00 | |
| | 0 | |
| | ALIGN=LEFT | modifier?; if yes, the following modifiers are possible:<BR> <BR>0 - any<BR>1 - heavy<BR>2 - medium<BR>3 - light<BR> | |
| |- 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
| |
|
| |
|
|
| |
|
| {| 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 | 1 | number of the used material of the second package of part 1 }} |
| | WIDTH=60% | <B>Meaning</B> | | {{OBDtr| 0x04 | int16 |C8FFC8| 00 00 | 0 | 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 | 0 | 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> <BR>0 - unimportant<BR>1 - interesting<BR>2 - danger<BR>3 - melee<BR>4 - gunfire<BR> | |
| |- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | |
| | BGCOLOR="#C800C8" | 00 00 16 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
| | {{Table}} |
| | | {{OBDth}} |
| | | {{OBDtr| 0x00 | int16 |FFC8C8| 01 00 | 1 | index into material table }} |
| {| BORDER=1 WIDTH=100% CELLPADDING=2 CELLSPACING=1 BGCOLOR="#000000" | | {{OBDtr| 0x02 | int16 |FFFFC8| 01 00 | 1 | number of used entries in the impact effect table }} |
| |- ALIGN=CENTER BGCOLOR="#FFDDBB"
| | {{OBDtr| 0x04 | int32 |C8FFC8| 54 01 00 00 | 340 | index of the first used entry in the impact effect table }} |
| | 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 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> <BR>0 - impact<BR>1 - damage<BR>2 - projectile<BR>
| |
| |- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD" | |
| | BGCOLOR="#C8FFFF" | 00 00 | |
| | 0
| |
| | ALIGN=LEFT | modifier; the following modifiers are possible:<BR> <BR>0 - any<BR>1 - heavy<BR>2 - medium<BR>3 - light<BR>
| |
| |- 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 FF FF 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 01 00 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
| |
| |}
| |