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

0 Members and 2 Guests are viewing this topic.

Offline raymond4000

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

Offline viri

  • Newbie
  • *
  • Posts: 2
  • Karma: 2
Re: TTT Advanced End Round Music
« Reply #46 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)
« Last Edit: May 15, 2014, 03:50:41 PM by viri »

Offline toshii

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

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 #48 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 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
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline ragegriffith

  • Newbie
  • *
  • Posts: 5
  • Karma: 0
Re: TTT Advanced End Round Music
« Reply #49 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
« Last Edit: August 30, 2014, 10:14:26 PM by ragegriffith »

Offline Bonana

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

Offline Cobalt

  • Full Member
  • ***
  • Posts: 216
  • Karma: 44
  • http://steamcommunity.com/id/__yvl/
Re: TTT Advanced End Round Music
« Reply #51 on: September 06, 2014, 08:00:10 AM »
The updated version is on my github: https://github.com/YVL-

Offline PAL-18

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

Offline Storm

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

Offline Neku

  • Hero Member
  • *****
  • Posts: 549
  • Karma: 27
Re: TTT Advanced End Round Music
« Reply #54 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
Out of the Garry's Mod business.

Offline viri

  • Newbie
  • *
  • Posts: 2
  • Karma: 2
Re: TTT Advanced End Round Music
« Reply #55 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.
« Last Edit: October 14, 2014, 01:28:29 PM by viri »

Offline Odie1008

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
Re: TTT Advanced End Round Music
« Reply #56 on: January 08, 2015, 03:07:58 PM »
Sorry but this addon crashes players sometimes for some reason, some sort of buffer error :/

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 #57 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.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Krapelex Crumb

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

Offline Stickly Man!

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 1270
  • Karma: 164
  • What even IS software anymore?
    • XGUI
Re: TTT Advanced End Round Music
« Reply #59 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
Join our Team Ulysses community discord! https://discord.gg/gR4Uye6