Evhb: Difference between revisions

From ZeldaMods (Link's Awakening)
Jump to navigation Jump to search
imported>Leoetlino
mNo edit summary
imported>Leoetlino
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{File format|name=evhb}}
{{File format|name=evhb|version=1|magic=evhb|endianness=little}}
'''evhb''' is a format for storing event actor hierarchy information for [[Event flow|event flows]].
'''evhb''' is a format for storing event actor hierarchy information for [[Event flow|event flows]].


Line 12: Line 12:
|0x0
|0x0
|char[4]
|char[4]
|Magic (<code>evhb</code> or <code>EVHB</code>)
|Magic (<code>evhb</code>)
 
After pointer relocation, the magic is set to <code>EVHB</code>.
|-
|-
|0x4
|0x4
|u32
|u32
|Version
|Version (1, unchecked)
|-
|-
|0x8
|0x8
Line 26: Line 28:
|Padding
|Padding
|}
|}
All offsets are validated by the game. Strangely enough, some of the checks and relocation are skipped when the magic is <code>EVHB</code>.


=== Entry ===
=== Entry ===

Latest revision as of 10:20, 12 April 2020

evhb
File format
Magic evhb
Endianness little
Version 1
This article is about the file format in general. For actual values, check the game RomFS.

evhb is a format for storing event actor hierarchy information for event flows.

Format

Header

Offset Type Description
0x0 char[4] Magic (evhb)

After pointer relocation, the magic is set to EVHB.

0x4 u32 Version (1, unchecked)
0x8 u32 Number of entries
0xC u32 Padding

Entry

Offset Type Description
0x0 const char* Event actor name
0x8 u32 Event actor name length
0xC int Index of parent event actor (-1 if none)