Why is there no Music Gadget with on/off dynamic with random

Why is there no Music Gadget with on/off dynamic with random

Discuss Lua based Spring scripts (LuaUI widgets, mission scripts, gaia scripts, mod-rules scripts, scripted keybindings, etc...)

Moderator: Moderators

Post Reply
User avatar
Noruas
XTA Developer
Posts: 1269
Joined: 24 Feb 2005, 02:58

Why is there no Music Gadget with on/off dynamic with random

Post by Noruas »

Why is there no Music Gadget with on/off dynamic with random order have been made yet? I thought this was trivial, I know Pure has one, but Argh won't sell it out to TA mods, and it has no dynamic settings at the moment, in fact not even random.
User avatar
KaiserJ
Community Representative
Posts: 3113
Joined: 08 Sep 2008, 22:59

Re: Why is there no Music Gadget with on/off dynamic with random

Post by KaiserJ »

a music widget that could be loaded / used by any mod would be amazing
User avatar
CarRepairer
Cursed Zero-K Developer
Posts: 3359
Joined: 07 Nov 2007, 21:48

Re: Why is there no Music Gadget with on/off dynamic with random

Post by CarRepairer »

Noruas wrote:Why is there no Music Gadget with on/off dynamic with random order have been made yet? I thought this was trivial, I know Pure has one, but Argh won't sell it out to TA mods, and it has no dynamic settings at the moment, in fact not even random.
I'll pay $50 for it.
User avatar
REVENGE
Posts: 2382
Joined: 24 Aug 2006, 06:13

Re: Why is there no Music Gadget with on/off dynamic with random

Post by REVENGE »

CarRepairer wrote:
Noruas wrote:Why is there no Music Gadget with on/off dynamic with random order have been made yet? I thought this was trivial, I know Pure has one, but Argh won't sell it out to TA mods, and it has no dynamic settings at the moment, in fact not even random.
I'll pay $50 for it.
Really? I was thinking of doing an "advanced" music widget with ingame graphical configuration and faked crossfading, along with some better "battle" detection algorithms after I finished fixing ctf for the new Spring version.
User avatar
Tribulexrenamed
Posts: 775
Joined: 22 Apr 2008, 19:06

Re: Why is there no Music Gadget with on/off dynamic with random

Post by Tribulexrenamed »

Do it sir.



NOWWWWWW
User avatar
aegis
Posts: 2456
Joined: 11 Jul 2007, 17:47

Re: Why is there no Music Gadget with on/off dynamic with random

Post by aegis »

I'd work on it if spring didn't freeze randomly...
User avatar
REVENGE
Posts: 2382
Joined: 24 Aug 2006, 06:13

Re: Why is there no Music Gadget with on/off dynamic with random

Post by REVENGE »

Tribulex wrote:Do it sir.



NOWWWWWW
I'll have to put it off until after midterms, so someone can um "steal" the idea and MAEK IT NAO! to make my life easier. 8)
User avatar
Tribulexrenamed
Posts: 775
Joined: 22 Apr 2008, 19:06

Re: Why is there no Music Gadget with on/off dynamic with random

Post by Tribulexrenamed »

Yeah im supposed to be helping LordLemmi and I have not really done much there, have to get that done first.
User avatar
Stealth870
Posts: 166
Joined: 13 Sep 2004, 00:25

Re: Why is there no Music Gadget with on/off dynamic with random

Post by Stealth870 »

Never got to finish mine, mainly because (AFAIK) there is no way to get the position of the current playing song, or at the very least the possibility to change the volume of the currently playing track. If I had that, I think I could write a pseudo-fade-in/out code and get a random music player. The battle detection stuff can probably be added afterward by someone more experienced in Lua. ;P
User avatar
REVENGE
Posts: 2382
Joined: 24 Aug 2006, 06:13

Re: Why is there no Music Gadget with on/off dynamic with random

Post by REVENGE »

Stealth870 wrote:Never got to finish mine, mainly because (AFAIK) there is no way to get the position of the current playing song, or at the very least the possibility to change the volume of the currently playing track. If I had that, I think I could write a pseudo-fade-in/out code and get a random music player. The battle detection stuff can probably be added afterward by someone more experienced in Lua. ;P
Hmm, thinking about what you said, I need to rethink my strategy as well...All this after tomorrow though. :P
User avatar
REVENGE
Posts: 2382
Joined: 24 Aug 2006, 06:13

Re: Why is there no Music Gadget with on/off dynamic with random

Post by REVENGE »

Hey stealth, the functions are in the latest changelog, lock and load. 8)
User avatar
Stealth870
Posts: 166
Joined: 13 Sep 2004, 00:25

Re: Why is there no Music Gadget with on/off dynamic with random

Post by Stealth870 »

Are they in current Spring or do I have to get an SVN version?
User avatar
REVENGE
Posts: 2382
Joined: 24 Aug 2006, 06:13

Re: Why is there no Music Gadget with on/off dynamic with random

Post by REVENGE »

They're in current Spring.
User avatar
Stealth870
Posts: 166
Joined: 13 Sep 2004, 00:25

Re: Why is there no Music Gadget with on/off dynamic with random

Post by Stealth870 »

Just to update, I have figured out the pseudo fade-out thanks to Lurker. I currently have the player using commands that can stop, fade out and stop, or fade out and change the songs. :D So what's left would be:

Auto random play (easy, I guess)
Dynamic Based On Action (not sure how to go about this)
a GUI switch? (Should be easy, though I'd think F11 to disable is enough? :P)
User avatar
Chosker
Posts: 37
Joined: 02 Sep 2008, 09:45

Re: Why is there no Music Gadget with on/off dynamic with random

Post by Chosker »

nice!

hey perhaps you could release a version without the dynamic battle thingy, then with it once you figure it out :-)
Post Reply

Return to “Lua Scripts”