Jump to content

Event Playbook: Difference between revisions

From HedgeDocs
Created page with "'''''Event Playbook''''' or <code>.epb</code> is a format used in Sonic the Hedgehog (2006) to define cutscene parameters. The playbook is located in <code>/xenon/archives/cache.arc/xenon/eventplayback.epb</code>. == Specification == The event playbook is stored within a BINA container. All listed offsets in the following structs are relative to the end of the BINA header. === Header === The header consists of the following data structure: {| c..."
 
Hyper (talk | contribs)
No edit summary
Line 1: Line 1:
'''''Event Playbook''''' or <code>.epb</code> is a format used in [[Sonic the Hedgehog (2006)]] to define cutscene parameters.
'''''Event Playbook''''' is a file format used in [[Sonic the Hedgehog (2006)]] to define cutscene properties.


The playbook is located in <code>/xenon/archives/cache.arc/xenon/eventplayback.epb</code>.
This file is located at <code>./xenon/archives/cache.arc/xenon/eventplaybook.epb</code>.


== Specification ==
== Specification ==
The event playbook is stored within a [[Binary Resource|BINA]] container. All listed offsets in the following structs are relative to the end of the BINA header.
'''Event Playbook''' uses a [[Binary Resource]] container.


=== Header ===
=== Header ===
Line 23: Line 23:
|UInt32
|UInt32
|Version
|Version
|
|Always 0x20060700 (big-endian). Format: 2006 July, Revision 0.
|-
|-
|0x08
|0x08
|UInt32
|UInt32
|EventCount
|EventCount
|Number of events within the table.
|The total number of events.
|-
|-
|0x0C
|0x0C
Line 37: Line 37:


=== Event Data ===
=== Event Data ===
Each event within the table consists of the following data structure. All strings are null-terminated:
Each event within the table consists of the following data structure:
{| class="wikitable"
{| class="wikitable"
|+Length: 0x38
|+Length: 0x38
Line 48: Line 48:
|UInt32
|UInt32
|NameOffset
|NameOffset
|The offset to the name of the event.
|The offset to the name of this event.
|-
|-
|0x04
|0x04
|UInt32
|UInt32
|FolderOffset
|DirectoryOffset
|The offset to the name of the folder containing the event's resources.
|The offset to the path to the directory containing this event's resources.
|-
|-
|0x08
|0x08
|UInt32
|UInt32
|Duration
|Duration
|The duration of the event in frames.
|The duration of this event in frames.
|-
|-
|0x0C
|0x0C
|Float[3]
|Vector3
|Position
|Position
|The start position of the event's camera.
|The start position of this event's camera.
|-
|-
|0x18
|0x18
|Float[3]
|Vector3
|Rotation
|Rotation
|The start rotation of the event's camera.
|The start rotation of this event's camera.
|-
|-
|0x24
|0x24
|UInt32
|UInt32
|TerrainOffset
|TerrainOffset
|The offset to the location of the event's terrain.
|The offset to the location of this event's terrain.
|-
|-
|0x28
|0x28
|UInt32
|UInt32
|SceneParametersOffset
|SceneParamsOffset
|The offset to the location of the event's scene parameter.
|The offset to the location of this event's scene parameter.
|-
|-
|0x2C
|0x2C
|UInt32
|UInt32
|SceneBankOffset
|SoundBankOffset
|The offset to the location of the event's sound bank.
|The offset to the location of this event's sound bank.
|-
|-
|0x30
|0x30
|UInt32
|UInt32
|ParticleContainerOffset
|ParticleContainerOffset
|The offset to the location of the event's particle container.
|The offset to the location of this event's particle container.
|-
|-
|0x34
|0x34
|UInt32
|UInt32
|SubtitlesOffset
|TextBookOffset
|The offset to the location of the event's text book for subtitles.
|The offset to the location of this event's text book for subtitles.
|}
|}

Revision as of 19:23, 2 December 2025

Event Playbook is a file format used in Sonic the Hedgehog (2006) to define cutscene properties.

This file is located at ./xenon/archives/cache.arc/xenon/eventplaybook.epb.

Specification

Event Playbook uses a Binary Resource container.

Header

The header consists of the following data structure:

Length: 0x10
Offset Type Name Description
0x00 Char[4] Signature Always ".EPB".
0x04 UInt32 Version Always 0x20060700 (big-endian). Format: 2006 July, Revision 0.
0x08 UInt32 EventCount The total number of events.
0x0C UInt32 EventTableOffset The offset of the event table.

Event Data

Each event within the table consists of the following data structure:

Length: 0x38
Offset Type Name Description
0x00 UInt32 NameOffset The offset to the name of this event.
0x04 UInt32 DirectoryOffset The offset to the path to the directory containing this event's resources.
0x08 UInt32 Duration The duration of this event in frames.
0x0C Vector3 Position The start position of this event's camera.
0x18 Vector3 Rotation The start rotation of this event's camera.
0x24 UInt32 TerrainOffset The offset to the location of this event's terrain.
0x28 UInt32 SceneParamsOffset The offset to the location of this event's scene parameter.
0x2C UInt32 SoundBankOffset The offset to the location of this event's sound bank.
0x30 UInt32 ParticleContainerOffset The offset to the location of this event's particle container.
0x34 UInt32 TextBookOffset The offset to the location of this event's text book for subtitles.
Cookies help us deliver our services. By using our services, you agree to our use of cookies.