Skip to content

Selection

skzk edited this page Jan 8, 2025 · 11 revisions

A selection file (.sbd, "selection binary data") holds map items and nodes in almost the same format as a sector file.

It is used in the game for creating random events.

There is no text output for this format that I'm aware of, so I'm just going to make up some identifiers.

Structure

Field(s) Description
Header See Header.
s32 origin_x
s32 origin_y
s32 origin_z

Origin / center point of the items, multiplied by 256.

Basically, if you import a .sbd with the editor, this vector will be subtracted from all node positions.

struct kdop k-DOP bounds of all items (probably). See k-DOP bounding box.
u32 item_count
u32 node_count
Amount of items and nodes. In this format, both of these are at the top for some reason, with the lists following after.
array_struct items

Contains the items.

Unlike sector files, there is no .base/.aux separation, and if an item is split into a .base part and a .data part, both parts are written one after the other.

array_struct nodes Contains the nodes of the items in this file.
Clone this wiki locally