AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Unapproved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=109)
-   -   [CS:GO] Warmup Music (https://forums.alliedmods.net/showthread.php?t=338544)

000 07-11-2022 10:55

[CS:GO] Warmup Music
 
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).



m0ssie 07-13-2022 03:41

Re: [CS:GO] Warmup Music
 
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

000 07-13-2022 05:41

Re: [CS:GO] Warmup Music
 
Quote:

Originally Posted by m0ssie (Post 2783655)
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.

m0ssie 07-13-2022 07:06

Re: [CS:GO] Warmup Music
 
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.

000 07-13-2022 08:50

Re: [CS:GO] Warmup Music
 
Quote:

Originally Posted by m0ssie (Post 2783667)
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.

m0ssie 07-13-2022 10:18

Re: [CS:GO] Warmup Music
 
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...

000 07-13-2022 11:04

Re: [CS:GO] Warmup Music
 
Quote:

Originally Posted by m0ssie (Post 2783685)
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).

rodrigolaka 07-26-2022 15:31

Re: [CS:GO] Warmup Music
 
Quote:

Originally Posted by 000 (Post 2783686)
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

000 07-26-2022 15:44

Re: [CS:GO] Warmup Music
 
Quote:

Originally Posted by rodrigolaka (Post 2784919)
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.

rodrigolaka 07-26-2022 15:48

Re: [CS:GO] Warmup Music
 
Quote:

Originally Posted by 000 (Post 2784926)
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!


All times are GMT -4. The time now is 19:40.

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