Raised This Month: $161 Target: $400
 40% 

[ANY] Grooveshark 1.2.5


Post New Thread Reply   
 
Thread Tools Display Modes
Author
DontWannaName
Veteran Member
Join Date: Jun 2007
Location: VALVe Land, WA
Plugin ID:
3913
Plugin Version:
1.2.5
Plugin Category:
Fun Stuff
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
    4 
    Plugin Description:
    Players can search grooveshark's large database of music and play songs easily using chat commands
    Old 09-21-2013 , 19:39   [ANY] Grooveshark 1.2.5
    Reply With Quote #1

    Grooveshark powered by TinySong API




    Description: This plugin allows players to play songs on Grooveshark without leaving the game. It is lightweight and shouldn't cause any lag for most players.

    Compatibility: TF2, CSS, DODS, CSGO and any other Source based mods that use a MOTD and SM.

    Commands:
    sm_grooveshark (No Parameters) - Launch Grooveshark.com in MOTD browser for manual usage. *
    sm_grooveshark <Name of Song/Artist> - Play song that best matches your query
    sm_gs <Name of Song/Artist> - Alias for sm_grooveshark
    sm_gsstop - Stop currently playing song
    sm_gsplay - Replay the last song you selected with sm_grooveshark
    sm_gscurrent - Displays information about the last song you selected with sm_grooveshark

    Required Cvar:
    sm_tinysong_api_key "" - Grab an API key from Tinysong's site and set it in the auto created cfg in cfg/sourcemod

    Required Extension:
    Latest Sockets Extension

    Instructions:

    1. Go to http://tinysong.com/api and grab an API key
    2. Place the Grooveshark smx into your server's plugins folder
    3. Load the plugin or restart your server
    4. Paste the API key into the newly created config in cfg/sourcemod
    5. Restart your server

    ChangeLog:

    1.2.5 - Added FCVAR PROTECTED to API cvar so people cant steal your key

    1.2.4 - Re-Released

    -Special thanks to the previous authors, I do not take credit for the original plugin. I will continue to support this version.
    Attached Thumbnails
    Click image for larger version

Name:	Capture.PNG
Views:	366
Size:	85.3 KB
ID:	126060  
    Attached Files
    File Type: sp Get Plugin or Get Source (grooveshark.sp - 470 views - 6.7 KB)
    File Type: smx grooveshark.smx (7.3 KB, 640 views)
    __________________


    Last edited by DontWannaName; 11-22-2013 at 22:28.
    DontWannaName is offline
    Caliban Avenged
    Junior Member
    Join Date: Jun 2012
    Old 09-21-2013 , 20:00   Re: [ANY] Grooveshark 1.2.4
    Reply With Quote #2

    DWN, thank you for taking on this effort - we were using Grooveshark 2.0.5, and were very sad to see it fall apart after that Valve update.

    Am curious about your version. Is there a way to control the volume of the playback in yours? 2.0.5 let us bring up /gs to change the volume, like yours seems to, only the console in your version doesn't save the settings.
    Caliban Avenged is offline
    doze
    Senior Member
    Join Date: Mar 2012
    Old 09-24-2013 , 02:43   Re: [ANY] Grooveshark 1.2.4
    Reply With Quote #3

    Thanks.

    Yes, a way to control the volume would be nice.

    A message displaying when players join informing them of GS and its commands would also be nice.

    Last edited by doze; 09-24-2013 at 03:03.
    doze is offline
    k3rex
    Senior Member
    Join Date: Aug 2013
    Old 09-24-2013 , 09:45   Re: [ANY] Grooveshark 1.2.4
    Reply With Quote #4

    Can't listen to any song, its say im gonna listen but i hear nothing, what is the problem?
    k3rex is offline
    doze
    Senior Member
    Join Date: Mar 2012
    Old 09-24-2013 , 23:47   Re: [ANY] Grooveshark 1.2.4
    Reply With Quote #5

    Quote:
    Originally Posted by k3rex View Post
    Can't listen to any song, its say im gonna listen but i hear nothing, what is the problem?
    You need adobe flash player for other browsers installed.
    doze is offline
    DontWannaName
    Veteran Member
    Join Date: Jun 2007
    Location: VALVe Land, WA
    Old 09-25-2013 , 02:15   Re: [ANY] Grooveshark 1.2.4
    Reply With Quote #6

    Quote:
    Originally Posted by Caliban Avenged View Post
    DWN, thank you for taking on this effort - we were using Grooveshark 2.0.5, and were very sad to see it fall apart after that Valve update.

    Am curious about your version. Is there a way to control the volume of the playback in yours? 2.0.5 let us bring up /gs to change the volume, like yours seems to, only the console in your version doesn't save the settings.
    Unfortunately, I think it reloads the player with every song so the volume wouldnt be saved. I also dont think the player has a variable that can be used in the code to change volume.

    I think game volume in the game controls motd volume?
    __________________

    DontWannaName is offline
    DontWannaName
    Veteran Member
    Join Date: Jun 2007
    Location: VALVe Land, WA
    Old 09-25-2013 , 02:16   Re: [ANY] Grooveshark 1.2.4
    Reply With Quote #7

    Quote:
    Originally Posted by doze View Post
    Thanks.

    Yes, a way to control the volume would be nice.

    A message displaying when players join informing them of GS and its commands would also be nice.
    Wouldnt be hard to add, but wouldnt an advertisement work better?
    __________________

    DontWannaName is offline
    Battles Clan
    SourceMod Donor
    Join Date: Aug 2013
    Location: Brasil
    Old 09-26-2013 , 22:59   Re: [ANY] Grooveshark 1.2.4
    Reply With Quote #8

    Currently this plugin does not work in CS: GO
    Battles Clan is offline
    Caliban Avenged
    Junior Member
    Join Date: Jun 2012
    Old 09-28-2013 , 18:18   [ANY] Grooveshark 1.2.4
    Reply With Quote #9

    Quote:
    Originally Posted by DontWannaName View Post
    Unfortunately, I think it reloads the player with every song so the volume wouldnt be saved. I also dont think the player has a variable that can be used in the code to change volume.

    I think game volume in the game controls motd volume?
    I suppose - but disruptive to players with casual listening needs.

    Peeked at your code - saw that you're essentially using the flash player widget for Facebook from GS; hence, no volume control. Is that the only option for playback? I seem to recall a general-purpose flash player that could be invoked with volume controls, connected with a karaoke plug-in; the specific one escapes me at the moment. Does the TinySong API we're calling here make it possible to feed the song URL to a different player?
    Caliban Avenged is offline
    cool_myll
    SourceMod Donor
    Join Date: Aug 2011
    Old 09-29-2013 , 05:11   Re: [ANY] Grooveshark 1.2.4
    Reply With Quote #10

    I agree. I only uninstalled the old grooveshark plugin cause of no volume options.
    __________________
    cool_myll 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 21:19.


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