OBD:ONCP: Difference between revisions

From OniGalore
Jump to navigation Jump to search
m (fixing up)
m (besser so ^^)
Line 4: Line 4:


==Header==
==Header==
{| BORDER=1 WIDTH=100% CELLPADDING=2 CELLSPACING=0
{|{{OBDtable}}
|align=center|
{|{{OBDtable}}
|- BGCOLOR="#FFDDBB" ALIGN=CENTER
|- BGCOLOR="#FFDDBB" ALIGN=CENTER
!Offset
!Offset
Line 10: Line 12:
!Value
!Value
!Meaning
!Meaning
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
|-
|0x00
|0x00
| BGCOLOR="#FF0000" | 01 F9 03 00
| BGCOLOR="#FF0000" | 01 F9 03 00
| 1017
| 1017
| ALIGN=LEFT | file ID : 01017-.ONCP
| ALIGN=LEFT | file ID : 01017-.ONCP
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
|-
|0x04
|0x04
| BGCOLOR="#FFFF00" | 01 00 00 06
| BGCOLOR="#FFFF00" | 01 00 00 06
| 3
| 3
| ALIGN=LEFT | level ID : level 3
| ALIGN=LEFT | level ID : level 3
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
|-
|0x08 - 0x1B
|0x08 - 0x1B
| BGCOLOR="#00FF00" | AD DE
| BGCOLOR="#00FF00" | AD DE
| dead
| dead
| ALIGN=LEFT | blank filler
| ALIGN=LEFT | blank filler
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
|-
|0x1C
|0x1C
| BGCOLOR="#00FFFF" | 0D 00 00 00
| BGCOLOR="#00FFFF" | 0D 00 00 00
| 13
| 13
| ALIGN=LEFT | 13 particles in array (first particle is outlined in black)
| ALIGN=LEFT | 13 particles in array (first particle is outlined in black)
|}
|}
|}
==Particle array==
==Particle array==
Line 35: Line 38:
;Example:acid/env_splash_e01a
;Example:acid/env_splash_e01a
Offsets are relative to the start of a particle slot.
Offsets are relative to the start of a particle slot.
{| BORDER=1 WIDTH=100% CELLPADDING=2 CELLSPACING=0
{|{{OBDtable}}
|align=center|
{|{{OBDtable}}
|- BGCOLOR="#FFDDBB" ALIGN=CENTER
|- BGCOLOR="#FFDDBB" ALIGN=CENTER
!Offset
!Offset
Line 41: Line 46:
!Value
!Value
!Meaning
!Meaning
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
|-
|0x00 - 0x0F
|0x00 - 0x0F
| BGCOLOR="#FFC8C8" COLSPAN=2 | <TT>acid</TT> + null char + 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=LEFT | label of the particle (used by [[OBD:TRAM/raw0x2C|particle tracks]] of [[OBD:TRAM|TRAM]])
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
|-
|0x10 - 0x4F
|0x10 - 0x4F
| BGCOLOR="#FFFFC8" COLSPAN=2 | <TT>env_splash_e01a</TT> + null char + garbage
| 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=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
|0x50
| BGCOLOR="#C8FFC8"| FFFF
| BGCOLOR="#C8FFC8"| FFFF
| -1
| -1
| ALIGN=LEFT | default [[OBD:TRIA#Bones|bone]] to which particle is linked (-1 = root/none?, 32768 = ?)
| ALIGN=LEFT | default [[OBD:TRIA#Bones|bone]] to which particle is linked (-1 = root/none?, 32768 = ?)
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
|-
|0x52
|0x52
| BGCOLOR="#C8FFFF"|5F00
| BGCOLOR="#C8FFFF"|5F00
| 95
| 95
| ALIGN=LEFT | unknown (always the same?)
| ALIGN=LEFT | unknown (always the same?)
|- ALIGN=CENTER VALIGN=TOP BGCOLOR="#FFEEDD"
|-
|0x54
|0x54
| BGCOLOR="#FFC8FF"| 00000000
| BGCOLOR="#FFC8FF"| 00000000
| 0
| 0
| ALIGN=LEFT | unknown (always the same?)
| ALIGN=LEFT | unknown (always the same?)
|}
|}
|}
;Note
;Note

Revision as of 15:05, 31 October 2006

ONI BINARY DATA
ONCC << Other file types >> ONCV
ONCP : Oni Character Particle Array
switch to XML:ONCP page
Overview @ Oni Stuff
OBD.png

oncp_a.gif

Header

Offset Raw hex Value Meaning
0x00 01 F9 03 00 1017 file ID : 01017-.ONCP
0x04 01 00 00 06 3 level ID : level 3
0x08 - 0x1B AD DE dead blank filler
0x1C 0D 00 00 00 13 13 particles in array (first particle is outlined in black)

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.

Offset Raw hex Value Meaning
0x00 - 0x0F acid + null char + garbage label of the particle (used by particle tracks of TRAM)
0x10 - 0x4F env_splash_e01a + null char + garbage link by name to 3RAP env_splash_e01a.BINA of level 0
0x50 FFFF -1 default bone to which particle is linked (-1 = root/none?, 32768 = ?)
0x52 5F00 95 unknown (always the same?)
0x54 00000000 0 unknown (always the same?)
Note
The ONCP is the list of all the particles (motion trails, combo flashes, etc) that will be available for the 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.
Default bone ID
The ones specified in the particle tracks of the TRAM seem to have the final word.
I really don't know about 0x8000=32768 (used for snap/h2h_snap_e01)




ONI BINARY DATA
ONCC << Other file types >> ONCV
ONCP : Oni Character Particle Array
Character file