tillvit / smeditor

Online web tool to view and edit StepMania chart (.sm/.ssc files) @ https://tillvit.github.io/smeditor
MIT License
54 stars 9 forks source link

[BUG] Split timing functionality currently non-functional #145

Open TCHalogen opened 3 weeks ago

TCHalogen commented 3 weeks ago

Please let me know if I'm posting things at too high of a frequency, as an aside. I genuinely love using this editor and am very much wanting to use this over ArrowVortex already.

As an aside, this ticket can potentially be broken down into two discrete issues. I can separate them if you'd like.

Version/OS

Windows 11 23H2 (22631.4317)

Bug Description

1.) Chart-specific timing events are not constrained to the chart they're being applied to if they have not been designated as a split-timing chart. 2.) Chart-specific timing events are constrained to the appropriate difficulty if a loaded chart is designated as a split-timing chart, but saving causes unpredictable behavior that not only discards the intended timings, but seems to apply them to other charts as well.

Bug Reproduction

Issue 1

Issue 2

Screenshots

Expert Difficulty - all timing events intended only for this difficulty; all other difficulties prior to the application of this are empty image

After adding timing events to Expert -- present in all other charts image

After removing timing events from any difficulty image

Additional Context

Logs

chrome_debug.log

tillvit commented 3 weeks ago

Yeah I think adding them is nonfunctional but loading them isn't. There's groundwork for supporting editing them but I haven't really figured out a nice workflow for it (also UI considerations). I need to somehow make it clear if a column is in chart timing/song timing somehow at a glance and tell the user that things will be deleted if they decide to swap back to song timing. It's a hard design problem that I've postponed for 1+ years but it might be time to start thinking about it haha

TCHalogen commented 3 weeks ago

Yeah, I was playing around with the code myself and couldn't find a way to make the timing event popup box to look particularly good. Adding a checkbox with the isChartTiming property as a key seemed to appropriately cause the file to save as split timing but I didn't give it a huge look.

Loading them is definitely fine; I had to just basically go back and forth between your editors to make things work now that I've gotten used to the workflow of your editor, hahaha