Beco: Difference between revisions
Jump to navigation
Jump to search
imported>Leoetlino m (lowercase title) |
imported>Leoetlino No edit summary |
||
Line 12: | Line 12: | ||
| 0x0 || u32 || Magic (0x00112233) | | 0x0 || u32 || Magic (0x00112233) | ||
|- | |- | ||
| 0x4 || u32 || Number of | | 0x4 || u32 || Number of rows | ||
|- | |- | ||
| 0x8 || u32 || Divisor | | 0x8 || u32 || Divisor | ||
Line 19: | Line 19: | ||
|} | |} | ||
=== | === Offsets === | ||
{| class="wikitable" | {| class="wikitable" | ||
|- | |- | ||
! Offset !! Type !! Description | ! Offset !! Type !! Description | ||
|- | |- | ||
| 0x0 || u32[ | | 0x0 || u32[num_rows] || Offsets to row data, divided by 2 and relative to data start offset | ||
|} | |} | ||
=== | === Data === | ||
Data starts here. | |||
==== Segment ==== | ==== Segment ==== | ||
Line 40: | Line 40: | ||
|} | |} | ||
This structure is repeated until the | This structure is repeated until the entire row has been covered by segments. The sum of all segment lengths is equal to the length of the map on the X axis. | ||
== Operations == | == Operations == |
Revision as of 17:06, 11 September 2018
beco is a file format that is used for storing per-coordinate data.
Structure
beco files are little endian on Switch and big endian on Wii U.
Header
Offset | Type | Description |
---|---|---|
0x0 | u32 | Magic (0x00112233) |
0x4 | u32 | Number of rows |
0x8 | u32 | Divisor |
0xc | u32 | Padding |
Offsets
Offset | Type | Description |
---|---|---|
0x0 | u32[num_rows] | Offsets to row data, divided by 2 and relative to data start offset |
Data
Data starts here.
Segment
Offset | Type | Description |
---|---|---|
0x0 | u16 | Custom data |
0x2 | u16 | Length (X axis) |
This structure is repeated until the entire row has been covered by segments. The sum of all segment lengths is equal to the length of the map on the X axis.
Operations
Getting the custom data for a given coordinate
This section is empty. You can help by adding to it. |