Go Back   Flash Flash Revolution > Gaming > Stepmania
Register FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
Old 04-22-2015, 11:21 PM   #1
Leo137
FFR Player
 
Leo137's Avatar
 
Join Date: Apr 2012
Posts: 422
Default [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 at 11:22 PM..
Leo137 is offline   Reply With Quote
Old 04-22-2015, 11:48 PM   #2
Staiain
Can't handle my ÆØÅ
Retired StaffD7 Elite KeysmasherFFR Veteran
 
Staiain's Avatar
 
Join Date: Aug 2009
Location: Norway
Posts: 4,544
Send a message via AIM to Staiain Send a message via MSN to Staiain Send a message via Skype™ to Staiain
Default Re: [SM5]search songs functionality

oh my god no more pornhub, got what i need here
Staiain is offline   Reply With Quote
Old 04-23-2015, 12:51 AM   #3
Sidek
FFR Player
FFR Veteran
 
Sidek's Avatar
 
Join Date: Nov 2010
Age: 29
Posts: 777
Default Re: [SM5]search songs functionality

amazing. !!
__________________

Bye.
Sidek is offline   Reply With Quote
Old 04-23-2015, 03:32 AM   #4
Kyzentun
FFR Player
 
Kyzentun's Avatar
 
Join Date: Dec 2014
Age: 38
Posts: 125
Default 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.
https://youtu.be/JV5aSyPPni4?t=1m28s
Consensus is that nobody gives a shit because graphics are what matters in a theme.
__________________
Stepmania Development in action:

Last edited by Kyzentun; 04-23-2015 at 03:33 AM..
Kyzentun is offline   Reply With Quote
Old 04-23-2015, 06:13 AM   #5
AutotelicBrown
Under the scarlet moon
FFR Simfile AuthorD7 Elite KeysmasherFFR Veteran
 
AutotelicBrown's Avatar
 
Join Date: Jan 2014
Age: 31
Posts: 921
Default 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.
AutotelicBrown is offline   Reply With Quote
Old 04-23-2015, 08:11 AM   #6
Kyzentun
FFR Player
 
Kyzentun's Avatar
 
Join Date: Dec 2014
Age: 38
Posts: 125
Default 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:
Kyzentun is offline   Reply With Quote
Old 04-23-2015, 09:11 AM   #7
AutotelicBrown
Under the scarlet moon
FFR Simfile AuthorD7 Elite KeysmasherFFR Veteran
 
AutotelicBrown's Avatar
 
Join Date: Jan 2014
Age: 31
Posts: 921
Default 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 at 09:12 AM..
AutotelicBrown is offline   Reply With Quote
Old 04-23-2015, 09:24 AM   #8
Kyzentun
FFR Player
 
Kyzentun's Avatar
 
Join Date: Dec 2014
Age: 38
Posts: 125
Default 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
__________________
Stepmania Development in action:

Last edited by Kyzentun; 04-23-2015 at 09:41 AM.. Reason: added code example
Kyzentun is offline   Reply With Quote
Old 04-23-2015, 11:40 AM   #9
NeonSM
Я тебя люблю Маша
FFR Veteran
 
NeonSM's Avatar
 
Join Date: Jan 2014
Posts: 571
Send a message via Skype™ to NeonSM
Default 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 at 11:40 AM..
NeonSM is offline   Reply With Quote
Old 04-23-2015, 12:52 PM   #10
Leo137
FFR Player
 
Leo137's Avatar
 
Join Date: Apr 2012
Posts: 422
Default Re: [SM5]search songs functionality

Quote:
Originally Posted by Kyzentun View Post
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.
https://youtu.be/JV5aSyPPni4?t=1m28s
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 at 12:54 PM..
Leo137 is offline   Reply With Quote
Old 04-23-2015, 01:26 PM   #11
NeonSM
Я тебя люблю Маша
FFR Veteran
 
NeonSM's Avatar
 
Join Date: Jan 2014
Posts: 571
Send a message via Skype™ to NeonSM
Default 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 ?_?
NeonSM is offline   Reply With Quote
Old 04-23-2015, 01:27 PM   #12
Wafles
FFR Player
 
Wafles's Avatar
 
Join Date: Feb 2013
Location: Wisconsin
Posts: 1,988
Send a message via Skype™ to Wafles
Default 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
Wafles is offline   Reply With Quote
Old 04-23-2015, 01:42 PM   #13
Leo137
FFR Player
 
Leo137's Avatar
 
Join Date: Apr 2012
Posts: 422
Default 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 at 01:49 PM..
Leo137 is offline   Reply With Quote
Old 04-23-2015, 02:04 PM   #14
Kyzentun
FFR Player
 
Kyzentun's Avatar
 
Join Date: Dec 2014
Age: 38
Posts: 125
Default 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:
Kyzentun is offline   Reply With Quote
Old 04-23-2015, 05:02 PM   #15
Wafles
FFR Player
 
Wafles's Avatar
 
Join Date: Feb 2013
Location: Wisconsin
Posts: 1,988
Send a message via Skype™ to Wafles
Default Re: [SM5]search songs functionality

Quote:
Originally Posted by Leo137 View Post
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.
Wafles is offline   Reply With Quote
Old 04-23-2015, 09:27 PM   #16
Leo137
FFR Player
 
Leo137's Avatar
 
Join Date: Apr 2012
Posts: 422
Default Re: [SM5]search songs functionality

Aint hard once you understand the basics at themeing and lua, sometimes i needed to dig on examples of other themes though, when the documentation wasn't clear enough to fill the logic gaps for me.

You could use my own searchbar to guide yourself (i detect cursor movement but im not using it for that)

Last edited by Leo137; 04-23-2015 at 09:27 PM..
Leo137 is offline   Reply With Quote
Old 08-5-2015, 02:41 PM   #17
defiancecp
FFR Player
 
Join Date: Oct 2014
Age: 47
Posts: 8
Default Re: [SM5]search songs functionality

I've collected so much stuff and always having trouble finding it -- this looks awesome!
defiancecp is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT -5. The time now is 02:47 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright FlashFlashRevolution