File size: 15,221 Bytes
69a2e62 030b39a |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 |
---
license: mit
tags:
- music
- osu
- game
- beatmap
---
# osu-dataset-builder Schema
This document describes the parquet file schemas generated by osu-dataset-builder.
## Overview
The dataset consists of 14 parquet files organized into logical groups:
| Group | Files | Description |
|-------|-------|-------------|
| **Core** | beatmaps, hit_objects, timing_points | Main beatmap data |
| **Sliders** | slider_control_points, slider_data | Slider curve details |
| **Storyboard** | storyboard_elements, storyboard_commands, storyboard_loops, storyboard_triggers | Storyboard animations |
| **Events** | breaks, combo_colors, hit_samples | Per-beatmap visual/audio events |
---
## beatmaps.parquet
Core beatmap metadata. One row per `.osu` file.
| Column | Type | Description |
|--------|------|-------------|
| folder_id | string | Beatmap folder name |
| osu_file | string | `.osu` filename |
| format_version | int32 | osu! file format version |
| audio_file | string | Audio filename |
| audio_lead_in | float64 | Milliseconds before audio starts |
| preview_time | int32 | Audio preview start time |
| default_sample_bank | int32 | Default hitsound bank (0=None, 1=Normal, 2=Soft, 3=Drum) |
| default_sample_volume | int32 | Default hitsound volume (0-100) |
| stack_leniency | float32 | Note stacking threshold |
| mode | int32 | Game mode (0=osu!, 1=Taiko, 2=Catch, 3=Mania) |
| letterbox_in_breaks | bool | Letterbox during breaks |
| special_style | bool | N+1 key style for mania |
| widescreen_storyboard | bool | Storyboard supports widescreen |
| epilepsy_warning | bool | Show epilepsy warning |
| samples_match_playback_rate | bool | Hitsounds scale with speed mods |
| countdown | int32 | Countdown type (0=None, 1=Normal, 2=Half, 3=Double) |
| countdown_offset | int32 | Countdown beat offset |
| bookmarks | string | Comma-separated editor bookmarks |
| distance_spacing | float64 | Editor distance snap |
| beat_divisor | int32 | Editor beat snap divisor |
| grid_size | int32 | Editor grid size |
| timeline_zoom | float64 | Editor timeline zoom |
| title | string | Song title (ASCII) |
| title_unicode | string | Song title (Unicode) |
| artist | string | Artist name (ASCII) |
| artist_unicode | string | Artist name (Unicode) |
| creator | string | Mapper username |
| version | string | Difficulty name |
| source | string | Song source (game, anime, etc.) |
| tags | string | Space-separated search tags |
| beatmap_id | int32 | Beatmap ID |
| beatmap_set_id | int32 | Beatmapset ID |
| hp_drain_rate | float32 | HP drain (0-10) |
| circle_size | float32 | Circle size (0-10) |
| overall_difficulty | float32 | Overall difficulty (0-10) |
| approach_rate | float32 | Approach rate (0-10) |
| slider_multiplier | float64 | Base slider velocity |
| slider_tick_rate | float64 | Slider tick rate |
| background_file | string | Background image filename |
| audio_path | string | Full audio path in assets |
| background_path | string | Full background path in assets |
---
## hit_objects.parquet
Hit objects (circles, sliders, spinners). Ordered by start_time.
| Column | Type | Nullable | Description |
|--------|------|----------|-------------|
| folder_id | string | | Beatmap folder |
| osu_file | string | | `.osu` filename |
| index | int32 | | Object index (0-based) |
| start_time | float64 | | Start time in ms |
| object_type | string | | `circle`, `slider`, or `spinner` |
| pos_x | int32 | ✓ | X position (0-512) |
| pos_y | int32 | ✓ | Y position (0-384) |
| new_combo | bool | | Starts a new combo |
| combo_offset | int32 | | Combo color skip count |
| curve_type | string | ✓ | Slider: `B`, `C`, `L`, `P` |
| slides | int32 | ✓ | Slider repeat count |
| length | float64 | ✓ | Slider length in osupixels |
| end_time | float64 | ✓ | End time (spinners/sliders) |
---
## timing_points.parquet
Timing and inherited timing points.
| Column | Type | Nullable | Description |
|--------|------|----------|-------------|
| folder_id | string | | Beatmap folder |
| osu_file | string | | `.osu` filename |
| time | float64 | | Time in ms |
| point_type | string | | `timing` or `inherited` |
| beat_length | float64 | ✓ | Ms per beat (timing points) |
| time_signature | string | ✓ | e.g., "4/4" |
| slider_velocity | float64 | ✓ | SV multiplier (inherited) |
| kiai | bool | ✓ | Kiai mode active |
| sample_bank | string | ✓ | Hitsound bank override |
| sample_volume | int32 | ✓ | Volume override |
---
## slider_control_points.parquet
Slider Bézier/path control points.
| Column | Type | Nullable | Description |
|--------|------|----------|-------------|
| folder_id | string | | Beatmap folder |
| osu_file | string | | `.osu` filename |
| hit_object_index | int32 | | Parent slider index |
| point_index | int32 | | Control point index |
| pos_x | float32 | | X position |
| pos_y | float32 | | Y position |
| path_type | string | ✓ | Curve type at this point |
---
## slider_data.parquet
Additional slider metadata.
| Column | Type | Nullable | Description |
|--------|------|----------|-------------|
| folder_id | string | | Beatmap folder |
| osu_file | string | | `.osu` filename |
| hit_object_index | int32 | | Parent slider index |
| repeat_count | int32 | | Number of repeats |
| velocity | float64 | | Computed slider velocity |
| expected_dist | float64 | ✓ | Expected travel distance |
---
## breaks.parquet
Break periods during gameplay.
| Column | Type | Description |
|--------|------|-------------|
| folder_id | string | Beatmap folder |
| osu_file | string | `.osu` filename |
| start_time | float64 | Break start in ms |
| end_time | float64 | Break end in ms |
---
## combo_colors.parquet
Custom combo and skin colors.
| Column | Type | Nullable | Description |
|--------|------|----------|-------------|
| folder_id | string | | Beatmap folder |
| osu_file | string | | `.osu` filename |
| color_index | int32 | | Color order (0-based) |
| color_type | string | | `combo` or `custom` |
| custom_name | string | ✓ | Custom color key name |
| red | int32 | | R component (0-255) |
| green | int32 | | G component (0-255) |
| blue | int32 | | B component (0-255) |
---
## hit_samples.parquet
Per-hit-object hitsound samples.
| Column | Type | Nullable | Description |
|--------|------|----------|-------------|
| folder_id | string | | Beatmap folder |
| osu_file | string | | `.osu` filename |
| hit_object_index | int32 | | Parent hit object |
| sample_index | int32 | | Sample index for this object |
| name | string | | Sample name (Normal, Whistle, Finish, Clap) |
| bank | string | | Sample bank |
| suffix | string | ✓ | Custom sample suffix |
| volume | int32 | | Volume (0-100) |
---
## storyboard_elements.parquet
Storyboard sprites and animations.
| Column | Type | Nullable | Description |
|--------|------|----------|-------------|
| folder_id | string | | Beatmap folder |
| source_file | string | | Source `.osu` or `.osb` file |
| element_index | int32 | | Element index |
| layer_name | string | | Layer (Background, Fail, Pass, Foreground) |
| element_path | string | | Image/animation path |
| element_type | string | | `sprite` or `animation` |
| origin | string | | Anchor point (Centre, TopLeft, etc.) |
| initial_pos_x | float32 | | Initial X position |
| initial_pos_y | float32 | | Initial Y position |
| frame_count | int32 | ✓ | Animation frame count |
| frame_delay | float64 | ✓ | Animation frame delay |
| loop_type | string | ✓ | Animation loop type |
| is_embedded | bool | | Embedded in .osu (vs standalone .osb) |
---
## storyboard_commands.parquet
Storyboard animation commands with easing.
| Column | Type | Description |
|--------|------|-------------|
| folder_id | string | Beatmap folder |
| source_file | string | Source `.osu` or `.osb` file |
| element_index | int32 | Parent element index |
| command_type | string | `x`, `y`, `scale`, `rotation`, `alpha`, `color`, `flip_h`, `flip_v`, `vector_scale`, `blending` |
| start_time | float64 | Command start in ms |
| end_time | float64 | Command end in ms |
| start_value | string | Start value (format depends on type) |
| end_value | string | End value (format depends on type) |
| easing | int32 | Easing function (0-34, see osu! wiki) |
| is_embedded | bool | Embedded in .osu |
---
## storyboard_loops.parquet
Storyboard loop definitions.
| Column | Type | Description |
|--------|------|-------------|
| folder_id | string | Beatmap folder |
| source_file | string | Source file |
| element_index | int32 | Parent element |
| loop_index | int32 | Loop index for this element |
| loop_start_time | float64 | Loop start in ms |
| loop_count | int32 | Number of iterations |
| is_embedded | bool | Embedded in .osu |
---
## storyboard_triggers.parquet
Storyboard trigger definitions.
| Column | Type | Description |
|--------|------|-------------|
| folder_id | string | Beatmap folder |
| source_file | string | Source file |
| element_index | int32 | Parent element |
| trigger_index | int32 | Trigger index |
| trigger_name | string | Trigger type (Passing, Failing, etc.) |
| trigger_start_time | float64 | Trigger start in ms |
| trigger_end_time | float64 | Trigger end in ms |
| group_number | int32 | Trigger group |
| is_embedded | bool | Embedded in .osu |
---
## Key Relationships
```
beatmaps (1) ─────┬───── (N) hit_objects ────── (N) hit_samples
│ └────── (N) slider_control_points
│ └────── (1) slider_data
├───── (N) timing_points
├───── (N) breaks
└───── (N) combo_colors
storyboard_elements (1) ─┬───── (N) storyboard_commands
├───── (N) storyboard_loops
└───── (N) storyboard_triggers
```
---
# Enriched Data (osu-enricher)
The following tables are generated by `osu-enricher` from the osu! API and local PP calculations.
## beatmap_enriched.parquet
Comprehensive beatmap data combining API metadata and rosu-pp calculations. One row per beatmap.
### Identifiers
| Column | Type | Description |
|--------|------|-------------|
| beatmap_id | uint32 | Beatmap ID |
| beatmapset_id | uint32 | Beatmapset ID |
| folder_id | string | Beatmap folder |
| osu_file | string | `.osu` filename |
### API Metadata (BeatmapExtended)
| Column | Type | Description |
|--------|------|-------------|
| mode | string | Game mode: osu, taiko, catch, mania |
| version | string | Difficulty name |
| url | string | Full beatmap URL |
| status | string | Ranked, Loved, Graveyard, etc. |
| is_scoreable | bool | Can submit scores |
| convert | bool | Is a converted map |
### Difficulty Settings
| Column | Type | Description |
|--------|------|-------------|
| ar | float32 | Approach rate |
| cs | float32 | Circle size |
| od | float32 | Overall difficulty |
| hp | float32 | HP drain |
| bpm | float32 | Beats per minute |
### Object Counts
| Column | Type | Description |
|--------|------|-------------|
| count_circles | uint32 | Number of circles |
| count_sliders | uint32 | Number of sliders |
| count_spinners | uint32 | Number of spinners |
### Length & Stats
| Column | Type | Description |
|--------|------|-------------|
| seconds_drain | uint32 | Drain time in seconds |
| seconds_total | uint32 | Total length in seconds |
| playcount | uint32 | Total play count |
| passcount | uint32 | Total pass count |
| max_combo_api | uint32? | Max combo (from API) |
| stars_api | float32 | Star rating (from API) |
### Other
| Column | Type | Description |
|--------|------|-------------|
| checksum | string | MD5 hash |
| creator_id | uint32 | Mapper user ID |
| last_updated | int64? | Unix timestamp |
### PP Calculation (rosu-pp)
| Column | Type | Description |
|--------|------|-------------|
| stars_calc | float64 | Calculated star rating |
| max_pp | float64 | Max PP (SS, nomod) |
| max_combo_calc | uint32 | Calculated max combo |
### osu! Mode Specific
| Column | Type | Description |
|--------|------|-------------|
| osu_aim | float64? | Aim difficulty |
| osu_speed | float64? | Speed difficulty |
| osu_flashlight | float64? | Flashlight difficulty |
| osu_slider_factor | float64? | Slider factor |
| osu_speed_note_count | float64? | Speed notes count |
| osu_aim_difficult_slider_count | float64? | Difficult slider count |
| osu_aim_difficult_strain_count | float64? | Aim strain count |
| osu_speed_difficult_strain_count | float64? | Speed strain count |
| osu_great_hit_window | float64? | Great (300) hit window |
| osu_ok_hit_window | float64? | OK (100) hit window |
| osu_meh_hit_window | float64? | Meh (50) hit window |
| osu_n_large_ticks | uint32? | Large tick count |
### taiko Mode Specific
| Column | Type | Description |
|--------|------|-------------|
| taiko_stamina | float64? | Stamina difficulty |
| taiko_rhythm | float64? | Rhythm difficulty |
| taiko_color | float64? | Color difficulty |
| taiko_reading | float64? | Reading difficulty |
| taiko_great_hit_window | float64? | Great hit window |
| taiko_ok_hit_window | float64? | OK hit window |
| taiko_mono_stamina_factor | float64? | Mono stamina factor |
### catch Mode Specific
| Column | Type | Description |
|--------|------|-------------|
| catch_ar | float64? | Approach rate (calculated) |
| catch_n_fruits | uint32? | Fruit count |
| catch_n_droplets | uint32? | Droplet count |
| catch_n_tiny_droplets | uint32? | Tiny droplet count |
### mania Mode Specific
| Column | Type | Description |
|--------|------|-------------|
| mania_n_objects | uint32? | Object count |
| mania_n_hold_notes | uint32? | Hold note count |
### Common (for converts)
| Column | Type | Description |
|--------|------|-------------|
| is_convert | bool? | Whether map is a convert |
### Status
| Column | Type | Description |
|--------|------|-------------|
| pp_failed | string? | Reason if PP calculation failed (e.g. "Suspicious map: Density") |
---
## beatmap_comments.parquet
Beatmapset comments from the osu! API. Includes main comments, replies, and pinned comments.
| Column | Type | Nullable | Description |
|--------|------|----------|-------------|
| beatmapset_id | uint32 | | Beatmapset ID this comment belongs to |
| comment_id | uint32 | | Comment ID |
| parent_id | uint32 | ✓ | Parent comment ID (for replies) |
| user_id | uint32 | ✓ | Commenter user ID |
| legacy_name | string | ✓ | Legacy username (for old comments) |
| message | string | ✓ | Comment content (markdown) |
| message_html | string | ✓ | Comment content (HTML) |
| votes_count | uint32 | | Number of upvotes |
| replies_count | uint32 | | Number of replies |
| pinned | bool | | Whether comment is pinned |
| commentable_type | string | | Object type (beatmapset) |
| created_at | int64 | | Creation timestamp (Unix) |
| updated_at | int64 | | Last update timestamp (Unix) |
| edited_at | int64 | ✓ | Edit timestamp (Unix) |
| edited_by_id | uint32 | ✓ | Editor user ID |
| deleted_at | int64 | ✓ | Deletion timestamp (Unix) | |