Bgdata: Difference between revisions

→‎Contents: If any key is found, the game will stop parsing the rest of the file.
imported>Leoetlino
(Created page with "{{lowercase}} '''bgdata''' (binary game data) files are BYMLs containing lists of GameData flags. They are stored in gamedata.sarc and loaded by GameDataMgr. bgda...")
 
imported>Leoetlino
(→‎Contents: If any key is found, the game will stop parsing the rest of the file.)
Line 4: Line 4:
bgdata files are most likely machine generated.
bgdata files are most likely machine generated.
== Contents ==
== Contents ==
The root node is always a dictionary that contains at least one of the following keys:
The root node is always a dictionary that contains one of the following keys:
* bool_data
* bool_data
* s32_data
* s32_data
Line 66: Line 66:


For vector types (vec2, vec3, vec4), a value is stored as an array which further contains an array of values (e.g. <code>[ [-1.0, 0.0] ]</code> for a vec2).
For vector types (vec2, vec3, vec4), a value is stored as an array which further contains an array of values (e.g. <code>[ [-1.0, 0.0] ]</code> for a vec2).
If any key is found, the game will stop parsing the rest of the file.


== Examples ==
== Examples ==
Anonymous user