AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [ANY] PVL Pony Radio --updated 8/8/13 (https://forums.alliedmods.net/showthread.php?t=221927)

WeAreBorg 07-28-2013 04:33

[ANY] PVL Pony Radio --updated 8/8/13
 
2 Attachment(s)
http://i.imgur.com/51Dsa8c.png
Presents the...


PVL Pony Radio Player

Ponyville Live!, the MLP fandom’s newest and fastest growing media network is pleased to present all of our Pony and Brony music themed radio stations in a fantastic and easy to use sourcemod plugin! This radio player is similar in design to other sourcemod radios but requires no php site or backend to work and features live song info downloaded directly into the game.

Features:
  • Live In-game Song Info
  • No visible MOTD screens
  • Persistent playback across map changes
  • Both menu and command based Radio selection
  • Both menu and command based Volume Control
  • Active listener count of stations
  • Chat updates of song changes
  • Chat ads that there is a radio with variable frequency
  • 24/7 Pony music on 8 Radio Stations (more to come, no update needed)
http://i.imgur.com/EuaSILy.png
Main !radio Menu
http://i.imgur.com/u5TN7rE.png
!volume Menu
http://i.imgur.com/OzqhRH1.png
Live in game updates of song info

Commands:
  • !sm_radio Open station select menu
  • !sm_radio [partial station name] Tune directly to a station
  • !sm_radiooff If you need to pause the pony
  • !sm_vol or !sm_volume Open volume select menu
  • !sm_vol [0-100] Set volume manually
  • !sm_np or !sm_nowplaying View current song info in chat, or all currently playing song if no station is tuned to
  • !sm_radiohelp Informs the player they need to enable html motds and have flash for other browsers installed
Admin Commands:
  • !sm_radioall Unmutes all players, and tunes them to whatever station the admin is listening to

Auto generated config:
PVLPonyRadio.cfg

cvars:

Code:

CreateConVar("PonyRadio_updatetimer", "15.0", "How often to check for new song info in seconds",FCVAR_PLUGIN|FCVAR_NOTIFY, true, 15.0, true, 60.0);
CreateConVar("PonyRadio_volume", "30", "Default Volume Percent",FCVAR_PLUGIN|FCVAR_NOTIFY, true, 0.0, true, 100.0);
CreateConVar("PonyRadio_Advertchance", "50", "Chance of advertisement of radio playing ",FCVAR_PLUGIN|FCVAR_NOTIFY, true, 0.0, true, 100.0);


TODO list
  • Make a sm_resume command to quickly reload station stream in case another plugin uses the motd page
  • Make a sm_mute command
  • Auto Adjust character output to menu
  • Make an Admin command to cease playpack for everypony
  • Minor code tweaks
  • In game announcements of scheduled programming
  • Make cURL version
  • Make Socket version
  • Make customizable version with php and SQL to edit stations and work on non source 2009 games
Known Issues:
  • Radio selection menu is maxed at 1024 chars

Requirements:
Requires SteamTools extension for downloading of song info, which only works on Source 2009 games

Installation
Stick the ponyradio.smx in your sourcemod/plugins folder

This source will not compile on site as it requires the SteamTools.inc and colors.inc. Please download the source and compile manually or download the .smx

captaindeterprimary 07-28-2013 13:09

Re: [ANY] PVL Pony Radio
 
Oh look here it is.

DarkEnergy 07-29-2013 19:23

Re: [ANY] PVL Pony Radio
 
"We are the Bronies. Lower your shields and surrender your ships. We will add your biological and technological distinctiveness to our own. Your culture will adapt to service us. Resistance is futile."

http://ponyvillelive.com/index/tunei...rue/volume/100

Oh I C

Nice job

Do you have plans to convert to <sockets> instead of <steamtools>?

Code:

//        👂 à©*  à** á*€ ᧙ ☊ ♫  Yeah....just try and guess what i was doing here
Format(buffer, sizeof(buffer), "%s  ☊%d", station, GetArrayCell(A_Listeners,i));


WeAreBorg 07-29-2013 20:57

Re: [ANY] PVL Pony Radio
 
Yes I'm using Ponyville Live's native web player. Its fun stuff

My first idea was to use cURL but I was personally getting a VC++ error on my windows machines that I couldn't fix, so SteamTools seemed like the best option esp. with Asherkin so active and ready to help.

Sockets was my third choice. Any reason to use it instead of SteamTools?

captaindeterprimary 07-30-2013 09:23

Re: [ANY] PVL Pony Radio
 
Quote:

Originally Posted by WeAreBorg (Post 2001785)
Yes I'm using Ponyville Live's native web player. Its fun stuff

My first idea was to use cURL but I was personally getting a VC++ error on my windows machines that I couldn't fix, so SteamTools seemed like the best option esp. with Asherkin so active and ready to help.

Sockets was my third choice. Any reason to use it instead of SteamTools?

I believe CS:GO can not use steamtools. It was that or l4d(2), but considering that you have an ass load of l4d(2) servers, I would assume it was CS:GO.

==Edit==
Yea l4d(2) do not support steamtools unless they updated the game engine.
Quote:

Originally Posted by asherkin
Quote:

Originally Posted by asherkin
At the moment only Source 2009 games are supported.

Neither L4D nor L4D2 runs on the Source 2009 engine


WeAreBorg 07-31-2013 15:45

Re: [ANY] PVL Pony Radio
 
Quote:

Originally Posted by vman315 (Post 2002099)
Yea l4d(2) do not support steamtools unless they updated the game engine.

Yes the joys of Source 2009 games are the headaches of L4D2. I'm not sure if Socket can run on the older source either.

For my L4D2 servers the plugin uses SQL directly to a PVL database. I am not keen on the idea of having a bunch of random servers connect to the database.

I can always make a vanilla menu version or a visible MOTD version that shows the web player. I actually already have those ready as those were the first beginnings of this plugin.

I remember there were some other choices besides cURL, Socket, and Steamtools back in the day, but its been so long I have forgotten what they are and i bet they have been abandoned.

captaindeterprimary 07-31-2013 17:54

Re: [ANY] PVL Pony Radio
 
Quote:

Originally Posted by WeAreBorg (Post 2003021)
Yes the joys of Source 2009 games are the headaches of L4D2. I'm not sure if Socket can run on the older source either.

For my L4D2 servers the plugin uses SQL directly to a PVL database. I am not keen on the idea of having a bunch of random servers connect to the database.

I can always make a vanilla menu version or a visible MOTD version that shows the web player. I actually already have those ready as those were the first beginnings of this plugin.

I remember there were some other choices besides cURL, Socket, and Steamtools back in the day, but its been so long I have forgotten what they are and i bet they have been abandoned.

It does not support sockets. I how ever have not seen anything regarding cURL not working with the old engine, at least not any that I remember seeing. Off the topic of l4d2, I was using a plugin that pimpinjuice wrote for me that pulled info from a php script to display currently playing songs. However this does work better because other then my one derpabout stream I was already pulling titles from the pvl stations.

DarkEnergy 07-31-2013 20:39

Re: [ANY] PVL Pony Radio
 
sockets should be mod independent and thats why i used it. I sort of converted this mod to my own sockets library.

salsav91 08-03-2013 07:03

Re: [ANY] PVL Pony Radio
 
Code:

L 08/03/2013 - 00:22:12: [SM] Native "GetArrayCell" reported: Invalid index 0 (count: 0)
L 08/03/2013 - 00:22:12: [SM] Displaying call stack trace for plugin "ponyradio.smx":
L 08/03/2013 - 00:22:12: [SM]  [0]  Line 469, ponyradio.sp::GetStationID()
L 08/03/2013 - 00:22:12: [SM]  [1]  Line 341, ponyradio.sp::PlayerOTD()
L 08/03/2013 - 00:22:12: [SM]  [2]  Line 113, ponyradio.sp::RestartRadioTimer()

Code:

L 08/03/2013 - 02:42:44: [SM] Plugin encountered error 25: Call was aborted
L 08/03/2013 - 02:42:44: [SM] Native "ThrowError" reported: Client 13 is not in game
L 08/03/2013 - 02:42:44: [SM] Displaying call stack trace for plugin "ponyradio.smx":
L 08/03/2013 - 02:42:44: [SM]  [0]  Line 59, C:\megaservers\compiler 1.5\include\colors.inc::CPrintToChat()
L 08/03/2013 - 02:42:44: [SM]  [1]  Line 224, ponyradio.sp::AnnounceSong()
L 08/03/2013 - 02:42:44: [SM]  [2]  Line 209, ponyradio.sp::DelayAnnounceSong()

Code:

L 08/03/2013 - 02:44:27: [SM] Native "ShowVGUIPanel" reported: Client 2 is not in game
L 08/03/2013 - 02:44:27: [SM] Displaying call stack trace for plugin "ponyradio.smx":
L 08/03/2013 - 02:44:27: [SM]  [0]  Line 349, ponyradio.sp::PlayerOTD()
L 08/03/2013 - 02:44:27: [SM]  [1]  Line 113, ponyradio.sp::RestartRadioTimer()

Would like this plugin to work but I am getting this spammed in my logs. I am wondering if any of this explains why my users are hearing music BEFORE even activating !radio. Till this is fixed I will have to disable the plugin sadly.

404UserNotFound 08-06-2013 13:59

Re: [ANY] PVL Pony Radio
 
If I was ever to use this plugin, I would re-code it and remove any references to ponies or ponyville, and set it up with actual music like Led Zeppelin, Rush, Black Sabbath, Uriah Heep instead of pony music.

But that's just me.


All times are GMT -4. The time now is 20:54.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.