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

[CS:GO] Warmup Music


Post New Thread Reply   
 
Thread Tools Display Modes
Author
000
Member
Join Date: Jul 2022
Plugin ID:
8126
Plugin Version:
Plugin Category:
All
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Warmup Music.
    Unapprover:
    Reason for Unapproving:
    No source code / plugin, upload source and use the Report Post button for a new review.
    Old 07-11-2022 , 10:55   [CS:GO] Warmup Music
    Reply With Quote #1

    Description:
    Plays music to everyone during warmup.

    Requested here:
    https://forums.alliedmods.net/showthread.php?t=338176

    Requirements:
    SourceMod 1.11+

    Installation:
    Put all files from the release package in your game root folder ("csgo").
    - Reload map.

    If the plugin is not working as intended, check logs in addons/sourcemod/logs and post them here.
    If error logs are not available, report nevertheless.

    Configuration:
    Plugin will generate config file in cfg/sourcemod:

    PHP Code:
    // Delay for when to play music in case you use plugins which play sound when you joined and because we need a delay nevertheless. 
    // Also: Delay should be a minumum of 3.0.
    // -
    // Default: "3.0"
    sm_warmup_music_delay "3.0"

    // You can define here what the command name is to open the Warmup Music Menu.
    // -
    // Default: "wmenu"
    sm_warmup_music_menu "wmenu"

    // You can define here what the command name is to toggle warmup music.
    // -
    // Default: "wmtoggle"
    sm_warmup_music_toggle "wmtoggle" 
    Also: You will find in addons/sourcemod/configs a config file for soundlist configuration.

    Translation:
    If you will, and the translation to be used does not exist, you can upload the file in a reply.

    Credits:
    - DON JJF: It is the idea of DON JJF.

    Changelog:
    Code:
    - v1.0
    • Initial release.
    - v1.1
    • Added Delay for when to start music;
    • Added !stopwm command for the client to music sound when feeling so.
    - v1.2
    • Added Random Mode: Picks random song from configs/warmup_music.txt file each warmup if enabled;
    • Added the ability for clients to change volume via command;
    • Added the ability to change command names to suit ones needs;
    • Added translation for various notifications;
    • Added cfg file (cfg/sourcemod) in package;
    • Added folder in sound/;
    • Added installation instruction;
    - v1.3
    • Added toggle (turn on/off music, plays random track when toggled on);
    • Added Menu for choosing volume, tracks and turning on/off;
    • Added clientprefs support (saves volume of choice via cookie);
    • Added support for random mode only since old method is obsolete;
    - v1.4
    • Various fixes.
    - v1.5
    • Various fixes (should now work as intended).

    Last edited by DarkDeviL; 06-15-2023 at 12:52. Reason: Restore to previous version.
    000 is offline
    m0ssie
    Junior Member
    Join Date: Jul 2022
    Old 07-13-2022 , 03:41   Re: [CS:GO] Warmup Music
    Reply With Quote #2

    I installed the Plugin but theres no .cfg created in cfg/srcmd.

    I Added the sm_ settings to the regular srcmd.cfg but that doesnt work either.

    PS.: Yes i already added music to the path warmup/music.mp3
    m0ssie is offline
    000
    Member
    Join Date: Jul 2022
    Old 07-13-2022 , 05:41   Re: [CS:GO] Warmup Music
    Reply With Quote #3

    Quote:
    Originally Posted by m0ssie View Post
    I installed the Plugin but theres no .cfg created in cfg/srcmd.

    I Added the sm_ settings to the regular srcmd.cfg but that doesnt work either.

    PS.: Yes i already added music to the path warmup/music.mp3
    Hi.

    Do:

    1. Create folder "warmup" in "sound" folder.
    2. Put your mp3 file in "warmup" folder.
    3. Change map of your server.
    4. Go to csgo/cfg/sourcemod and find "sm_warmup_music.cfg", open it.
    5. Put in sm_warmup_music "warmup/your-mp3-file.mp3".
    6. Change map.

    Have fun.

    Last edited by 000; 07-13-2022 at 05:41.
    000 is offline
    m0ssie
    Junior Member
    Join Date: Jul 2022
    Old 07-13-2022 , 07:06   Re: [CS:GO] Warmup Music
    Reply With Quote #4

    Thats exactly what i did. But the plugins doesnt work for me.

    The plugins doesnt setup a .cfg.

    There isnt a error in my console either.
    m0ssie is offline
    000
    Member
    Join Date: Jul 2022
    Old 07-13-2022 , 08:50   Re: [CS:GO] Warmup Music
    Reply With Quote #5

    Quote:
    Originally Posted by m0ssie View Post
    Thats exactly what i did. But the plugins doesnt work for me.

    The plugins doesnt setup a .cfg.

    There isnt a error in my console either.
    Then the plugin isn't part of the problem.

    Last edited by 000; 10-18-2022 at 04:55.
    000 is offline
    m0ssie
    Junior Member
    Join Date: Jul 2022
    Old 07-13-2022 , 10:18   Re: [CS:GO] Warmup Music
    Reply With Quote #6

    How can the plugin not be the problem, if i did all the things you said.
    I added the plugin to the plugin path but your plugin isnt even creating the .cfg file...
    m0ssie is offline
    000
    Member
    Join Date: Jul 2022
    Old 07-13-2022 , 11:04   Re: [CS:GO] Warmup Music
    Reply With Quote #7

    Quote:
    Originally Posted by m0ssie View Post
    How can the plugin not be the problem, if i did all the things you said.
    I added the plugin to the plugin path but your plugin isnt even creating the .cfg file...
    Well, It cannot be the program.

    Anyway, I created the cfg file for you manually (attachments).

    Last edited by 000; 10-18-2022 at 04:55.
    000 is offline
    rodrigolaka
    Junior Member
    Join Date: Jun 2022
    Location: SP, Brazil
    Old 07-26-2022 , 15:31   Re: [CS:GO] Warmup Music
    Reply With Quote #8

    Quote:
    Originally Posted by 000 View Post
    Well, It cannot be the program.

    Anyway, I created for you the .cfg file manually (attachments).
    Hey dude!

    I'm having an error loading the plugin.

    My steps were:
    1. placed smx file;
    2. created warmup folder under sound;
    3. placed my mp3 file
    4. started the server.

    But the plugin haven't loaded due to this error:
    sm_csgo_warmup_music.smx: Unable to load plugin (unsupported feature set; code is too new)

    Any ideas how to solve that:

    Bonus: usually my server has 5 to 10min warmup, so if we could have multiple musics would be very nice! playing them in a queue or random mode.

    Thanks
    rodrigolaka is offline
    000
    Member
    Join Date: Jul 2022
    Old 07-26-2022 , 15:44   Re: [CS:GO] Warmup Music
    Reply With Quote #9

    Quote:
    Originally Posted by rodrigolaka View Post
    Hey dude!

    I'm having an error loading the plugin.

    My steps were:
    1. placed smx file;
    2. created warmup folder under sound;
    3. placed my mp3 file
    4. started the server.

    But the plugin haven't loaded due to this error:
    sm_csgo_warmup_music.smx: Unable to load plugin (unsupported feature set; code is too new)

    Any ideas how to solve that:

    Bonus: usually my server has 5 to 10min warmup, so if we could have multiple musics would be very nice! playing them in a queue or random mode.

    Thanks
    Hi.

    1. Error message means that you use an older version of SourceMod. This plugin was compiled under 1.11 dev branch.

    2. I don't know if I am going to implement such a feature.
    I planned to add new features and generally improve code.

    I would recommend for now and possibly for the future to just bind multiple mp3 together. There plenty of tools which can do that.

    Last edited by 000; 07-26-2022 at 16:22.
    000 is offline
    rodrigolaka
    Junior Member
    Join Date: Jun 2022
    Location: SP, Brazil
    Old 07-26-2022 , 15:48   Re: [CS:GO] Warmup Music
    Reply With Quote #10

    Quote:
    Originally Posted by 000 View Post
    1. Error message means that you use an older version of SourceMod. This plugin was compiled under 1.11 dev branch.

    2. I don't know if I am going to implement such a feature.
    I planned to add new features and generally improve code.

    I would recommend for now and possibly for the future to just bind multiple mp3 together. There plenty of tools which can do that.

    Nice! Thanks. I'm using the last stable version of Sourcemod. Will update it and try again!

    Regarding this new feature, I'll combine the mp3 songs into a single file then, thanks for your help!
    rodrigolaka 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 00:00.


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