OBD:OSBD/OSIm: Difference between revisions

From OniGalore
Jump to navigation Jump to search
m (guesses, guesses...)
 
m (localized image)
 
(8 intermediate revisions by 3 users not shown)
Line 1: Line 1:
Minimal data, just to get the page started.
[[Image:osb_r_im.gif]]
 
http://www6.fh-eberswalde.de/user/dkriesch/onistuff/images/osb_r_im.gif


{{Table}}
{{Table}}
{{OBD_Table_Header}}
{{OBDth}}
|- ALIGN=CENTER VALIGN=TOP
{{OBDtr| 0x00 | int32    |FF0000| 6D 49 53 4F | OSIm       | Oni Sound Impulse }}
|0x00||4cc||BGCOLOR="#FF0000"|6D 49 53 4F||OSIm||ALIGN=LEFT|Oni Sound Impulse
{{OBDtr| 0x04 | int32   |FFFF00| 68 00 00 00 | 104       | 104 bytes; size of the part that follows }}
|- ALIGN=CENTER VALIGN=TOP
{{OBDtr| 0x08 | int32    |FFC8C8| 06 00 00 00 | 6          | version (see below) }}
|0x04||int32||BGCOLOR="#FFFF00"|68 00 00 00||104||ALIGN=LEFT|104 bytes; size of the part that follows
{{OBDtr| 0x0C | char[32] |FFFFC8| 6B 6F 6E... | konoko_wakeup | group name (reference to 06590-konoko_wakeup[[OBD:OSBD/OSGr|.grp.OSBD]]) }}
|- ALIGN=CENTER VALIGN=TOP
{{OBDtr| 0x2C | int32   |C8FFC8| 01 00 00 00 | light     | priority }}
|0x08||bool32||BGCOLOR="#FFC8C8"|06 00 00 00||4 + 2||ALIGN=LEFT|bitset (see below)
{{OBDtr| 0x30 | float   |C8FFFF| 00 00 20 41 | 10.0      | minimum volume distance }}
|- ALIGN=CENTER VALIGN=TOP
{{OBDtr| 0x34 | float   |FFC8FF| 00 00 48 42 | 50.0      | maximum volume distance }}
|0x0C||char[32]||BGCOLOR="#FFFFC8" COLSPAN=2|<TT>ac5lp1.aif</TT>||ALIGN=LEFT|group name (reference to 06590-konoko_wakeup.grp.OSBD)
{{OBDtr| 0x38 | float   |FFC800| 00 00 B4 43 | 360.0      | minimum volume angle }}
|- ALIGN=CENTER VALIGN=TOP
{{OBDtr| 0x3C | float   |C800C8| 00 00 B4 43 | 360.0      | maximum volume angle }}
|0x2C||int32||BGCOLOR="#C8FFC8"|01 00 00 00||light||ALIGN=LEFT|priority
{{OBDtr| 0x40 | float   |C87C64| 00 00 00 00 | 0.0        | unknown }}
|- ALIGN=CENTER VALIGN=TOP
{{OBDtr| 0x44 | int32   |B0C3D4| 00 00 00 00 | 0          | threshold (present for version 4 and above, default is 0) }}
|0x30||float||BGCOLOR="#C8FFFF"|00 00 20 41||10.||ALIGN=LEFT|minimum volume distance
{{OBDtr| 0x48 | char[32] |E7CEA5| 00...      |           | alternate impulse name (reference to another imp.OSBD file, present for version 4 and above, default is empty string) }}
|- ALIGN=CENTER VALIGN=TOP
{{OBDtr| 0x68 | float   |FFDDDD| 00 00 00 00 | 0.0        | unknown (present for version 5 and above, default is 0) }}
|0x34||float||BGCOLOR="#FFC8FF"|00 00 48 42||50.||ALIGN=LEFT|maximum volume distance
{{OBDtr| 0x6C | float   |64AAAA| 00 00 00 00 | 0.0        | unknown (present for version 6 and above, default is 0) }}
|- ALIGN=CENTER VALIGN=TOP
|0x38||float||BGCOLOR="#FFC800"|00 00 B4 43||360.||ALIGN=LEFT|minimum volume angle
|- ALIGN=CENTER VALIGN=TOP
|0x3C||float||BGCOLOR="#C800C8"|00 00 B4 43||360.||ALIGN=LEFT|maximum volume angle
|- ALIGN=CENTER VALIGN=TOP
|0x40||float||BGCOLOR="#C87C64"|00 00 00 00||0.||ALIGN=LEFT|unknown
|- ALIGN=CENTER VALIGN=TOP
|0x44||int32||BGCOLOR="#B0C3D4"|00 00 00 00||0||ALIGN=LEFT|unknown
|- ALIGN=CENTER VALIGN=TOP
|0x48||char[32]||BGCOLOR="#E7CEA5" COLSPAN=2|empty string||ALIGN=LEFT|alternate impulse name (reference to an Impulse.OSBD file)
|- ALIGN=CENTER VALIGN=TOP
|0x68||float||BGCOLOR="#FFDDDD"|00 00 00 00||0.||ALIGN=LEFT|unknown
|- ALIGN=CENTER VALIGN=TOP
|0x6C||float||BGCOLOR="#64AAAA"|00 00 00 00||0.||ALIGN=LEFT|unknown
|- ALIGN=CENTER VALIGN=TOP
|0x70||char[16]||BGCOLOR="#EBEBEB" COLSPAN=2|filler||ALIGN=LEFT|not used
|}
|}
;Bitset at 0x08
;Version
:Occurring values and respective sizes of whole raw part
:Just as for other [[OSBD]], there have been several version of the binary format.
*3 - 68 (kon_*, md_*, hvy_*, ...)
:Over time, some fields that used to be hardcoded became customizable on a group-per-group basis.
*4 - 104 (door_*, autosave, compass, health_full, ..., bdy_lite, face_lite, bdy_med, face_med, med_arm, med_leg, shells_mult, shell_multwd)
:Thus, later versions include some extra fields as compared to earlier ones.
*5 - 108 (shells_dbl, shells_dblrug, shells_multrug, shells_sngl, shells_snglrug, shell_dblwd, shell_snglwd)
:The above example belongs to the latest OSIm version encountered in Oni: 6.
*6 - 112
:Lower versions lack certain fields, and the following content is simply shifted backwards.
:Versions of OSIm occurring in Oni: 3, 4, 5, 6.
;Dialog from level0_Tools
[[Image:Tool dialog - Impulse Sound Properties.png]]


:bit 4 apparently enables alternate impulse name and something  else (starting at 0x44 ? )
{{OBD}}
:bit 1 enables 1 trailing float after alternate impulse name (at 0x68)
:bit 2 enables 2 trailing floats after alternate impulse name (at 0x68 and 0x6C)
::if bit 4 is off, then either the other bits are ignored or... dunno ^^

Latest revision as of 23:48, 15 December 2022

Osb r im.gif

Offset Type Raw Hex Value Description
0x00 int32 6D 49 53 4F OSIm Oni Sound Impulse
0x04 int32 68 00 00 00 104 104 bytes; size of the part that follows
0x08 int32 06 00 00 00 6 version (see below)
0x0C char[32] 6B 6F 6E... konoko_wakeup group name (reference to 06590-konoko_wakeup.grp.OSBD)
0x2C int32 01 00 00 00 light priority
0x30 float 00 00 20 41 10.0 minimum volume distance
0x34 float 00 00 48 42 50.0 maximum volume distance
0x38 float 00 00 B4 43 360.0 minimum volume angle
0x3C float 00 00 B4 43 360.0 maximum volume angle
0x40 float 00 00 00 00 0.0 unknown
0x44 int32 00 00 00 00 0 threshold (present for version 4 and above, default is 0)
0x48 char[32] 00... alternate impulse name (reference to another imp.OSBD file, present for version 4 and above, default is empty string)
0x68 float 00 00 00 00 0.0 unknown (present for version 5 and above, default is 0)
0x6C float 00 00 00 00 0.0 unknown (present for version 6 and above, default is 0)
Version
Just as for other OSBD, there have been several version of the binary format.
Over time, some fields that used to be hardcoded became customizable on a group-per-group basis.
Thus, later versions include some extra fields as compared to earlier ones.
The above example belongs to the latest OSIm version encountered in Oni: 6.
Lower versions lack certain fields, and the following content is simply shifted backwards.
Versions of OSIm occurring in Oni: 3, 4, 5, 6.
Dialog from level0_Tools

Tool dialog - Impulse Sound Properties.png