OpenNBS / OpenNoteBlockStudio

An open-source Minecraft music maker.
https://noteblock.studio
MIT License
764 stars 51 forks source link

[Bug] Sometimes the compress section feature doesn't work (pre-release) #468

Closed I21b closed 2 months ago

I21b commented 3 months ago

Describe the bug

If the section contains some notes in special placements, compressing it will crash the program or results in fewer notes. Most of the time, it results in fewer notes, in some special placements, the program will crash.

To Reproduce

Steps to reproduce the behavior:

  1. Place some notes (3 or more)
  2. Select these notes and compress it in the right-click menu
  3. Repeat step 2
  4. If nothing happened, try another placement

Expected behavior

Compress it until the notes become a vertical line

Screenshots

Crash Crash (0:19)

Fewer Fewer (0:12)

Additional context

Window 11 23H2 (64 x64) 3.11.0 Beta 2

Logs ``` ___________________________________________ ############################################################################################ ERROR in action number 1 of Draw Event for object obj_menu: index out of bounds request 4 maximum size is 4############################################################################################ gml_Script_selection_code_update (line 27) gml_Script_selection_compress (line 89) gml_Script_menu_click (line 146) gml_Script_menu_draw (line 188) gml_Object_obj_menu_Draw_0 (line 0) ```

Does nbs has auto save? 😭

Bentroen commented 2 months ago

Duplicate of #44