[SM5]search songs functionality

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Leo137
    FFR Player
    • Apr 2012
    • 422

    #1

    [SM5]search songs functionality

    Haven't seen it before i tried to implement it in my default edited theme, with very nice results, its ideal for me to select/browse songs really quickly

    vid when i was testing it:


    It supports mouse and keyboard interaction (via hotkeys for fullscreen mode), and works without problems in online/offline mode.

    If you find it useful you can grab the from my theme (https://github.com/Leo137/default-leo) or directly from this rar here just mind that the code is still messy and the texts are in spanish.
    Last edited by Leo137; 04-22-2015, 10:22 PM.
    My latest works:

    BCMP-ish (6key)

    Solo 137 Pack (6key)

    Jumpstream of Fighters vol.1

    Jumpstream of Fighters vol.2

    6k key discord
  • Staiain
    Can't handle my ÆØÅ
    • Aug 2009
    • 4544

    #2
    Re: [SM5]search songs functionality

    oh my god no more pornhub, got what i need here






    irc.rizon.net | #kbo - Come chat!BlueXoon is back
    SM Wiki My

    Comment

    • Sidek
      FFR Player
      • Nov 2010
      • 777

      #3
      Re: [SM5]search songs functionality

      amazing. !!

      Bye.

      Comment

      • Kyzentun
        FFR Player
        • Dec 2014
        • 125

        #4
        Re: [SM5]search songs functionality

        I've had advanced sorting and stuff in Consensual for over a year now.
        But I don't support online mode because I don't play it.

        Consensus is that nobody gives a shit because graphics are what matters in a theme.
        Last edited by Kyzentun; 04-23-2015, 02:33 AM.
        Stepmania Development in action:

        Comment

        • AutotelicBrown
          Under the scarlet moon
          FFR Simfile Author
          • Jan 2014
          • 923

          #5
          Re: [SM5]search songs functionality

          How hard would it be to implement a custom tagging system + search by tag?

          Something like, in the song selection screen you can add an arbitrary tag "tag A" to any selected song (e.g. indicating some particular pattern the song has, the highest rate I have an AA, personal favourites and so on). Then you can list only the songs that you tagged with "tag A".

          The tags themselves would be pretty useful for songs/packs I don't play very often, so I can recall something about them without having to start the song.
          And for the search, it would be great when I want to play a certain category of songs even when I don't have particular songs in mind. It would also be great to bring up hidden gems in bad packs that I don't want to bother browsing around.
          Play my files

          Comment

          • Kyzentun
            FFR Player
            • Dec 2014
            • 125

            #6
            Re: [SM5]search songs functionality

            I have custom tagging and sorting by tag. In fact, that is exactly what is done at the point in the video I linked to. I sort by tag and then go play some song that i tagged with "kawaii".
            Also, I did my stuff in a way that allows using it without a keyboard, so it works for pad players too.
            Stepmania Development in action:

            Comment

            • AutotelicBrown
              Under the scarlet moon
              FFR Simfile Author
              • Jan 2014
              • 923

              #7
              Re: [SM5]search songs functionality

              My bad, didn't really check anything of the video besides the search thing.

              Anyway, just checked the entire thing and it's pretty cool; pretty much everything I'd care about having added into the game is in there. As long as the actual playing screen looks similar to what I'm used to, I'm all in for using it.

              Just not entirely sure what exactly are you showing at 8:30 but I'll get the theme and check it for myself.
              Last edited by AutotelicBrown; 04-23-2015, 08:12 AM.
              Play my files

              Comment

              • Kyzentun
                FFR Player
                • Dec 2014
                • 125

                #8
                Re: [SM5]search songs functionality

                8:30 is editable pane display, so you can set whatever info you want in the pane instead of being stuck with some common set meant for everyone. If you comment on the theme, post in the thread on the main sm forums so this isn't derailed more.

                Anyway, for the topic:

                Nice work on figuring out how to use the input callback correctly. I wasn't sure whether the documentation for it actually made sense to anyone besides me. Why did you only make it support left shift and control though? You could do something like this to support both:
                Before the function:
                Code:
                local shift_key= { ["DeviceButton_left shift"]= true, ["DeviceButton_right shift"]= true}
                local control_key= { ["DeviceButton_left ctrl"]= true, ["DeviceButton_right ctrl"]= true}
                Inside the input function:
                Code:
                if shift_key[event.DeviceInput.button] then
                	if event.type == "InputEventType_Release" then
                		ShiftPressed = false
                	else
                		ShiftPressed = true
                	end
                elseif control_key[event.DeviceInput.button] then
                	if event.type == "InputEventType_Release" then
                		CtrlPressed = false
                	else
                		CtrlPressed = true
                	end
                end
                Last edited by Kyzentun; 04-23-2015, 08:41 AM. Reason: added code example
                Stepmania Development in action:

                Comment

                • NeonSM
                  Я тебя люблю Маша
                  • Jan 2014
                  • 571

                  #9
                  Re: [SM5]search songs functionality

                  This is awesome! how do you edit it into stepmania 5 though?

                  Does it work with any theme? I tried putting a whole folder with the files in the general sm 5 folder then i put graphics in graphics folder and bg animations in that folder. Nothing seems to be getting it in-game.

                  Help? This is a great feature though, great job!
                  Last edited by NeonSM; 04-23-2015, 10:40 AM.

                  Comment

                  • Leo137
                    FFR Player
                    • Apr 2012
                    • 422

                    #10
                    Re: [SM5]search songs functionality

                    Originally posted by Kyzentun
                    I've had advanced sorting and stuff in Consensual for over a year now.
                    But I don't support online mode because I don't play it.

                    Consensus is that nobody gives a shit because graphics are what matters in a theme.
                    Kyzentun: At least for me, the keyword is usability, not graphics, i'm just using default midiman's theme with modifications to make my life simpler.

                    Also, graphics can be a part of the experience (not just eyecandy) when it helps the user to understand what the fuk is happening.

                    I have seen consensual before, and while i thought the tags system was very amazing, i didnt find it that useful (at least for me), for the following reasons:
                    • I'm not going to tag 500+ songs, and even if i did chances are that it will still be a mess to navigate around
                    • I would like to search songs that i still haven't played
                    • I would like to find other version of the same song (smo repick purposes)
                    • I would like to jump easily into packs, maybe i don't remember the name of a song but another that was near to it (i care about the context of the results)


                    So it didnt quite fit my needs (because they arent even the same things), my searchbar allows to find songs by their full name/subtitle.

                    About the raw input, yeah, i took some examples from the documentation, and started to toy with it till i got it done, isn't exactly the most clear thing ever but w/e

                    Question about it, can i get raw text entry, in online mode (the chat inputs are the problem), without needing to call ScreenTextEntry?, the search bar would be a lot more cooler if you didnt get that black screen pausing the game.

                    Stai: rule34, searchbars

                    Sidek: ty <3

                    NeonSM: im pretty sure you missed adding the actor to your screen, find your ScreenSelectMusic overlay.lua at the BGAnimations folder, and add the needed line "t[#t+1] = LoadActor("searchbar")" just before the "return t;"

                    Also thanks
                    Last edited by Leo137; 04-23-2015, 11:54 AM.
                    My latest works:

                    BCMP-ish (6key)

                    Solo 137 Pack (6key)

                    Jumpstream of Fighters vol.1

                    Jumpstream of Fighters vol.2

                    6k key discord

                    Comment

                    • NeonSM
                      Я тебя люблю Маша
                      • Jan 2014
                      • 571

                      #11
                      Re: [SM5]search songs functionality

                      Yay it worked! thanks leo! Btw how do you make it find the song? I type it in and press enter but it doesnt automatically find the song ?_?

                      Comment

                      • Wafles
                        FFR Player
                        • Feb 2013
                        • 1988

                        #12
                        Re: [SM5]search songs functionality

                        Is there a way to enable mouse control and fullscreen at the same time, or does SM5 not support that

                        I'd like to get into some theming stuff with mouse control but i'm a fullscreen pleb

                        http://smleaderboards.net/profile/view/Wafles

                        Comment

                        • Leo137
                          FFR Player
                          • Apr 2012
                          • 422

                          #13
                          Re: [SM5]search songs functionality

                          NeonSM: click on the magnifying glass to start searching, and i know, is a drawback of the implementation.

                          Wafles: Is supported, but as you can't see the cursor, is hard to look where your mouse is

                          you can try to create a fake cursor actor that positions itself at the mouse position, and problem solved ??? ? ?? ?_?
                          Last edited by Leo137; 04-23-2015, 12:49 PM.
                          My latest works:

                          BCMP-ish (6key)

                          Solo 137 Pack (6key)

                          Jumpstream of Fighters vol.1

                          Jumpstream of Fighters vol.2

                          6k key discord

                          Comment

                          • Kyzentun
                            FFR Player
                            • Dec 2014
                            • 125

                            #14
                            Re: [SM5]search songs functionality

                            You can't get raw text entry without calling ScreenTextEntry because ScreenTextEntry is supposed to handle the the various complexities of text editing so that theme code doesn't have to worry about it. (it does a somewhat poor job of it right now, alternate keyboard layouts and unicode input don't work, or so I've heard.
                            You should be able to customize the screen so it's less obtrusive. If not, I'll have to go digging into it.

                            You could set up an input callback to translate keypresses to pieces of text with a simple table and special cases for backspace and enter. But that would mean that if ScreenTextEntry is improved in the future, the improvements don't show up in your theme, so it's not a good long term solution.
                            Stepmania Development in action:

                            Comment

                            • Wafles
                              FFR Player
                              • Feb 2013
                              • 1988

                              #15
                              Re: [SM5]search songs functionality

                              Originally posted by Leo137
                              Wafles: Is supported, but as you can't see the cursor, is hard to look where your mouse is

                              you can try to create a fake cursor actor that positions itself at the mouse position, and problem solved ??? ? ?? ?_?
                              I'm not too familiar with the documentation, would I be able to detect cursor movement easily enough? If so that seems feasible.

                              http://smleaderboards.net/profile/view/Wafles

                              Comment

                              Working...