OBD:ONWC: Difference between revisions

293 bytes added ,  28 April 2006
m
no edit summary
No edit summary
mNo edit summary
Line 1: Line 1:
[[Main Page]] >> [[OBD:Oni Binary Data|Oni Binary Data]] >> [[OBD:File types|File Types]] >> ONWC File
{|align=right
 
![[OBD:ONVL|ONVL]] << [[OBD:File types|Other file types]] >> [[OBD:OPge|OPge]]
 
|-
<CENTER>[[OBD:ONVL|<==]] <FONT SIZE=5>ONWC File</FONT> [[OBD:OPge|==>]]<BR>
!<FONT SIZE=5>ONWC : Oni Weapon Class</FONT>
<FONT SIZE=2>Oni Weapon Class - Level File</FONT></CENTER>
|-
 
![[OBD:File types/Global|Level 0 file]]
 
|-
All ONWC files are 0 byte files. That means, that Oni will take the information out of the ONWC files of level 0. Below is an example of an ONWC file of level 0. The first pic shows the beginning of this file. The second pic the end of it.
!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/ONCC.txt Struct def for OUP]
|}
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'''
;Structure:There's a 472-byte chunk with the main weapon data
:Fixed-size array of 16 elements (80 bytes each) for weapon particles
:68-byte trailing chunk
:blank filler (up to a file size of 1824 = 0x720 bytes)




----
==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
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
|- ALIGN=CENTER BGCOLOR="#FFDDBB"
|- ALIGN=CENTER BGCOLOR="#FFDDBB"
Line 129: Line 134:
| BGCOLOR="#E7CEA5" | A6 92 2B 3D
| BGCOLOR="#E7CEA5" | A6 92 2B 3D
| 0.041888
| 0.041888
| ALIGN=LEFT | unknown
| ALIGN=LEFT | recoil (e.g. for '''w1_tap''' and '''w2_sap''')
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| BGCOLOR="#E7CEA5" | 92 0A 86 3E
| BGCOLOR="#E7CEA5" | 92 0A 86 3E
Line 225: Line 230:
| BGCOLOR="#FFDDDD" | 30
| BGCOLOR="#FFDDDD" | 30
| 48
| 48
| ALIGN=LEFT | weapon options 1; the options are stored as bitsets, so the following options are possible (values in dec):
| ALIGN=LEFT | Flags 1 :
 


{| BORDER=0 CELLPADDING=0 CELLSPACING=0
{| BORDER=0 CELLPADDING=0 CELLSPACING=0
Line 234: Line 238:
|- VALIGN=TOP
|- VALIGN=TOP
| ALIGN=RIGHT | 2 -&nbsp;
| ALIGN=RIGHT | 2 -&nbsp;
| weapon can't be holstered
| '''weapon can't be holstered'''
|- VALIGN=TOP
|- VALIGN=TOP
| ALIGN=RIGHT | 4 -&nbsp;
| ALIGN=RIGHT | 4 -&nbsp;
| weapon reloads with energy cells
| '''weapon reloads with energy cells'''
|- VALIGN=TOP
|- VALIGN=TOP
| ALIGN=RIGHT | 8 -&nbsp;
| ALIGN=RIGHT | 8 -&nbsp;
| weapon is a rifle (two-handed)
| '''weapon is a rifle (two-handed)'''
|- VALIGN=TOP
|- VALIGN=TOP
| ALIGN=RIGHT | 16 -&nbsp;
| ALIGN=RIGHT | 16 -&nbsp;
Line 246: Line 250:
|- VALIGN=TOP
|- VALIGN=TOP
| ALIGN=RIGHT | 32 -&nbsp;
| ALIGN=RIGHT | 32 -&nbsp;
| sustained fire
| '''sustained fire'''
|- VALIGN=TOP
|- VALIGN=TOP
| ALIGN=RIGHT | 64 -&nbsp;
| ALIGN=RIGHT | 64 -&nbsp;
| you can't shoot ...
| '''you can't shoot ...'''
|- VALIGN=TOP
|- VALIGN=TOP
| ALIGN=RIGHT | 128 -&nbsp;
| ALIGN=RIGHT | 128 -&nbsp;
| unknown, used for w6_vdg
| unknown, used for w6_vdg
|}
|}


|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| BGCOLOR="#FFDDDD" | C0
| BGCOLOR="#FFDDDD" | C0
| 192
| 192
| ALIGN=LEFT | weapon options 2; the options are stored as bitsets, so the following options are possible (values in dec):
| ALIGN=LEFT | Flags 2 :
 


{| BORDER=0 CELLPADDING=0 CELLSPACING=0
{| BORDER=0 CELLPADDING=0 CELLSPACING=0
Line 271: Line 273:
|- VALIGN=TOP
|- VALIGN=TOP
| ALIGN=RIGHT | 4 -&nbsp;
| ALIGN=RIGHT | 4 -&nbsp;
| secondary fire enabled
| '''secondary fire enabled'''
|- VALIGN=TOP
|- VALIGN=TOP
| ALIGN=RIGHT | 8 -&nbsp;
| ALIGN=RIGHT | 8 -&nbsp;
| weapon can't be reloaded
| '''weapon can't be reloaded'''
|- VALIGN=TOP
|- VALIGN=TOP
| ALIGN=RIGHT | 16 -&nbsp;
| ALIGN=RIGHT | 16 -&nbsp;
| run, jump and creep disabled
| '''run, jump and creep disabled'''
|- VALIGN=TOP
|- VALIGN=TOP
| ALIGN=RIGHT | 32 -&nbsp;
| ALIGN=RIGHT | 32 -&nbsp;
Line 286: Line 288:
|- VALIGN=TOP
|- VALIGN=TOP
| ALIGN=RIGHT | 128 -&nbsp;
| ALIGN=RIGHT | 128 -&nbsp;
| red line visible
| '''laser sight visible'''
|}
|}


|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| BGCOLOR="#FFDDDD" | 02 00
| BGCOLOR="#FFDDDD" | 02 00
| 2
| 2
| ALIGN=LEFT | weapon options 3; the options are stored as bitsets, so the following options are possible (values in dec):
| ALIGN=LEFT | Flags 3 :
 
 
{| BORDER=0 CELLPADDING=0 CELLSPACING=0
{| BORDER=0 CELLPADDING=0 CELLSPACING=0
|- VALIGN=TOP
|- VALIGN=TOP
Line 308: Line 307:
|- VALIGN=TOP
|- VALIGN=TOP
| ALIGN=RIGHT | 8 -&nbsp;
| ALIGN=RIGHT | 8 -&nbsp;
| unknown, used for w11_ba1
| '''weapon doesn't fade'''
|- VALIGN=TOP
|- VALIGN=TOP
| ALIGN=RIGHT | 16 -&nbsp;
| ALIGN=RIGHT | 16 -&nbsp;
Line 322: Line 321:
| unknown, never used
| unknown, never used
|}
|}


|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
Line 581: Line 579:
| ALIGN=LEFT | unknown; always zero
| ALIGN=LEFT | unknown; always zero
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#000000"
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#000000"
| COLSPAN=3 | <FONT SIZE=2 COLOR="#FFFFFF">Below follows the first package.</FONT>
|}
 
 
----
==Particles==
Every ONWC has 16 particle slots. The number of slots actually used by the weapon is specified at 0xCA.
{| BORDER=1 WIDTH=100% CELLPADDING=2 CELLSPACING=0
|- ALIGN=CENTER BGCOLOR="#FFDDBB"
!Offset
!Raw hex
!Value
!Meaning
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| BGCOLOR="#FF00C8" | AE 6C 56 3D
| 0.052349
| ALIGN=LEFT | unknown
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| BGCOLOR="#FF00C8" | 23 A6 7F 3F
| BGCOLOR="#FF00C8" | 23 A6 7F 3F
Line 640: Line 653:
| BGCOLOR="#00C864" | 01 00
| BGCOLOR="#00C864" | 01 00
| 1
| 1
| ALIGN=LEFT | unknown
| ALIGN=LEFT | ammo decrement (different for the 2 firing modes of '''w11_ba1''')
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| BGCOLOR="#00C864" | 0C 00
| BGCOLOR="#00C864" | 0C 00
| 12
| 12
| ALIGN=LEFT | shot frequency in 1/60 seconds (12/60 = 0.2 = 1 shot per 0.2 seconds)
| ALIGN=LEFT | delay between shots in frames (12 frames = 0.2 seconds)
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| BGCOLOR="#00C864" | 04 00
| BGCOLOR="#00C864" | 04 00
| 4
| 4
| ALIGN=LEFT | unknown
| ALIGN=LEFT | unknown (looks like another delay)
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| BGCOLOR="#00C864" | 00 00
| BGCOLOR="#00C864" | 00 00
| 0
| 0
| ALIGN=LEFT | unknown
| ALIGN=LEFT | unknown, used for w4_psm and w11_ba1 (looks like another delay)
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| BGCOLOR="#00C864" | 00 00
| BGCOLOR="#00C864" | 00 00
| 0
| 0
| ALIGN=LEFT | unknown
| ALIGN=LEFT | if 1, particle is fired with '''fire2'''
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| BGCOLOR="#00C864" | 00 00
| BGCOLOR="#00C864" | 00 00
| 0
| 0
| ALIGN=LEFT | unknown
| ALIGN=LEFT | delay before firing
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#000000"
|}
| COLSPAN=3 | <FONT SIZE=2 COLOR="#FFFFFF">Below follows the end of the ONWC file.</FONT>
 
 
----
==Ending==
http://www6.fh-eberswalde.de/user/dkriesch/onistuff/images/onwc_e.gif
{| BORDER=1 WIDTH=100% CELLPADDING=2 CELLSPACING=0
|- ALIGN=CENTER BGCOLOR="#FFDDBB"
!Offset
!Raw hex
!Value
!Meaning
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
|0x6D8
| BGCOLOR="#00C8FF" COLSPAN=2 | <TT>weapon _empty</TT>
| BGCOLOR="#00C8FF" COLSPAN=2 | <TT>weapon _empty</TT>
| ALIGN=LEFT | empty weapon sound<BR>(08992-weapon_empty.grp.[[OBD:OSBD|OSBD]])<BR>(08993-weapon_empty.imp.[[OBD:OSBD|OSBD]])
| ALIGN=LEFT | empty weapon sound<BR>(08992-weapon_empty.grp.[[OBD:OSBD|OSBD]])<BR>(08993-weapon_empty.imp.[[OBD:OSBD|OSBD]])
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
|0x6F8
| BGCOLOR="#C80040" | 00 00 00 00
| BGCOLOR="#C80040" | 00 00 00 00
| 0
| 0
| ALIGN=LEFT | unknown; always zero
| ALIGN=LEFT | unknown; always zero
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
|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
| 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]]
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
|0x704
| BGCOLOR="#C8C864" | 00 00 80 3F
| BGCOLOR="#C8C864" | 00 00 80 3F
| 1.000000
| 1.000000
| ALIGN=LEFT | unknown
| ALIGN=LEFT | unknown
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
|0x708
| BGCOLOR="#C8C864" | 00 00 80 3F
| BGCOLOR="#C8C864" | 00 00 80 3F
| 1.000000
| 1.000000
| ALIGN=LEFT | unknown
| ALIGN=LEFT | unknown
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
|0x70C
| BGCOLOR="#C8C864" | 76 65 EB 3F
| BGCOLOR="#C8C864" | 76 65 EB 3F
| 1.839034
| 1.839034
| ALIGN=LEFT | unknown
| ALIGN=LEFT | unknown
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
|0x710
| BGCOLOR="#C8C864" | 96 4C A9 3D
| BGCOLOR="#C8C864" | 96 4C A9 3D
| 0.082666
| 0.082666
| ALIGN=LEFT | unknown
| ALIGN=LEFT | unknown
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
|0x714
| BGCOLOR="#C8C864" | 06 E2 14 3E
| BGCOLOR="#C8C864" | 06 E2 14 3E
| 0.145393
| 0.145393
| ALIGN=LEFT | unknown
| ALIGN=LEFT | unknown
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
|0x718
| BGCOLOR="#C8C864" | 00 00 00 00
| BGCOLOR="#C8C864" | 00 00 00 00
| 0.000000
| 0.000000
| ALIGN=LEFT | unknown
| ALIGN=LEFT | unknown
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
|0x71C
| BGCOLOR="#0096C8" | AD DE
| BGCOLOR="#0096C8" | AD DE
| dead
| dead
| ALIGN=LEFT | not used
| ALIGN=LEFT | blank filler
|}
|}




<HR>
----
 
==Notes==
 
<CENTER>Here you can download the complete overview of all used different ONWC files as a text file.<BR>Copy it to a spreadsheet calculation program like Excel.<BR><UL><LI>[http://www6.fh-eberswalde.de/user/dkriesch/onistuff/subfold/text/oni_onwc_dc.txt text file] with commas as decimal hyphens (27 kb)</LI><LI>[http://www6.fh-eberswalde.de/user/dkriesch/onistuff/subfold/text/oni_onwc_dp.txt text file] with points as decimal hyphens (27 kb)</LI></UL></CENTER>
 
 
<HR>
<CENTER>[[OBD:ONVL|<==]] <B>ONWC File</B> [[OBD:OPge|==>]]</CENTER>
<HR>


----
{|align=center
!ONWC : Oni Weapon Class
|-
![[OBD:ONVL|ONVL]] << [[OBD:File types|Other file types]] >> [[OBD:OPge|OPge]]
|}
----


[[Main Page]] >> [[OBD:Oni Binary Data|Oni Binary Data]] >> [[OBD:File types|File Types]] >> ONWC File
[[Main Page]] >> [[OBD:Oni Binary Data|Oni Binary Data]] >> [[OBD:File types|File types]] >> ONWC