BFEVFL: Difference between revisions

Jump to navigation Jump to search
no edit summary
imported>Leoetlino
No edit summary
imported>Leoetlino
No edit summary
Line 4: Line 4:
bfevfl is a little endian format, so values are stored in little endian even on Wii U.
bfevfl is a little endian format, so values are stored in little endian even on Wii U.


bfevfl uses pointers very heavily. All pointers are always 64 bit long -- since the same format is used on the Switch which is a 64 bit platform -- and must be present in the [[#Relocation table]].
bfevfl uses pointers very heavily to refer to strings, to other sections, etc. All pointers are always 64 bit long -- since the same format is used on the Switch which is a 64 bit platform. They must be present in the [[#Relocation table]] if the file is to be loaded correctly by the official bfevfl code.


There is no fixed order for most sections. Therefore, this article will only document the data structures and the most common order. For more details, it is recommended to look at the [https://github.com/leoetlino/evfl <code>evfl</code> library] directly.
As a direct consequence, most sections don't have any fixed order. Therefore, this article will only document the data structures and mention the order Nintendo places sections in. For more details, it is recommended to look at the [https://github.com/leoetlino/evfl <code>evfl</code> library] directly.


=== Header ===
=== Header ===
Line 44: Line 44:
| 0x28 || Flowchart* || Flowchart (nullptr if no flowchart)
| 0x28 || Flowchart* || Flowchart (nullptr if no flowchart)
|-
|-
| 0x30 || [[#Dic|Dic]]* || Flowchart name dictionary
| 0x30 || [[#Dictionary|Dictionary]]* || Flowchart name dictionary
|-
|-
| 0x38 || Timeline* || Timeline (nullptr if no timeline)
| 0x38 || Timeline* || Timeline (nullptr if no timeline)
|-
|-
| 0x40 || Dic* || Timeline name dictionary
| 0x40 || Dictionary* || Timeline name dictionary
|}
|}


Line 54: Line 54:
{{empty section}}
{{empty section}}


=== Dic ===
=== Dictionary ===
{{empty section}}
{{empty section}}
=== Container ===


=== Flowchart ===
=== Flowchart ===
Line 62: Line 64:
=== Timeline ===
=== Timeline ===
{{empty section}}
{{empty section}}
== Section order ==
=== File ===
* Header (0x48 bytes)
* Flowchart* array if it exists
* Flowchart dictionary (always)
* Timeline* array if it exists
* Timeline dictionary (always)
* Timeline
* Flowchart
* String pool (<code>STR </code>)
* Relocation table (<code>RELT</code>)
=== Timeline ===
{{empty section}}
=== Flowchart ===
* Flowchart header
* Actors
:* Argument name is put in the string pool.
* Events
* Entry point dictionary
* Entry points
* Event param containers, fork structs, etc. (in order)
* Actor param containers, string pointer arrays (in order)
* Entry point extra data
:* Sub flow event index arrays are written here
:* ptr_x10 data may be written here? (ptr_x10 has always been a nullptr in files that have been checked by [[User:leoetlino|leoetlino]].)
:* The size for each entry point is sizeof(event_idx_array) rounded up to the nearest multiple of 8 + 0x18 bytes.
=== Container ===
* Container header (variable size)
* Container dictionary
* Container items (+ values)


== Tools ==
== Tools ==
Anonymous user

Navigation menu