OBD:OSBD/OSGr: Difference between revisions

m
version (thanks to Neo)
m (oops)
m (version (thanks to Neo))
Line 10: Line 10:
|0x04||int32||BGCOLOR="#FFFF00"|B4 00 00 00||180||ALIGN=LEFT|180 bytes; size of the part that follows
|0x04||int32||BGCOLOR="#FFFF00"|B4 00 00 00||180||ALIGN=LEFT|180 bytes; size of the part that follows
|- ALIGN=CENTER VALIGN=TOP
|- ALIGN=CENTER VALIGN=TOP
|0x08||bool32||BGCOLOR="#FFC8C8"|06 00 00 00||4 + 2||ALIGN=LEFT|bitset (see below)
|0x08||bool32||BGCOLOR="#FFC8C8"|06 00 00 00||6||ALIGN=LEFT|version (see below)
|- ALIGN=CENTER VALIGN=TOP
|- ALIGN=CENTER VALIGN=TOP
|0x0C||float||BGCOLOR="#FFFFC8"|00 00 80 3F||1.000000||ALIGN=LEFT|playback volume
|0x0C||float||BGCOLOR="#FFFFC8"|00 00 80 3F||1.000000||ALIGN=LEFT|playback volume (present for version 2 and above, default is 1)
|- ALIGN=CENTER VALIGN=TOP
|- ALIGN=CENTER VALIGN=TOP
|0x10||float||BGCOLOR="#C8FFC8"|00 00 80 3F||1.000000||ALIGN=LEFT|playback speed AKA pitch
|0x10||float||BGCOLOR="#C8FFC8"|00 00 80 3F||1.000000||ALIGN=LEFT|playback speed AKA pitch (present for version 3 and above, default is 1)
|- ALIGN=CENTER VALIGN=TOP
|- ALIGN=CENTER VALIGN=TOP
|0x14||bool16||BGCOLOR="#C8FFFF"|00 00||0||ALIGN=LEFT|unknown
|0x14||int16||BGCOLOR="#C8FFFF"|00 00||0||ALIGN=LEFT|unknown flag (present for version 6 and above, default is 0)
|- ALIGN=CENTER VALIGN=TOP
|- ALIGN=CENTER VALIGN=TOP
|0x16||bool16||BGCOLOR="#FFC8FF"|00 00||0||ALIGN=LEFT|prevent repeats (0/1)
|0x16||int16||BGCOLOR="#FFC8FF"|00 00||0||ALIGN=LEFT|prevent repeats (present for version 6 and above, default is 0)
|- ALIGN=CENTER VALIGN=TOP
|- ALIGN=CENTER VALIGN=TOP
|0x18||unknown||BGCOLOR="#FFC800"|01 00 00 00||1||ALIGN=LEFT|unknown
|0x18||unknown||BGCOLOR="#FFC800"|01 00 00 00||1||ALIGN=LEFT|unknown
Line 40: Line 40:
;Fury vocalizations
;Fury vocalizations
:Those are sped up by 1.14 in Oni, which explains why they sound weird when exported.
:Those are sped up by 1.14 in Oni, which explains why they sound weird when exported.
;Bitset at 0x08
;Version
:bit 4 is always set
:Just as for other [[OSBD]], there have been several version of the binary format.
:bit 1 - dunno, set for... (fill in)
:Over time, some fields that used to be hardcoded became customizeable on a group-per-group basis.
:bit 2 - enables the fields at 0x14 and 0x16 (apparently; maybe it's a bool32)
:Thus, later versions include some extra fields as compared to earlier ones.
::if bit 2 is off, then the 0x18 field goes to 0x14 etc: everything shifted backwards by 4 bytes
:The above example belongs to the latest OSGr version encountered in Oni: 6.
:Lower versions lack certain fields, and the following content is simply shifted backwards.