OBD:ONWC: Difference between revisions

572 bytes added ,  29 July 2006
m
no edit summary
mNo edit summary
Line 1: Line 1:
{|align=right
{|align=right
![[OBD:Oni Binary Data|ONI BINARY DATA]]
|-
![[OBD:ONVL|ONVL]] << [[OBD:File types|Other file types]] >> [[OBD:OPge|OPge]]
![[OBD:ONVL|ONVL]] << [[OBD:File types|Other file types]] >> [[OBD:OPge|OPge]]
|-
|-
Line 6: Line 8:
![[OBD:File types/Global|Level 0 file]]
![[OBD:File types/Global|Level 0 file]]
|-
|-
!Overview table of all ONCC (27 kB each) :<br>[http://www6.fh-eberswalde.de/user/dkriesch/onistuff/subfold/text/oni_onwc_dc.txt "," decimals] or [http://www6.fh-eberswalde.de/user/dkriesch/onistuff/subfold/text/oni_onwc_dp.txt "." decimals]<br>[http://geyser.oni2.net/OUP/ONWC.txt Struct def for OUP]
![http://geyser.oni2.net/OUP/ONWC.txt Struct def for OUP]
|-
![http://www6.fh-eberswalde.de/user/dkriesch/onistuff/oni_onwc.htm Overview @ Oni Stuff]
|-
!TXT tables of all ONCC (27 kB each) :<br>[http://www6.fh-eberswalde.de/user/dkriesch/onistuff/subfold/text/oni_onwc_dc.txt "," decimals] or [http://www6.fh-eberswalde.de/user/dkriesch/onistuff/subfold/text/oni_onwc_dp.txt "." decimals]
|}
|}
There's an [[OBD:File types|empty]] ONWC file in every level, and the 12 actual ONWC files are in level 0.
There's an [[OBD:File types|empty]] ONWC file in every level, and the 12 actual ONWC files are in level 0.
;Example: '''w1_tap.ONWC''' (unless specified otherwise)
;Example: '''w1_tap.ONWC''' (unless specified otherwise)
;Structure
;Structure
*Chunk with the main weapon data (216 = 0xD8 bytes)
*MAIN WEAPON DATA (216 = 0xD8 bytes)
*Fixed-size array of 2 elements (128 = 0x80 bytes each) for firing modes
**0x08 - 0x53 : laser sight
*Fixed-size array of 16 elements (80 = 0x50 bytes each) for weapon particles
**0x54 - 0x5F : ammo meter
**0x60 - 0xD7 : various weapon parameters
*FIRING MODE ARRAY (2 elements, 128 = 0x80 bytes each)
**Primary firing mode
**Secondary firing mode
*WEAPON PARTICLE ARRAY (16 elements, 80 = 0x50 bytes each)
*68-byte trailing chunk
*68-byte trailing chunk
*Blank filler (for a total file size of 1824 = 0x720 bytes)
*Blank filler (for a total file size of 1824 = 0x720 bytes)
Line 21: Line 32:


----
----
==0x00 - 0xD7 : Main part==
----
==0x00 - 0xD7==
;MAIN PART
http://www6.fh-eberswalde.de/user/dkriesch/onistuff/images/onwc_a.gif
http://www6.fh-eberswalde.de/user/dkriesch/onistuff/images/onwc_a.gif
{| BORDER=1 WIDTH=100% CELLPADDING=2 CELLSPACING=0
{| BORDER=1 WIDTH=100% CELLPADDING=2 CELLSPACING=0
Line 31: Line 44:
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
|0x00
|0x00
| BGCOLOR="#FF0000" | 01 75 0E 00
| BGCOLOR="#FF0000" | 01 '''75 0E''' 00
| 3701
| 3701
| ALIGN=LEFT | 03701-w1_tap.ONWC
| ALIGN=LEFT | File ID (03701-w1_tap.ONWC)
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
|0x04
|0x04
| BGCOLOR="#FFFF00" | 01 00 00 00
| BGCOLOR="#FFFF00" | 01 00 00 ''00''
| 0
| 0
| ALIGN=LEFT | level 0
| ALIGN=LEFT | level ID
|}
|}
===Laser sight===
----
===0x08 - 0x53===
;LASER SIGHT PARAMETERS
{| BORDER=1 WIDTH=100% CELLPADDING=2 CELLSPACING=0
{| BORDER=1 WIDTH=100% CELLPADDING=2 CELLSPACING=0
|- ALIGN=CENTER BGCOLOR="#FFDDBB"
|- ALIGN=CENTER BGCOLOR="#FFDDBB"
Line 89: Line 104:
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
|0x28
|0x28
| BGCOLOR="#C8FFC8" | 01 94 05 00
| BGCOLOR="#C8FFC8" | 01 '''94 05''' 00
| 1428
| 1428
| ALIGN=LEFT | crosshair texture (link to 01428-target_1A.[[OBD:TXMP|TXMP]])
| ALIGN=LEFT | crosshair texture (link to 01428-target_1A.[[OBD:TXMP|TXMP]])
Line 104: Line 119:
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
|0x34
|0x34
| BGCOLOR="#C8FFFF" | 01 95 05 00
| BGCOLOR="#C8FFFF" | 01 '''95 05''' 00
| 1429
| 1429
| ALIGN=LEFT | locked crosshair texture (link to 01429-target_1B.[[OBD:TXMP|TXMP]])
| ALIGN=LEFT | locked crosshair texture (link to 01429-target_1B.[[OBD:TXMP|TXMP]])
Line 119: Line 134:
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
|0x40
|0x40
| BGCOLOR="#FFC8FF" | 00 00 00 00
| BGCOLOR="#FFC8FF" | 00 '''00 00''' 00
| not used
| not used
| ALIGN=LEFT | tunnel texture ([[OBD:TXMP|TXMP]] link)
| ALIGN=LEFT | tunnel texture ([[OBD:TXMP|TXMP]] link)
Line 148: Line 163:
:"Tunnel" is used by '''w8_mbo''' as a complement to the crosshair
:"Tunnel" is used by '''w8_mbo''' as a complement to the crosshair
:'''w2_sap''', '''w5_sbg''', '''w7_scc''' and '''w9_scr''' use it with no crosshair
:'''w2_sap''', '''w5_sbg''', '''w7_scc''' and '''w9_scr''' use it with no crosshair
 
----
===Ammo meter===
===0x54 - 0x5F===
;AMMO METER
{| BORDER=1 WIDTH=100% CELLPADDING=2 CELLSPACING=0
{| BORDER=1 WIDTH=100% CELLPADDING=2 CELLSPACING=0
|- ALIGN=CENTER BGCOLOR="#FFDDBB"
|- ALIGN=CENTER BGCOLOR="#FFDDBB"
Line 158: Line 174:
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
|0x54
|0x54
| BGCOLOR="#C87C64" | 01 7E 0E 00
| BGCOLOR="#C87C64" | 01 '''7E 0E''' 00
| 3710
| 3710
| ALIGN=LEFT | link to 03710-tap_icon.[[OBD:TXMP|TXMP]]
| ALIGN=LEFT | link to 03710-tap_icon.[[OBD:TXMP|TXMP]]
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
|0x58
|0x58
| BGCOLOR="#C87C64" | 01 7F 0E 00
| BGCOLOR="#C87C64" | 01 '''7F 0E''' 00
| 3711
| 3711
| ALIGN=LEFT | link to 03711-tap_empty.[[OBD:TXMP|TXMP]]
| ALIGN=LEFT | link to 03711-tap_empty.[[OBD:TXMP|TXMP]]
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
|0x5C
|0x5C
| BGCOLOR="#C87C64" | 01 80 0E 00
| BGCOLOR="#C87C64" | 01 '''80 0E''' 00
| 3712
| 3712
| ALIGN=LEFT | link to 03712-tap_fill.[[OBD:TXMP|TXMP]]
| ALIGN=LEFT | link to 03712-tap_fill.[[OBD:TXMP|TXMP]]
|}
|}
===Weapon===
----
===0x60 - 0xD7===
;WEAPON PARAMETERS
{| BORDER=1 WIDTH=100% CELLPADDING=2 CELLSPACING=0
{| BORDER=1 WIDTH=100% CELLPADDING=2 CELLSPACING=0
|- ALIGN=CENTER BGCOLOR="#FFDDBB"
|- ALIGN=CENTER BGCOLOR="#FFDDBB"
Line 181: Line 199:
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
|0x60
|0x60
| BGCOLOR="#C87C64" | 01 76 0E 00
| BGCOLOR="#C87C64" | 01 '''76 0E''' 00
| 3702
| 3702
| ALIGN=LEFT | link to 03702-.[[OBD:M3GM|M3GM]]
| ALIGN=LEFT | link to 03702-.[[OBD:M3GM|M3GM]]
Line 414: Line 432:


----
----
----
==0xD8 - 0x1D7==
;FIRING MODES
Every ONWC has 2 firing mode slots (128 = 0x80 bytes each.)


==0xD8 - 0x1D7 : Firing modes==
The number of slots actually used by the weapon is specified at 0xCA.
There are two 128-byte firing mode slots in every ONWC file.
===0xD8 - 0x157===
 
;PRIMARY FIRING MODE
The actual number of firing modes is specified at 0xCC
===0xD8 - 0x157 : Primary firing mode===
Offsets are given with respect to the start of the file.
Offsets are given with respect to the start of the file.
{| BORDER=1 WIDTH=100% CELLPADDING=2 CELLSPACING=0
{| BORDER=1 WIDTH=100% CELLPADDING=2 CELLSPACING=0
Line 566: Line 586:
| BGCOLOR="#EBEBEB" | 01 00
| BGCOLOR="#EBEBEB" | 01 00
| 1
| 1
| ALIGN=LEFT | weapon ID
| ALIGN=LEFT | weapon ID (used by [[OBD:ONCC#Shooting_skills_(0x15C_-_0x29)|AI shooting skills]])
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
|0x140
|0x140
Line 586: Line 606:
| BGCOLOR="#8C8CCC" | 00 00 34 43
| BGCOLOR="#8C8CCC" | 00 00 34 43
| 180.000000
| 180.000000
| ALIGN=LEFT | unknown (180 for w1_tap, 150 for w2_sap, 120 for w4_psm)
| ALIGN=LEFT | maximal range at which AI dodge/hide when fired at with this weapon (180 for w1_tap, 150 for w2_sap, 120 for w4_psm)
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
|0x150
|0x150
| BGCOLOR="#8C8CCC" | 00 00 40 40
| BGCOLOR="#8C8CCC" | 00 00 40 40
| 3.000000
| 3.000000
| ALIGN=LEFT | unknown (3 for w1_tap, 3 for w2_sap, 10 for w4_psm)
| ALIGN=LEFT | minimal range at which AI dodge/hide when fired at with this weapon (3 for w1_tap, 3 for w2_sap, 10 for w4_psm)
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
|0x154
|0x154
Line 598: Line 618:
| ALIGN=LEFT | unknown (0.1 for w1_tap, 0.21 for w2_sap)
| ALIGN=LEFT | unknown (0.1 for w1_tap, 0.21 for w2_sap)
|}
|}
 
----
===0x158 - 0x1D7 : Secondary firing mode===
===0x158 - 0x1D7===
The only weapon for which these fields are not all zero is '''w11_ba1'''.
;SECONDARY FIRING MODE
The only original weapon for which these fields are not all zero is '''w11_ba1'''.


They are the exact counterparts of the fields at 0xD8 - 0x157.
They are the exact counterparts of the fields at 0xD8 - 0x157.
Line 606: Line 627:


----
----
 
----
==0x1D8 - 0x6DC : Particles==
==0x1D8 - 0x6DC==
;PARTICLES
Every ONWC has 16 particle slots (80 = 0x50 bytes each.)
Every ONWC has 16 particle slots (80 = 0x50 bytes each.)


Line 730: Line 752:


----
----
 
----
==Ending==
==0x698 - 0x71F==
;ENDING
http://www6.fh-eberswalde.de/user/dkriesch/onistuff/images/onwc_e.gif
http://www6.fh-eberswalde.de/user/dkriesch/onistuff/images/onwc_e.gif
{| BORDER=1 WIDTH=100% CELLPADDING=2 CELLSPACING=0
{| BORDER=1 WIDTH=100% CELLPADDING=2 CELLSPACING=0
Line 750: Line 773:
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
|0x6FC
|0x6FC
| BGCOLOR="#FFCD96" | 01 81 0E 00
| BGCOLOR="#FFCD96" | 01 '''81 0E''' 00
| 3713
| 3713
| ALIGN=LEFT | link to 03713-w1_glow.[[OBD:TXMP|TXMP]]
| ALIGN=LEFT | link to 03713-w1_glow.[[OBD:TXMP|TXMP]]
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
|0x700
|0x700
| BGCOLOR="#FFCD96" | 01 82 0E 00
| BGCOLOR="#FFCD96" | 01 '''82 0E''' 00
| 3714
| 3714
| ALIGN=LEFT | link to 03714-w1_glow_ammo.[[OBD:TXMP|TXMP]]
| ALIGN=LEFT | link to 03714-w1_glow_ammo.[[OBD:TXMP|TXMP]]
Line 803: Line 826:


----
----
----
==Notes==


==Notes==


----
----
----
{|align=center
{|align=center
!ONWC : Oni Weapon Class
![[OBD:Oni Binary Data|ONI BINARY DATA]]
|-
|-
![[OBD:ONVL|ONVL]] << [[OBD:File types|Other file types]] >> [[OBD:OPge|OPge]]
![[OBD:ONVL|ONVL]] << [[OBD:File types|Other file types]] >> [[OBD:OPge|OPge]]
|-
!ONWC : Oni Weapon Class
|}
|}
----
[[Main Page]] >> [[OBD:Oni Binary Data|Oni Binary Data]] >> [[OBD:File types|File types]] >> ONWC