Author Topic: RadioMod ulx addon  (Read 22822 times)

0 Members and 2 Guests are viewing this topic.

Offline high6

  • Newbie
  • *
  • Posts: 15
  • Karma: -2
RadioMod ulx addon
« on: February 06, 2008, 09:56:24 AM »
Requires:
1.FM addon

Commands
ulx music <provider> <station> <quality> - Play station
ulx musicurl <url> - Play url, NOTE! You must remove http:// at the front, otherwise ulx with split it and mess the args up.
ulx musicstop - Stop music

also about url
(Remove all hex codes such as %20 and replace with the character, example being www.somesite.com/this%20song.mp3 to www.somesite.com/this song.mp3)

Q: I can't use the commands and I am admin
A: I have access sent to none by default, so either add it to the group manually in the text file or use ulx userallow "name" "ulx music"

nomusic doesn't work right now, I will fix later.

« Last Edit: February 08, 2008, 04:17:05 AM by high6 »

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: RadioMod ulx addon
« Reply #1 on: February 06, 2008, 12:11:40 PM »
Once again, another quality release by high6!
Experiencing God's grace one day at a time.

quotable

  • Guest
Re: RadioMod ulx addon
« Reply #2 on: February 08, 2008, 08:37:51 AM »
can it play web radios?

Offline high6

  • Newbie
  • *
  • Posts: 15
  • Karma: -2
Re: RadioMod ulx addon
« Reply #3 on: February 08, 2008, 01:12:21 PM »
can it play web radios?

That is what the stations are so yes.

Offline Ninjadude101

  • Newbie
  • *
  • Posts: 38
  • Karma: 4
Re: RadioMod ulx addon
« Reply #4 on: February 09, 2008, 08:00:54 AM »
Clientside or Serverside?

If clientside please make a serverside one where the clients can play music, but the admin has an option to play music to every player

or something..

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: RadioMod ulx addon
« Reply #5 on: February 09, 2008, 10:04:18 AM »
Ninjadude, "ulx sound" already does this. Every player would have to have the same sound though, so if it wasn't a game sound, they'd have to download it.
Which is why 99% of music mods are clientside. Streaming music would take much more bandwidth and server resources than most game servers have.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Ninjadude101

  • Newbie
  • *
  • Posts: 38
  • Karma: 4
Re: RadioMod ulx addon
« Reply #6 on: February 09, 2008, 10:31:44 AM »
when i had a css server, mani_admin or whatever it was called had a radio script where each player types !rock, !club or whatever to get their music up, they close the window which pops up and then it continues playing. This was great.

If you could do something like that, but have an extra command which is admin only,  (!rockall, !cluball etc) which basically does the command on all client's consoles, thaat would be good.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: RadioMod ulx addon
« Reply #7 on: February 09, 2008, 04:26:46 PM »
ulx cexec <all> "ulx (music or musicurl) [url or station]"
Basically, ULX already has this too.

You'd have to make sure the clients downloaded this client side script.
« Last Edit: February 09, 2008, 04:28:38 PM by JamminR »
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline high6

  • Newbie
  • *
  • Posts: 15
  • Karma: -2
Re: RadioMod ulx addon
« Reply #8 on: February 10, 2008, 09:08:07 AM »
ulx cexec <all> "ulx (music or musicurl) [url or station]"
Basically, ULX already has this too.

You'd have to make sure the clients downloaded this client side script.
I know, but I can on adding a vgui later.


Also you can give them access to this without giving them cexec access :P.
« Last Edit: February 10, 2008, 09:23:52 AM by high6 »

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: RadioMod ulx addon
« Reply #9 on: February 10, 2008, 09:51:31 AM »
High6, I was answering Ninja's question. He wanted admin only. :)
I personally don't like admins forcing my music choice. I listen to my own, and normally have game sound turned down.


but have an extra command which is admin only,  (!rockall, !cluball etc) which basically does the command on all client's consoles, thaat would be good.
« Last Edit: February 10, 2008, 10:39:24 AM by JamminR »
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Tim

  • Guest
Re: RadioMod ulx addon
« Reply #10 on: March 11, 2008, 04:47:12 PM »
Someone able to get a hold of the original 1.FM mod? the link in first post no longer had the download.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: RadioMod ulx addon
« Reply #11 on: March 11, 2008, 07:03:43 PM »
Tim, seems as though High6 has repaired it.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Guy

  • Guest
Re: RadioMod ulx addon
« Reply #12 on: June 26, 2008, 12:51:15 AM »
Which folder does it go into, and please make list of all the commands, please.

Offline zoombahh

  • Newbie
  • *
  • Posts: 1
  • Karma: 1
Re: RadioMod ulx addon
« Reply #13 on: July 14, 2008, 11:09:09 AM »
Which folder does it go into, and please make list of all the commands, please.


Quote from: high6
Commands
ulx music <provider> <station> <quality> - Play station
ulx musicurl <url> - Play url, NOTE! You must remove http:// at the front, otherwise ulx with split it and mess the args up.
ulx musicstop - Stop music

and folder i guess addons, since it seems (correct em if im wrong) to just be an aditional lua file wihc integrates into ulx.

notyouraccount

  • Guest
Re: RadioMod ulx addon
« Reply #14 on: August 31, 2008, 01:45:56 AM »
I have uploaded this to my server and have added my own radiostation to it. But when I type every combination of !music nysradio 1 high     nothing plays. The only way I can play it is by typing !musicurl .... Can someone please help?