GGFR

From Foone Wiki
Jump to navigation Jump to search


A GGFR indicates events happening in the timeline of a scene.

Length: varies. 20 + chunk_data + 8*number_of_events ?

00: ChunkSignature (4 bytes)
04: Number of events (4 bytes)
08: Length of event data (4 bytes). 
0C: FF FF FF FF (4 bytes)
10: Unknown (4 bytes, value is always 08 00 00 00?)
14: First Event (at least 8 bytes)
  +00: Frame event happens on, 1-based (4 bytes)
  +04: Event type

NN Index, at 20+Length_of_event_data (8 bytes long)
  +00: Offset into event data (4 bytes)
  +04: Length of event (4 bytes)

Known event types:

Event1: Sound/Music/Speech
Length: 2C (44 bytes)

Event3: Change camera angle
Length: C (12)
+08: Camera angle of current scene to change to (4 bytes)

Event5: Wait for sound to end
Length: 10 (16)
+08: ?
+0C: ?