New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add "Hold Off" mod (no long notes) #16658
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the contribution.
I have made a few notes on the code, in addition to CI results. It would be best to have basic test coverage for this mod (see all osu.Game.Rulesets.Mania.Tests/Mods/TestSceneManiaMod*.cs
for example)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there will be code style inspections due to too many empty lines here - please run inspectcode locally to resolve
Thanks for the suggestions, everyone. I've implemented all of the improvements for now, except the test "suite" is still a little lacking :-) It took a good deal to get it running, so maybe I'll return to it to add some more tests tomorrow, though I still don't know what test ideas to try out. |
Just changed the "threshold" we had before to derive from the beat value of a note rather than from its time in ms, so now only notes that last over 1/2 a beat (by default) get an end note. (Is the way I implemented it a good way to get a hold note's note value, though?) Like @peppy and @smoogipoo said, it might be too excessive to have this kind of control specifically over end notes, but I included them anyway to see whether this setting is any good. Currently there's a dropdown that allows 1/1, 1/2, 1/4, etc. to be set as the thresholds, though please scrutinize this feature if it's not really appropriate. |
I think this mod should be made incompatible with |
Agree with incompatible. Disagree with same button (they are functionally very different and should be top-level visible). |
I also don't know about grouping under the same button, but I have gone and made incompatible with Invert. I also did wonder whether they should be incompatible from the beginning, but I wasn't sure enough to commit it. |
Co-authored-by: Bartłomiej Dach <dach.bartlomiej@gmail.com>
For future time travelers who may be interested in improving/adjusting this, my intentions regarding beat length weren't implemented as I suggested them to be. Rather than adding an ending note when the length exceeds some beat length value, my intention was to add a note every X beat length. It basically results in the following difference: This takes advantage of two facts:
|
Sounds better. Could notes not just be added at every tick? |
Haven't explored that/don't know if mania properly uses tick rate at all (because it's not a thing in osu-stable), but possibly. |
Reference: ppy/osu#16658
Hello, I have made an osu!mania mod which converts all held notes into single-tap notes, one at the start and one at the end. It has a customization which allows users to select how long a held note needs to be for an end note to be added, if at all.
I saw this mod concept while my friend was playing Quaver and thought it might be a fun addition to osu! too. I hope the code is of acceptable quality, though I wasn't sure how to write a test, so sorry for any inconveniences.
I also don't feel awfully confident about the icon that represents the mod, nor the descriptions/tooltips for customization, so, by all means, please change them as necessary.
Thanks