Raised This Month: $12 Target: $400
 3% 

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


Post New Thread Reply   
 
Thread Tools Display Modes
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 08-06-2013 , 14:16   Re: [ANY] PVL Pony Radio
Reply With Quote #11

Quote:
Originally Posted by salsav91 View Post
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()
I see in the code a timer that sends client indexes, which is a no-no for timers. One should always send a more unique value, such as userids and then use GetClientOfUserId to get the client index back (or 0 if the client has since disconnected).

Quote:
Originally Posted by salsav91 View Post
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()
In addition to the previous issue, it sounds like this is being called before the station list is populated.

Quote:
Originally Posted by salsav91 View Post
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()
Line 216 uses IsClientConnected when it should be using IsClientInGame.

Quote:
Originally Posted by abrandnewday View Post
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.
For that matter, this plugin could be written to be more generic by adding a cvar to get the station list from instead of hard-coding it.
__________________
Not currently working on SourceMod plugin development.

Last edited by Powerlord; 08-06-2013 at 14:23.
Powerlord is offline
captaindeterprimary
AlliedModders Donor
Join Date: Sep 2012
Old 08-06-2013 , 14:38   Re: [ANY] PVL Pony Radio
Reply With Quote #12

Quote:
Originally Posted by Powerlord View Post
For that matter, this plugin could be written to be more generic by adding a cvar to get the station list from instead of hard-coding it.
All my yes to that. As long as it can still pull the song info from the shoutcast server which is not hard to get.
__________________
Last edited by ; Today at 08:20 AM. Reason: Get rid of s
captaindeterprimary is offline
Oshizu
Veteran Member
Join Date: Nov 2012
Location: Warsaw
Old 08-06-2013 , 18:54   Re: [ANY] PVL Pony Radio
Reply With Quote #13

Quote:
Originally Posted by abrandnewday View Post
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.
Not just you
__________________
...
Oshizu is offline
WeAreBorg
Junior Member
Join Date: Jul 2013
Location: public void()
Old 08-07-2013 , 14:22   Re: [ANY] PVL Pony Radio
Reply With Quote #14

Quote:
Originally Posted by Powerlord View Post
For that matter, this plugin could be written to be more generic by adding a cvar to get the station list from instead of hard-coding it.
The station list isn't hard coded. It is instead pulled and populated from the dowloaded file. The number of station is hard coded for a max of 9 atm



Also thank you very much for the bug reports. I'll fix those right away.
__________________
Ponies

Last edited by WeAreBorg; 08-07-2013 at 14:24.
WeAreBorg is offline
Send a message via Skype™ to WeAreBorg
WeAreBorg
Junior Member
Join Date: Jul 2013
Location: public void()
Old 08-07-2013 , 14:24   Re: [ANY] PVL Pony Radio
Reply With Quote #15

Quote:
Originally Posted by abrandnewday View Post
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.
I am working with my web guy in creating a php that you can host along with a SQL database that will let you configure your own shoutcast based stations. Sound interesting anyone?
__________________
Ponies
WeAreBorg is offline
Send a message via Skype™ to WeAreBorg
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 08-07-2013 , 14:49   Re: [ANY] PVL Pony Radio
Reply With Quote #16

Quote:
Originally Posted by WeAreBorg View Post
The station list isn't hard coded. It is instead pulled and populated from the dowloaded file. The number of station is hard coded for a max of 9 atm



Also thank you very much for the bug reports. I'll fix those right away.
I omitted the word (well, acronym really) URL in there... I knew it was being taken from a URL downloaded using SteamTools since I was looking at the source.
__________________
Not currently working on SourceMod plugin development.
Powerlord is offline
WeAreBorg
Junior Member
Join Date: Jul 2013
Location: public void()
Old 08-08-2013 , 00:05   Re: [ANY] PVL Pony Radio
Reply With Quote #17

Quote:
Originally Posted by Powerlord View Post
I omitted the word (well, acronym really) URL in there... I knew it was being taken from a URL downloaded using SteamTools since I was looking at the source.
Well the URL is rather worthless without a player. I would need to release a player some php with the plugin so that it could be fully customized
__________________
Ponies
WeAreBorg is offline
Send a message via Skype™ to WeAreBorg
WeAreBorg
Junior Member
Join Date: Jul 2013
Location: public void()
Old 08-08-2013 , 00:06   Re: [ANY] PVL Pony Radio
Reply With Quote #18

OK did some bug fixes here is the new version.
Attached Files
File Type: sp Get Plugin or Get Source (ponyradio.sp - 163 views - 16.0 KB)
File Type: smx ponyradio.smx (13.9 KB, 211 views)
__________________
Ponies
WeAreBorg is offline
Send a message via Skype™ to WeAreBorg
friagram
Veteran Member
Join Date: Sep 2012
Location: Silicon Valley
Old 08-08-2013 , 01:08   Re: [ANY] PVL Pony Radio
Reply With Quote #19

Too bad there are only a hand full of mlp songs that are decent :/
Oh well, remixes and chopshop songs for all.
__________________
Profile - Plugins
Add me on steam if you are seeking sp/map/model commissions.
friagram is offline
TheGame980
Member
Join Date: Apr 2012
Old 09-04-2013 , 11:35   Re: [ANY] PVL Pony Radio --updated 8/8/13
Reply With Quote #20

I have the problem that the radio often just random starts playing a song.
I get a message "Radio Bla is now playing Bla - Bla" and then the radio starts playing, even if I never type !radio.
TheGame980 is offline
Reply



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 18:56.


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