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

[TF2] Endround Music


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Reflex
Member
Join Date: Apr 2008
Location: Russia, St. Petersburg
Plugin ID:
2815
Plugin Version:
1.0
Plugin Category:
Fun Stuff
Plugin Game:
Team Fortress 2
Plugin Dependencies:
    Servers with this Plugin:
    2 
    Plugin Description:
    Plays random music at round end
    Old 02-25-2012 , 07:16   [TF2] Endround Music
    Reply With Quote #1

    [TF2] Endround Music

    Description:
    This plugin plays random mp3 file from specified directory at round end event. It's easy to use and has only two convars for configuration.
    If you have clientprefs your players can disable music on their own by using !settings command.
    Cvars:
    • sm_music_directory — music directory name relative to the 'sounds' folder
    • sm_music_download_limit — its general purpose to control count of files that client must download before he'll join the game [default 5]

    Install Instructions:
    • Place endround_music.smx into your tf/addons/sourcemod/plugins/ folder.
    • Create new directory on your server inside tf/sound folder.
    • Put your music into this directory (subdirectories not allowed)
    • Open server.cfg and create sm_music_directory convar pointing to your created directory.

    Once Again:
    If you created tf/sound/CoolMusic directory you must set sm_music_directory CoolMusic
    Notes:
    • Your music must be short. Best length is about 14−15 seconds.
    • You can lower mp3 bitrate to speedup downloads. I use these lame options: lame -V7 -q0 --lowpass 16 -b32 --resample 44.1
    • Remember about sv_pure

    Special Thanks:
    Attached Files
    File Type: sp Get Plugin or Get Source (endround_music.sp - 3378 views - 6.1 KB)
    __________________

    Last edited by Reflex; 03-03-2012 at 04:26.
    Reflex is offline
    ColonelCheru
    Junior Member
    Join Date: Jul 2012
    Old 07-02-2012 , 22:46   Re: [TF2] Endround Music
    Reply With Quote #2

    Hi~
    First off I want to say that this plugin is fantastic, however, I seem to be having some issues with it running on my server.

    The first map it runs on, it works like a charm, but the second we have to switch to a new map all of the sounds have to redownload. Every single map.

    Know of any way to fix this?
    Thanks ; u;
    __________________
    ColonelCheru is offline
    TnTSCS
    AlliedModders Donor
    Join Date: Oct 2010
    Location: Undisclosed...
    Old 07-02-2012 , 22:47   Re: [TF2] Endround Music
    Reply With Quote #3

    what is your 'sv_pure' set to? Do you use FastDL (sv_downloadurl)? If so, make sure all of the files are on both the game server and FastDL server.
    __________________
    View my Plugins | Donate
    TnTSCS is offline
    ColonelCheru
    Junior Member
    Join Date: Jul 2012
    Old 07-02-2012 , 22:52   Re: [TF2] Endround Music
    Reply With Quote #4

    Quote:
    Originally Posted by TnTSCS View Post
    what is your 'sv_pure' set to? Do you use FastDL (sv_downloadurl)? If so, make sure all of the files are on both the game server and FastDL server.
    sv_pure is set to 1.

    and no I haven't set up the FastDL just yet.
    __________________
    ColonelCheru is offline
    TnTSCS
    AlliedModders Donor
    Join Date: Oct 2010
    Location: Undisclosed...
    Old 07-02-2012 , 22:52   Re: [TF2] Endround Music
    Reply With Quote #5

    if you have sv_pure 1... make sure you allow all of the files in your whitelist file... you know where that is?
    __________________
    View my Plugins | Donate
    TnTSCS is offline
    ColonelCheru
    Junior Member
    Join Date: Jul 2012
    Old 07-02-2012 , 22:54   Re: [TF2] Endround Music
    Reply With Quote #6

    Quote:
    Originally Posted by TnTSCS View Post
    if you have sv_pure 1... make sure you allow all of the files in your whitelist file... you know where that is?
    Yeah over in Orangebox/hl2/pure_server_whitelist.txt , right?
    how would I go about doing that?
    __________________
    ColonelCheru is offline
    TnTSCS
    AlliedModders Donor
    Join Date: Oct 2010
    Location: Undisclosed...
    Old 07-02-2012 , 22:56   Re: [TF2] Endround Music
    Reply With Quote #7

    There's an example inside... you want to set the folders where your "custom" files reside and set it to "allow_from_disk" or something
    __________________
    View my Plugins | Donate
    TnTSCS is offline
    ColonelCheru
    Junior Member
    Join Date: Jul 2012
    Old 07-02-2012 , 23:00   Re: [TF2] Endround Music
    Reply With Quote #8

    Quote:
    Originally Posted by TnTSCS View Post
    There's an example inside... you want to set the folders where your "custom" files reside and set it to "allow_from_disk" or something
    Gotcha, let me check to see if that fixed it. b
    __________________
    ColonelCheru is offline
    ColonelCheru
    Junior Member
    Join Date: Jul 2012
    Old 07-02-2012 , 23:24   Re: [TF2] Endround Music
    Reply With Quote #9

    Quote:
    Originally Posted by TnTSCS View Post
    There's an example inside... you want to set the folders where your "custom" files reside and set it to "allow_from_disk" or something
    Ended up working for the first map... then had to redownload all the music again, the plugin also then failed to work after the first map.
    This is what I added btw,
    sound\rptc... allow_from_disk

    Is there something I'm missing perhaps?
    __________________

    Last edited by ColonelCheru; 07-03-2012 at 01:15.
    ColonelCheru is offline
    Powerlord
    AlliedModders Donor
    Join Date: Jun 2008
    Location: Seduce Me!
    Old 07-03-2012 , 11:19   Re: [TF2] Endround Music
    Reply With Quote #10

    Quote:
    Originally Posted by ColonelCheru View Post
    Ended up working for the first map... then had to redownload all the music again, the plugin also then failed to work after the first map.
    This is what I added btw,
    sound\rptc... allow_from_disk

    Is there something I'm missing perhaps?
    You may need a \ after rptc... not really sure.

    The reason you're seeing the "works on the first map" is because sv_pure takes effect before server.cfg is executed and won't change again until map change. If you're setting sv_pure, it should be done on the server command line or in autoexec.cfg
    __________________
    Not currently working on SourceMod plugin development.

    Last edited by Powerlord; 07-03-2012 at 11:19.
    Powerlord 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 14:20.


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