Raised This Month: $32 Target: $400
 8% 

[ANY] PVL Pony Radio --updated 8/8/13


Post New Thread Reply   
 
Thread Tools Display Modes
Author
WeAreBorg
Junior Member
Join Date: Jul 2013
Location: public void()
Plugin ID:
3791
Plugin Version:
2.2
Plugin Category:
Fun Stuff
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Ponyville Live! Pony Radio Player
    Old 07-28-2013 , 04:33   [ANY] PVL Pony Radio --updated 8/8/13
    Reply With Quote #1


    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)

    Main !radio Menu

    !volume Menu

    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
    Attached Files
    File Type: sp Get Plugin or Get Source (ponyradio.sp - 550 views - 16.0 KB)
    File Type: smx ponyradio.smx (13.9 KB, 659 views)
    __________________
    Ponies

    Last edited by WeAreBorg; 08-08-2013 at 03:08.
    WeAreBorg is offline
    Send a message via Skype™ to WeAreBorg
    captaindeterprimary
    AlliedModders Donor
    Join Date: Sep 2012
    Old 07-28-2013 , 13:09   Re: [ANY] PVL Pony Radio
    Reply With Quote #2

    Oh look here it is.
    __________________
    Last edited by ; Today at 08:20 AM. Reason: Get rid of s
    captaindeterprimary is offline
    DarkEnergy
    SourceMod Donor
    Join Date: Apr 2008
    Location: Georgia Tech, MSECE
    Old 07-29-2013 , 19:23   Re: [ANY] PVL Pony Radio
    Reply With Quote #3

    "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));
    __________________
    War3:Source Developer
    "Your CPU is just a bunch of Muxes"

    Last edited by DarkEnergy; 07-29-2013 at 20:32.
    DarkEnergy is offline
    WeAreBorg
    Junior Member
    Join Date: Jul 2013
    Location: public void()
    Old 07-29-2013 , 20:57   Re: [ANY] PVL Pony Radio
    Reply With Quote #4

    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?
    __________________
    Ponies

    Last edited by WeAreBorg; 07-29-2013 at 20:58.
    WeAreBorg is offline
    Send a message via Skype™ to WeAreBorg
    captaindeterprimary
    AlliedModders Donor
    Join Date: Sep 2012
    Old 07-30-2013 , 09:23   Re: [ANY] PVL Pony Radio
    Reply With Quote #5

    Quote:
    Originally Posted by WeAreBorg View Post
    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
    __________________
    Last edited by ; Today at 08:20 AM. Reason: Get rid of s

    Last edited by captaindeterprimary; 07-30-2013 at 09:31. Reason: reasons
    captaindeterprimary is offline
    WeAreBorg
    Junior Member
    Join Date: Jul 2013
    Location: public void()
    Old 07-31-2013 , 15:45   Re: [ANY] PVL Pony Radio
    Reply With Quote #6

    Quote:
    Originally Posted by vman315 View Post
    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.
    __________________
    Ponies
    WeAreBorg is offline
    Send a message via Skype™ to WeAreBorg
    captaindeterprimary
    AlliedModders Donor
    Join Date: Sep 2012
    Old 07-31-2013 , 17:54   Re: [ANY] PVL Pony Radio
    Reply With Quote #7

    Quote:
    Originally Posted by WeAreBorg View Post
    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.
    __________________
    Last edited by ; Today at 08:20 AM. Reason: Get rid of s
    captaindeterprimary is offline
    DarkEnergy
    SourceMod Donor
    Join Date: Apr 2008
    Location: Georgia Tech, MSECE
    Old 07-31-2013 , 20:39   Re: [ANY] PVL Pony Radio
    Reply With Quote #8

    sockets should be mod independent and thats why i used it. I sort of converted this mod to my own sockets library.
    __________________
    War3:Source Developer
    "Your CPU is just a bunch of Muxes"

    Last edited by DarkEnergy; 07-31-2013 at 20:50.
    DarkEnergy is offline
    salsav91
    Senior Member
    Join Date: Aug 2012
    Location: Where Lollichops sleep
    Old 08-03-2013 , 07:03   Re: [ANY] PVL Pony Radio
    Reply With Quote #9

    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.
    __________________


    Check out my pony animations. http://www.youtube.com/salsav91
    salsav91 is offline
    404UserNotFound
    BANNED
    Join Date: Dec 2011
    Old 08-06-2013 , 13:59   Re: [ANY] PVL Pony Radio
    Reply With Quote #10

    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.
    404UserNotFound is offline
    Reply


    Thread Tools
    Display Modes

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off

    Forum Jump


    All times are GMT -4. The time now is 12:24.


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