Author Topic: TTT Advanced End Round Music  (Read 72176 times)

0 Members and 1 Guest are viewing this topic.

Offline Cobalt

  • Full Member
  • ***
  • Posts: 216
  • Karma: 44
  • http://steamcommunity.com/id/__yvl/
Re: TTT Advanced End Round Music
« Reply #15 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.

Offline Cobalt

  • Full Member
  • ***
  • Posts: 216
  • Karma: 44
  • http://steamcommunity.com/id/__yvl/
Re: TTT Advanced End Round Music
« Reply #16 on: January 12, 2014, 12:04:52 PM »
Update: Added a radio feature and slightly redesigned the queue tab.

Offline Storm

  • Full Member
  • ***
  • Posts: 220
  • Karma: 4
Re: TTT Advanced End Round Music
« Reply #17 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 )

Offline Decicus

  • Hero Member
  • *****
  • Posts: 552
  • Karma: 81
    • Alex Thomassen
Re: TTT Advanced End Round Music
« Reply #18 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.
Contact information:
E-mail: alex@thomassen.xyz.
You can also send a PM.

Offline Storm

  • Full Member
  • ***
  • Posts: 220
  • Karma: 4
Re: TTT Advanced End Round Music
« Reply #19 on: January 23, 2014, 05:11:21 AM »
No I get no errors whatsoever! I just cant figure it out.

Offline Neku

  • Hero Member
  • *****
  • Posts: 549
  • Karma: 27
Re: TTT Advanced End Round Music
« Reply #20 on: January 23, 2014, 07:49:18 AM »
Perhaps it's just on the client's side?  ???
Out of the Garry's Mod business.

Offline Storm

  • Full Member
  • ***
  • Posts: 220
  • Karma: 4
Re: TTT Advanced End Round Music
« Reply #21 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.
« Last Edit: January 23, 2014, 08:07:14 AM by Storm »

Offline Decicus

  • Hero Member
  • *****
  • Posts: 552
  • Karma: 81
    • Alex Thomassen
Re: TTT Advanced End Round Music
« Reply #22 on: January 23, 2014, 08:08:54 AM »
The example showed on the wiki page of sound.PlayURL seems to be wrong.
SetVolume only accepts a number between 0 and 1 it seems (check "soundchannel" under the wiki page for sound.PlayURL).
Contact information:
E-mail: alex@thomassen.xyz.
You can also send a PM.

Offline Storm

  • Full Member
  • ***
  • Posts: 220
  • Karma: 4
Re: TTT Advanced End Round Music
« Reply #23 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?

Offline Decicus

  • Hero Member
  • *****
  • Posts: 552
  • Karma: 81
    • Alex Thomassen
Re: TTT Advanced End Round Music
« Reply #24 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, 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)
Contact information:
E-mail: alex@thomassen.xyz.
You can also send a PM.

Offline Storm

  • Full Member
  • ***
  • Posts: 220
  • Karma: 4
Re: TTT Advanced End Round Music
« Reply #25 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?

Offline Decicus

  • Hero Member
  • *****
  • Posts: 552
  • Karma: 81
    • Alex Thomassen
Re: TTT Advanced End Round Music
« Reply #26 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.
Contact information:
E-mail: alex@thomassen.xyz.
You can also send a PM.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: TTT Advanced End Round Music
« Reply #27 on: January 23, 2014, 07:16:29 PM »
[code]
blah
blah
[/code]
 
Would appear as
Code: [Select]
blah
blah
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline n00bl3t

  • Newbie
  • *
  • Posts: 11
  • Karma: 0
Re: TTT Advanced End Round Music
« Reply #28 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!

Offline goodman854

  • Newbie
  • *
  • Posts: 14
  • Karma: 2
Re: TTT Advanced End Round Music
« Reply #29 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.