lekdan commited on
Commit
030b39a
·
verified ·
1 Parent(s): 69a2e62

Update README.md

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