OBD:ONCP: Difference between revisions

1,183 bytes added ,  16 May 2006
m
no edit summary
No edit summary
mNo edit summary
Line 2: Line 2:




<CENTER>[[OBD:ONCC|<==]] <FONT SIZE=5>ONCP : Oni Character Particle Array</FONT> [[OBD:ONCV|==>]]<BR>
<CENTER>
<FONT SIZE=2>[[OBD:File types/Character|Character file]]</FONT></CENTER>
[[OBD:ONCC|ONCC]] << [[OBD:File types|Other file types]] >> [[OBD:ONCV|ONCV]]
<br><FONT SIZE=5>ONCP : Oni Character Particle Array</FONT>
<br><FONT SIZE=2>[[OBD:File types/Character|Character file]]</FONT>
</CENTER>




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


 
==Header==
{| BORDER=1 WIDTH=100% CELLPADDING=2 CELLSPACING=0
{| BORDER=1 WIDTH=100% CELLPADDING=2 CELLSPACING=0
|- BGCOLOR="#FFDDBB" ALIGN=CENTER
|- BGCOLOR="#FFDDBB" ALIGN=CENTER
| WIDTH=15% | <B>Hex</B>
!Offset
| WIDTH=15% | <B>Translation</B>
!Raw hex
| WIDTH=70% | <B>Meaning</B>
!Value
!Meaning
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
|0x00
| BGCOLOR="#FF0000" | 01 F9 03 00
| BGCOLOR="#FF0000" | 01 F9 03 00
| 1017
| 1017
| ALIGN=LEFT | 01017-.ONCP
| ALIGN=LEFT | file ID : 01017-.ONCP
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
|0x04
| BGCOLOR="#FFFF00" | 01 00 00 06
| BGCOLOR="#FFFF00" | 01 00 00 06
| 3
| 3
| ALIGN=LEFT | level 3
| ALIGN=LEFT | level ID : level 3
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
|0x08 - 0x1B
| BGCOLOR="#00FF00" | AD DE
| BGCOLOR="#00FF00" | AD DE
| dead
| dead
| ALIGN=LEFT | not used
| ALIGN=LEFT | blank filler
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
|0x1C
| BGCOLOR="#00FFFF" | 0D 00 00 00
| BGCOLOR="#00FFFF" | 0D 00 00 00
| 13
| 13
| ALIGN=LEFT | 13 packages follow (one package is edged in black)
| ALIGN=LEFT | 13 particles in array (first particle is outlined in black)
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#000000"
|}
| COLSPAN=3 | <FONT SIZE=2 COLOR="#FFFFFF">Below follows the first package.</FONT>
==Particle array==
The array starts at 0x20. Every particle is 0x58=88 bytes long.
;Example:acid/env_splash_e01a
Offsets are relative to the start of a particle slot.
{| BORDER=1 WIDTH=100% CELLPADDING=2 CELLSPACING=0
|- BGCOLOR="#FFDDBB" ALIGN=CENTER
!Offset
!Raw hex
!Value
!Meaning
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
| BGCOLOR="#FFC8C8" COLSPAN=2 | <TT>acid</TT>
|0x00 - 0x0F
| ALIGN=LEFT | name of the particle (everything after the first 00 is garbage)
| BGCOLOR="#FFC8C8" COLSPAN=2 | <TT>acid</TT> + null char + garbage
| ALIGN=LEFT | label of the particle (used by [[OBD:TRAM/raw0x2C|particle tracks]] of [[OBD:TRAM|TRAM]])
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
|0x10 - 0x4F
| BGCOLOR="#FFFFC8" COLSPAN=2 | <TT>env_splash_e01a</TT> + null char + garbage
| ALIGN=LEFT | link by name to [[OBD:BINA/Particles|3RAP]] env_splash_e01a.[[OBD:BINA|BINA]] of level 0
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
|0x50
| BGCOLOR="#C8FFC8"| FFFF
| -1
| ALIGN=LEFT | default [[OBD:TRIA#Bones|bone]] to which particle is linked (-1 = none, 32768=?)
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
|0x52
| BGCOLOR="#C8FFFF"|5F00
| 95
| ALIGN=LEFT | unknown (always the same?)
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
|0x54
| BGCOLOR="#FFC8FF"| 00000000
| 0
| ALIGN=LEFT | unknown (always the same?)
|}
|}
;Note
;Note
:The ONCP is the list of all the particles (motion trails, combo flashes, etc) that will be available for the [[OBD:ONCC|ONCC]] that links to it.
:The ONCP is the list of all the particles (motion trails, combo flashes, etc) that will be available for the [[OBD:ONCC|ONCC]] that links to it.
:Nothing bad happens if an ONCC doesn't find a particle required by an animation, you just get a warning at the console.
:Nothing bad happens if an ONCC doesn't find a particle required by an animation, you just get a warning at the console.
 
;Default bone ID
:The ones specified in the [[OBD:TRAM/raw0x2C|particle tracks]] of the [[OBD:TRAM|TRAM]] seem to have the final word.
:I really don't know about 0x8000=32768 (used for '''snap'''/'''h2h_snap_e01''')


<HR>
<HR>
<CENTER>[[OBD:ONCC|<==]] <B>ONCP</B> [[OBD:ONCV|==>]]</CENTER>
<CENTER>[[OBD:ONCC|ONCC]] << '''ONCP''' >> [[OBD:ONCV|ONCV]]</CENTER>
<HR>
<HR>




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