Ulysses

Ulysses Stuff => Releases => Topic started by: Cobalt on January 10, 2014, 11:53:33 AM

Title: TTT Advanced End Round Music
Post by: Cobalt on January 10, 2014, 11:53:33 AM
Someone asked me to make an end round music script the other day, I thought I'd share it with you all.
This script will stream music from any .mp3 URL source, whether it be .mp3s hosted on your webserver, or a link you found on mp3skull. 
Features include:
-Different tables for different win scenarios (inno, traitor, timeout)
-5 included ulx commands for various things such as playing urls sv/cl side, stopping urls and queuing songs
-Nice looking HUD overlay displaying the name of the sound playing at the end of the round
-Queue system: donators can queue up any url they want that will play at the end round. (3 minute cool down between requests, configurable) and input the name and artist for end round HUD viewing. Admins can remove any queued song.
-Derma GUI with tabs for viewing all sounds loaded into the script, and for viewing all queued sounds. In the music tab it will show the type of song (inno/traitor/timeout), the artist and song name, and the URL. In the queue tab you can see the name of the user who added the song, the song name, and the url. Right click on any entry for various options such as playing that url for the server, for yourself, stopping sounds for the server, stopping sounds for yourself / Playing queued song for server or yourself, and removing any queued song.
Hope some of you find this useful.

Instructions:
Extract the file into your addons/ulx/lua/ulx/modules/sh folder

Screenshots:
HUD Overlay: http://puu.sh/6gghR.jpg (http://puu.sh/6gghR.jpg)
Menu: http://puu.sh/6ggna.jpg (http://puu.sh/6ggna.jpg)
Music tab: http://puu.sh/6ggnR.jpg (http://puu.sh/6ggnR.jpg)
Queuing a song:
     Step 1: http://puu.sh/6ggt1.bmp (http://puu.sh/6ggt1.bmp)
     Step 2: http://puu.sh/6gguz.bmp (http://puu.sh/6gguz.bmp)
     Done: http://puu.sh/6ggxy.bmp (http://puu.sh/6ggxy.bmp)
Queue: http://puu.sh/6ggAe.bmp (http://puu.sh/6ggAe.bmp)
Cooldown: http://puu.sh/6ggMC.jpg (http://puu.sh/6ggMC.jpg)
Title: Re: TTT Advanced End Round Music
Post by: Hot_tub on January 10, 2014, 12:03:58 PM
Nifty  8)
Title: Re: TTT Advanced End Round Music
Post by: JamminR on January 10, 2014, 12:21:30 PM
Thought about adding/modifying to make this a 'radio' feature for any gamemode?
Seems it's been a while. I've no idea if PlayX still works.
Title: Re: TTT Advanced End Round Music
Post by: Cobalt on January 10, 2014, 12:44:07 PM
Thought about adding/modifying to make this a 'radio' feature for any gamemode?
Seems it's been a while. I've no idea if PlayX still works.
You can stream radio with sound.PlayURL. I'll make a radio addon, that sounds like a good idea.
Title: Re: TTT Advanced End Round Music
Post by: Bytewave on January 10, 2014, 02:56:46 PM
Any way to mod this to work with the ULX YouTube Jukebox?
That or have its own YouTube system feature?
It'd help a lot if there is so I won't have to rip the MP3s off YT. :p
Title: Re: TTT Advanced End Round Music
Post by: Cobalt on January 10, 2014, 03:30:01 PM
Any way to mod this to work with the ULX YouTube Jukebox?
That or have its own YouTube system feature?
It'd help a lot if there is so I won't have to rip the MP3s off YT. :p
I have no idea how the youtube api works.
Title: Re: TTT Advanced End Round Music
Post by: Bytewave on January 10, 2014, 05:29:45 PM
I have no idea how the youtube api works.
Ah. Okay.
I hope you don't mind if I modify the code for my own uses, do you? :P
Title: Re: TTT Advanced End Round Music
Post by: Cobalt on January 10, 2014, 05:31:07 PM
Ah. Okay.
I hope you don't mind if I modify the code for my own uses, do you? :P
Go ahead.
Title: Re: TTT Advanced End Round Music
Post by: Bytewave on January 10, 2014, 05:34:46 PM
Go ahead.
Okay, thanks. I'll take a look and see what I can do.
Title: Re: TTT Advanced End Round Music
Post by: Cobalt on January 11, 2014, 02:53:35 PM
Fixed an issue breaking team chat. PlayerSay is the crappiest hook ever made. It just breaks everything.
Title: Re: TTT Advanced End Round Music
Post by: Neku on January 11, 2014, 08:13:13 PM
Would it be possible to add a feature that calls sounds already existing on the server?

Sort of like how you can do it with the links, but with local sounds.
Title: Re: TTT Advanced End Round Music
Post by: Decicus on January 12, 2014, 06:56:52 AM
Would it be possible to add a feature that calls sounds already existing on the server?

Sort of like how you can do it with the links, but with local sounds.
"ulx playsound" maybe? You will still need to get the client to download the sound files though (using something like resource.AddFile (http://wiki.garrysmod.com/page/resource/AddFile)), but that seems to be the easy way (command-wise).
Title: Re: TTT Advanced End Round Music
Post by: Cobalt on January 12, 2014, 08:47:28 AM
Would it be possible to add a feature that calls sounds already existing on the server?

Sort of like how you can do it with the links, but with local sounds.
That defeats the whole purpose of this script. You host your sounds on a webserver and play them through urls so your clients don't have to download them and you can join in the server faster.
Title: Re: TTT Advanced End Round Music
Post by: JamminR on January 12, 2014, 10:29:13 AM
And I think the question was meant to relate to playing a local sound after the end of the round.
Cobalt, I think it would still be a nice feature; allow the user to choose whether they want URL or local sound.
Shouldn't be too difficult for the code to detect http in the beginning of the path and go URL, or if no http, presume local.
Title: Re: TTT Advanced End Round Music
Post by: Neku on January 12, 2014, 11:20:07 AM
My server already has 30+ sounds, so I would prefer it to be able to play that way.

You don't have to do it, I only want it so I don't have to tell people what song it is.
Title: Re: TTT Advanced End Round Music
Post by: Cobalt on January 12, 2014, 12:02:44 PM
My server already has 30+ sounds, so I would prefer it to be able to play that way.

You don't have to do it, I only want it so I don't have to tell people what song it is.
I don't understand the reasoning behind this. It's really really simple to move your sounds to a webserver and link them in this addon. The whole point is that by not having downloads new players join the server so much faster. Also that you can quickly add new music.
It would require much more work for me to do this than for you to set it up with the way the addon is right now.
Title: Re: TTT Advanced End Round Music
Post by: Cobalt on January 12, 2014, 12:04:52 PM
Update: Added a radio feature and slightly redesigned the queue tab.
Title: Re: TTT Advanced End Round Music
Post by: Storm on January 22, 2014, 11:09:47 AM
The music is so loud players are complaining. I tried adjusting the clipped mp3 on my website but the addon/server seems to adjust it back up. I tried to adjust your code as follows but I must be doing something wrong. Can you let me know how I can fix this? Thanks.

       sound.PlayURL( url, "", function( station )
         if station and IsValid( station ) then
            station:Play()
                                station:SetVolume( 100 )
            LocalPlayer().channel = station
         end
        end )
Title: Re: TTT Advanced End Round Music
Post by: Decicus on January 22, 2014, 12:57:10 PM
The music is so loud players are complaining. I tried adjusting the clipped mp3 on my website but the addon/server seems to adjust it back up. I tried to adjust your code as follows but I must be doing something wrong. Can you let me know how I can fix this? Thanks.

       sound.PlayURL( url, "", function( station )
         if station and IsValid( station ) then
            station:Play()
                                station:SetVolume( 100 )
            LocalPlayer().channel = station
         end
        end )

Does any error at all print? Because if I've read the wiki correctly, that should work.

Also, for future reference, you should probably use the "code" BB tags if you're posting code like that.
Title: Re: TTT Advanced End Round Music
Post by: Storm on January 23, 2014, 05:11:21 AM
No I get no errors whatsoever! I just cant figure it out.
Title: Re: TTT Advanced End Round Music
Post by: Neku on January 23, 2014, 07:49:18 AM
Perhaps it's just on the client's side?  ???
Title: Re: TTT Advanced End Round Music
Post by: Storm on January 23, 2014, 08:05:03 AM
Not sure what you mean but I have this on 4 servers and everyone is complaining it is too loud. I believe it is certainly serverside. It's a shame because this is a wonderful addon but the volume level makes it rather unusable.
Title: Re: TTT Advanced End Round Music
Post by: Decicus on January 23, 2014, 08:08:54 AM
The example showed on the wiki page of sound.PlayURL (http://wiki.garrysmod.com/page/sound/PlayURL) seems to be wrong.
SetVolume (http://wiki.garrysmod.com/page/IGModAudioChannel/SetVolume) only accepts a number between 0 and 1 it seems (check "soundchannel" under the wiki page for sound.PlayURL).
Title: Re: TTT Advanced End Round Music
Post by: Storm on January 23, 2014, 10:46:32 AM
Cobalt actually suggested something about that earlier but I must have done something wrong because it didn't work at the time. So I just tried it again and it DOES work (changed it to 0.3). The bad news is that sometimes the music just stops and I get this error:    BASS_StreamCreateURL error 40.   Any thoughts?
Title: Re: TTT Advanced End Round Music
Post by: Decicus on January 23, 2014, 11:05:26 AM
Cobalt actually suggested something about that earlier but I must have done something wrong because it didn't work at the time. So I just tried it again and it DOES work (changed it to 0.3). The bad news is that sometimes the music just stops and I get this error:    BASS_StreamCreateURL error 40.   Any thoughts?

I found this post (http://facepunch.com/showthread.php?t=1285753&p=41328228&viewfull=1#post41328228), where he says that the error code comes from it timing out. I cannot verify this, but that's pretty much the only one I found that described the error. (There's also this link: http://www.bass.radio42.com/help/html/78effdb0-70b5-1602-a234-b0847b4e6d6c.htm (http://www.bass.radio42.com/help/html/78effdb0-70b5-1602-a234-b0847b4e6d6c.htm))
Title: Re: TTT Advanced End Round Music
Post by: Storm on January 23, 2014, 12:08:27 PM
Well thanks so much for looking into it and I will ask Cobalt about that error. Can you tell me what you were referring to in your earlier post about BB code and how to post?
Title: Re: TTT Advanced End Round Music
Post by: Decicus on January 23, 2014, 12:28:42 PM
Well thanks so much for looking into it and I will ask Cobalt about that error. Can you tell me what you were referring to in your earlier post about BB code and how to post?
I sent you a PM explaining a bit about it.
Title: Re: TTT Advanced End Round Music
Post by: JamminR on January 23, 2014, 07:16:29 PM
[code]
blah
blah
[/code]
 
Would appear as
Code: [Select]
blah
blah
Title: Re: TTT Advanced End Round Music
Post by: n00bl3t on January 25, 2014, 05:00:29 PM
How would I go about moving the HUD from the top left of the screen to the top right of the screen showing current song playing?

Thanks so much!
Title: Re: TTT Advanced End Round Music
Post by: goodman854 on January 30, 2014, 02:17:33 PM
Anyway you could add a system to this to allow clients to permanently opt out of hearing music?

Example:
!menu - Music - Do Not Play Sounds -Check

As apposed to a sound by sound bases, !stop, !stop , etc.
Title: Re: TTT Advanced End Round Music
Post by: Cobalt on January 30, 2014, 05:02:56 PM
Anyway you could add a system to this to allow clients to permanently opt out of hearing music?

Example:
!menu - Music - Do Not Play Sounds -Check

As apposed to a sound by sound bases, !stop, !stop , etc.
I have stopped working on this for now as I have other things to do, but if you want to code this yourself it would be relatively easy.
Title: Re: TTT Advanced End Round Music
Post by: loserman778 on February 04, 2014, 01:52:36 PM
Awesome addon! Works great! One question though, is there a way i can make it so it plays the music as soon as the round ends? Right now it has a few second delay before the music starts. Keep up the good work!
Title: Re: TTT Advanced End Round Music
Post by: pants on February 04, 2014, 02:31:55 PM
Awesome addon! Works great! One question though, is there a way i can make it so it plays the music as soon as the round ends? Right now it has a few second delay before the music starts. Keep up the good work!

that's likely your computer buffering the song
Title: Re: TTT Advanced End Round Music
Post by: loserman778 on February 05, 2014, 07:09:05 AM
The music is so loud players are complaining. I tried adjusting the clipped mp3 on my website but the addon/server seems to adjust it back up. I tried to adjust your code as follows but I must be doing something wrong. Can you let me know how I can fix this? Thanks.

       sound.PlayURL( url, "", function( station )
         if station and IsValid( station ) then
            station:Play()
                                station:SetVolume( 100 )
            LocalPlayer().channel = station
         end
        end )

Did you ever figure out how to do this? I would like to lower the volume on my server too.
Title: Re: TTT Advanced End Round Music
Post by: Decicus on February 05, 2014, 07:33:34 AM
Did you ever figure out how to do this? I would like to lower the volume on my server too.

Read this:
The example showed on the wiki page of sound.PlayURL (http://wiki.garrysmod.com/page/sound/PlayURL) seems to be wrong.
SetVolume (http://wiki.garrysmod.com/page/IGModAudioChannel/SetVolume) only accepts a number between 0 and 1 it seems (check "soundchannel" under the wiki page for sound.PlayURL).
Title: Re: TTT Advanced End Round Music
Post by: goodman854 on February 06, 2014, 09:46:16 AM
OK. I need help. I don't know Lua and no one really seems to well doctumte any of this online so whats wrong with:

Code: [Select]
elseif win == WIN_TIMELIMIT then

if LocalPlayer:IsUserGroup("NoMu") then

-- Do nothing

else

local toPlay = table.Random( timelimitsounds )

umsg.Start( "playurl", player.GetAll() )
umsg.String( toPlay[ 1 ] )
umsg.End()

umsg.Start( "SendSongName", player.GetAll() )
umsg.String( toPlay[ 2 ] )
umsg.End()
end
end
Title: Re: TTT Advanced End Round Music
Post by: Cobalt on February 06, 2014, 01:00:33 PM
Not entirely sure what you're trying to accomplish here. Gonna need more info.
Title: Re: TTT Advanced End Round Music
Post by: goodman854 on February 06, 2014, 02:11:23 PM
Not entirely sure what you're trying to accomplish here. Gonna need more info.
Well given I don't know enough about this language I was attempting to have the music not play if the user belonged to the group "NoMu".
I assumed I could add something like the above

EX:
if User.group = NoMu Then
 -Don't Execute Music Script
Else
 -Music Code

:/

Although if you can link me to a good site that explains Lua or how it works in GMod that might be helpful to. But I haven't found any.
Title: Re: TTT Advanced End Round Music
Post by: Cobalt on February 06, 2014, 05:16:07 PM
if ply:IsUserGroup( "NoMu" ) then return end

-- rest of the code
Title: Re: TTT Advanced End Round Music
Post by: JamminR on February 06, 2014, 07:33:13 PM
And, hijacking a release thread to ask a question about code you're trying to modify isn't exactly best location.
I recommend Developer's corner, with a link to 'using <X> release, trying to do blah"

Too many releases here have 20 different parts of code in them, and few actually were done by the original authors.

Messy.
Title: Re: TTT Advanced End Round Music
Post by: n00bl3t on February 20, 2014, 03:15:10 PM
How would I go about moving the HUD from the top left of the screen to the top right of the screen showing current song playing?

Thanks so much!

Bumping this question. Thanks cobalt.
Title: Re: TTT Advanced End Round Music
Post by: Setix on February 21, 2014, 03:18:20 AM
Read this:

I've been trying to get this to work as well, doesn't seem to want to.

Here's what I have in EndRoundMusic.lua, line 347 to 355.

Code: [Select]
        sound.PlayURL( url, "", function( station )
if station and IsValid( station ) then
station:Play()
station.SetVolume(0.1)
LocalPlayer().channel = station
end
        end )

end )

Even setting SetVolume to 0 doesn't seem to work. It just plays it at an extraordinarily loud volume - even if I lower it manually on Audacity.

Anyone have an idea as to what I'm doing wrong?
Title: Re: TTT Advanced End Round Music
Post by: Storm on March 05, 2014, 07:40:23 AM
Oddly, I am using the exact same thing and it works for me. Did you find the answer?
Title: Re: TTT Advanced End Round Music
Post by: Setix on March 07, 2014, 01:52:51 PM
Oddly, I am using the exact same thing and it works for me. Did you find the answer?

I'm afraid not, I had to open up all the audio files in Audacity and turn them down manually by a considerable amount!

It's weird that what I did doesn't work for some people though.
Title: Re: TTT Advanced End Round Music
Post by: Storm on March 08, 2014, 12:24:52 PM
Also odd - the level in Audacity doesnt seem to have any effect on the clip I put on the server. What exactly did you change in Audacity to get it to work?? Many clips I have are still too loud so how did you adjust it in Audacity?
Title: Re: TTT Advanced End Round Music
Post by: raymond4000 on April 09, 2014, 03:34:10 PM
Awesome script Cobalt!

Just curious would there be a way to write the queued files to a file so they will be remembered on a map change? If not no biggie

Thanks Again!
Title: Re: TTT Advanced End Round Music
Post by: viri on May 14, 2014, 11:03:30 AM
Hey, thanks for the script. We tested it out on our server for a bit, but thought the sound level was too high. So we decided to customise the plugin so that you can change the volume of the sound being played with a command. Made mainly by Dekar, and a little bit by me Mrgreen.

As there seems to been more people with the problem, here is the modified version which adds a new command playvolume which allows you to change the volume of the sound being played. Also playurl now accepts a optional second argument, the volume of the sound, to be played.
If you want me to remove the download link, please just pm me.

For example:
"!playurl <url>" plays a sound with the volume set to 0.5.
"!playurl <url> 25" plays a sound with the volume set to 0.25.
"!playurl <url> 100" plays a sound with the volume set to 1. (max)
"!playvolume 100" changes the volume to 1 for the sound being played.
"!playvolume 10" changes the volume to 0.1 for the sound being played.

(edit: fixed bug)
Title: Re: TTT Advanced End Round Music
Post by: toshii on July 24, 2014, 04:51:38 PM
How do the url links work? Can i copy over a link from youtube? Do i download a song and putt he path from my computer to the song? I'm really confused. Someone please explain what kind of link i must use. Also Only one song from the defaults work. The one linked fromt umblr. ALSO the play url thing doesnt workeither. Sorry for all the problems. Its an awesome idea but i cant seem tog et anything to work.
Title: Re: TTT Advanced End Round Music
Post by: JamminR on July 24, 2014, 09:58:58 PM
How do the url links work? Can i copy over a link from youtube? Do i download a song and putt he path from my computer to the song? I'm really confused. Someone please explain what kind of link i must use. Also Only one song from the defaults work. The one linked fromt umblr. ALSO the play url thing doesnt workeither. Sorry for all the problems. Its an awesome idea but i cant seem tog et anything to work.
This script will stream music from any .mp3 URL source, whether it be .mp3s hosted on your webserver, or a link you found on mp3skull. 

Has to be a http://blah/blah.mp3 (http://blah/blah.mp3) file link URL.
This is not a youtube player.
If you want to play mp3s on your computer and aren't running a http server, you have to store them in your gmod server and client /sound folder, and can use ulx playsound
Title: Re: TTT Advanced End Round Music
Post by: ragegriffith on August 30, 2014, 02:47:45 PM
Is there a way to make it so theres an option for players to permanently turn off music?

I also get this error

[ERROR] addons/ulx/lua/ulx/modules/sh/endroundmusic.lua:670: attempt to index local 'toAdd' (a nil value)
1. Function - addons/ulx/lua/ulx/modules/sh/endroundmusic.lua:670
2. unknown - lua/includes/modules/usermessage.lua:87
Title: Re: TTT Advanced End Round Music
Post by: Bonana on September 05, 2014, 09:36:35 PM
This would be great, and I am going to use it. Could you possibly add an option to disable this clientside for the odd person who doesn't like it? :P
Title: Re: TTT Advanced End Round Music
Post by: Cobalt on September 06, 2014, 08:00:10 AM
The updated version is on my github: https://github.com/YVL-
Title: Re: TTT Advanced End Round Music
Post by: PAL-18 on September 16, 2014, 02:13:24 PM
This addon is awesome!

Can you fork off a generic version that can be used in any gamemode (by hooking round_start)?  Also, can you add the option to make music play X seconds after round start?
Title: Re: TTT Advanced End Round Music
Post by: Storm on September 16, 2014, 03:05:39 PM
Cobalt is this still on your github? I don't see it there, the updated version I mean.
Title: Re: TTT Advanced End Round Music
Post by: Neku on September 16, 2014, 03:27:16 PM
Cobalt is this still on your github? I don't see it there, the updated version I mean.

https://github.com/YVL-/TTT-End-Round-Music
Title: Re: TTT Advanced End Round Music
Post by: viri on October 14, 2014, 01:24:16 PM
The updated version is on my github: https://github.com/YVL-/TTT-End-Round-Music
Made a pull request which will add the functionality to set an optional volume when playing sounds. It is basically the code I linked in a previous post of mine.
Title: Re: TTT Advanced End Round Music
Post by: Odie1008 on January 08, 2015, 03:07:58 PM
Sorry but this addon crashes players sometimes for some reason, some sort of buffer error :/
Title: Re: TTT Advanced End Round Music
Post by: JamminR on January 08, 2015, 04:22:32 PM
Sorry but this addon crashes players sometimes for some reason, some sort of buffer error :/

Sorry, but "some sort" is really no help to a developer who may not be able to replicate the issue.
Exact error would likely be more helpful to know if it's a Gmod error (due to a too big of a file/song or something), or if it's a code error he can adjust.
And, is it with certain songs? That would lead to more idea of if it's on Gmod vs code vs URL side.
IMO, GMod html functions (through Source HTML functions) have always been a bit flaky.
Title: Re: TTT Advanced End Round Music
Post by: Krapelex Crumb on March 10, 2015, 01:07:08 PM
After installing it I am unable to open the ulx menu. Ulx is still works though. (I typed ulx help in the console)
As told, I added the .lua file to addons/lua/ulx/modules/sh, after opening the server the ulx menu wasnt able to open at all.

Cheers.
Title: Re: TTT Advanced End Round Music
Post by: Stickly Man! on March 10, 2015, 01:21:47 PM
Your ULX Menu isn't opening because of a recent Garry's Mod update. You'll need to update your ULX and ULib. See here for details: http://forums.ulyssesmod.net/index.php/topic,8230.0.html (http://forums.ulyssesmod.net/index.php/topic,8230.0.html)
Title: Re: TTT Advanced End Round Music
Post by: [U] Arcane Hero on June 22, 2015, 12:16:59 PM
Is there a way to stop the end round music from playing outside the client?

As in which you switch out from the game to another window, the music still plays when it hits end round.
Title: Re: TTT Advanced End Round Music
Post by: Tomzen on June 22, 2015, 06:45:32 PM
Is there a way to stop the end round music from playing outside the client?

As in which you switch out from the game to another window, the music still plays when it hits end round.

I think if you go to game settings/audio, theres an option for that, if that dosen't work then no theres not
Title: Re: TTT Advanced End Round Music
Post by: [U] Arcane Hero on June 22, 2015, 07:27:18 PM
This is a problem with anyone who joins the server. Whenever you leave the client, you can't hear what other people are saying or any game sounds, as it should be. However, for some reason, the end round music still plays loud and clear.
Title: Re: TTT Advanced End Round Music
Post by: [U] Arcane Hero on July 03, 2015, 09:40:26 PM
This is a problem with anyone who joins the server. Whenever you leave the client, you can't hear what other people are saying or any game sounds, as it should be. However, for some reason, the end round music still plays loud and clear.


Does anyone know a possible solution to my problem?
Title: Re: TTT Advanced End Round Music
Post by: rNd on October 11, 2015, 11:25:13 AM
I realize that this is an old thread but I still use this script and frequently have this error come up:

Code: [Select]
[ERROR] addons/customcommands/lua/ulx/modules/sh/endroundmusic.lua:168: attempt to index local 'toPlay' (a nil value)
  1. fn - addons/customcommands/lua/ulx/modules/sh/endroundmusic.lua:168
   2. Call - addons/ulib/lua/ulib/shared/hook.lua:179
    3. EndRound - gamemodes/terrortown/gamemode/init.lua:799
     4. unknown - gamemodes/terrortown/gamemode/init.lua:321

Timer Failed! [winchecker][@gamemodes/terrortown/gamemode/init.lua (line 367)]

I lack the knowledge and experience to even know how to try to fix this and I'm wondering if anybody else has an idea of what might be needed to be done here to fix this. I really only use this script for the feature of queuing .mp3 links at the end of the TTT rounds but I haven't found any alternatives. Am I really the only person still using this?
Title: Re: TTT Advanced End Round Music
Post by: seabeds on October 18, 2015, 09:08:35 AM
So does this addon support sound clips you have on  your server? There is only 1 alternative for this addon and the alternative has an author who provides no support and the addon can be faulty sometimes.
Title: Re: TTT Advanced End Round Music
Post by: JamminR on October 18, 2015, 11:53:00 AM
does this addon support sound clips you have on your server?
Only if you have a http/https web URL for 'your server'

This script will stream music from any .mp3 URL source, whether it be .mp3s hosted on your webserver, or a link you found on mp3skull. 
Title: Re: TTT Advanced End Round Music
Post by: Mini Tiger ? on December 09, 2015, 11:56:37 PM
Do youtube urls work?
Title: Re: TTT Advanced End Round Music
Post by: JamminR on December 10, 2015, 07:17:19 PM
Do youtube urls work?

Has to be a http://blah/blah.mp3 (http://blah/blah.mp3) file link URL.
This is not a youtube player.
Title: Re: TTT Advanced End Round Music
Post by: Beast on December 13, 2015, 08:10:02 PM


If I have any time soon, I'll clean up and release my End Round Music system.  I'll add partial YouTube support for sure, and possibly full if I'm not lazy.
Title: Re: TTT Advanced End Round Music
Post by: Windwhistle on January 25, 2016, 04:24:00 PM
Did anyone get the F1 disable music thing to work? It's not working for me.
Title: Re: TTT Advanced End Round Music
Post by: acc_name1 on March 15, 2016, 12:55:29 PM
The F1 > disabling EOR music option isn't working for me -- does anyone know how to fix this?

(by the way this is for the updated EOR music version, found on his GitHub.)
Title: Re: TTT Advanced End Round Music
Post by: C.Finley on July 05, 2016, 04:06:22 PM
Can you fix f1 menu bug please
Title: Re: TTT Advanced End Round Music
Post by: K4M1s on July 06, 2016, 05:30:49 AM
Maybe version for Prop Hunt? I will be very happy :D
Title: Re: TTT Advanced End Round Music
Post by: Windwhistle on January 22, 2017, 12:46:37 PM
Here's a fix for F1 menu:

http://pastebin.com/BPwSTRVy

Copy and paste that on the similar code. DO NOT OVERWRITE THE MUSIC TEMPLATE WITH THIS. THE MUSIC TEMPLATE IS NOT INCLUDED.
Title: Re: TTT Advanced End Round Music
Post by: Veazon on January 30, 2017, 05:30:05 AM
Someone asked me to make an end round music script the other day, I thought I'd share it with you all.
This script will stream music from any .mp3 URL source, whether it be .mp3s hosted on your webserver, or a link you found on mp3skull. 
Features include:
-Different tables for different win scenarios (inno, traitor, timeout)
-5 included ulx commands for various things such as playing urls sv/cl side, stopping urls and queuing songs
-Nice looking HUD overlay displaying the name of the sound playing at the end of the round
-Queue system: donators can queue up any url they want that will play at the end round. (3 minute cool down between requests, configurable) and input the name and artist for end round HUD viewing. Admins can remove any queued song.
-Derma GUI with tabs for viewing all sounds loaded into the script, and for viewing all queued sounds. In the music tab it will show the type of song (inno/traitor/timeout), the artist and song name, and the URL. In the queue tab you can see the name of the user who added the song, the song name, and the url. Right click on any entry for various options such as playing that url for the server, for yourself, stopping sounds for the server, stopping sounds for yourself / Playing queued song for server or yourself, and removing any queued song.
Hope some of you find this useful.

Instructions:
Extract the file into your addons/ulx/lua/ulx/modules/sh folder

Screenshots:
HUD Overlay: http://puu.sh/6gghR.jpg (http://puu.sh/6gghR.jpg)
Menu: http://puu.sh/6ggna.jpg (http://puu.sh/6ggna.jpg)
Music tab: http://puu.sh/6ggnR.jpg (http://puu.sh/6ggnR.jpg)
Queuing a song:
     Step 1: http://puu.sh/6ggt1.bmp (http://puu.sh/6ggt1.bmp)
     Step 2: http://puu.sh/6gguz.bmp (http://puu.sh/6gguz.bmp)
     Done: http://puu.sh/6ggxy.bmp (http://puu.sh/6ggxy.bmp)
Queue: http://puu.sh/6ggAe.bmp (http://puu.sh/6ggAe.bmp)
Cooldown: http://puu.sh/6ggMC.jpg (http://puu.sh/6ggMC.jpg)
+

After the round i did not hear and my friends did not hear anything too ???
Title: Re: TTT Advanced End Round Music
Post by: JamminR on January 30, 2017, 03:19:47 PM
After the round i did not hear and my friends did not hear anything too ???
Can you provide a few mp3 URL(s) you tried in the queue?