Raised This Month: $ Target: $400
 0% 

Unload plugins per server on a multiple server setup


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
BentByBogus
Junior Member
Join Date: Apr 2010
Location: Germany
Old 06-16-2010 , 15:15   Unload plugins per server on a multiple server setup
Reply With Quote #1

Hi!

I was wondering if there is a way to unload specific plugins on server startup per server? Because I am using multiple servers spawning from one process/installation.
I tried putting the sm plugins unload xxx into its own .cfg executing it from my server.cfg and also have put it into the server.cfg itself. Both approaches did not work at all.
So any suggestions?
__________________

Last edited by BentByBogus; 06-23-2010 at 12:43.
BentByBogus is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 06-16-2010 , 16:16   Re: Unload plugins per server on a multiple server setup
Reply With Quote #2

Every plugin in ...addons/sourcemod/plugins -folder will automatically load on server when server launched, and from sub-folders
example ...plugins/my_new_folder/


But plugins what are moved in:
...addons/sourcemod/plugins/disabled/ -folder
These not load server automatically, need manually load them.
sm plugins load disabled/plugin_name.smx




To do, move plugins what you do not want to load when server launched in disabled -folder.
And add in server.cfg or alternative ...cfg/sourcemod/sourcemod.cfg
sm plugins load disabled/plugin_name.smx


Aww.. you want load them back certain time and how ??
Use map configs, or can be add command parameter in admin menu.
Notice... some plugins need map change to get it work right. Players reconnect to server during mapchange.

*edit
Plugin run all the time until you unload it or server reboot.
__________________
Do not Private Message @me

Last edited by Bacardi; 06-16-2010 at 16:22. Reason: what the heck I write this twice ??
Bacardi is offline
BentByBogus
Junior Member
Join Date: Apr 2010
Location: Germany
Old 06-16-2010 , 16:31   Re: Unload plugins per server on a multiple server setup
Reply With Quote #3

I sure am going to try that but that means by inversive logic that using sm plugins unload from server.cfg also should yield the same result which it does not. But let me get back to you once I tried your suggestion.
BentByBogus is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 06-16-2010 , 16:46   Re: Unload plugins per server on a multiple server setup
Reply With Quote #4

Now I get it what you mean multiple server/per server... servers have same path and configs.... (I guess right ?)

Maybe you can add in servers launch up parameters own server.cfg file name
servercfgfile "server.cfg"

example if you use shortcut
srcds.exe -console -game cstrike -tickrate 66 +mp_dynamicpricing 0 +rcon_password **** +fps_max 600 +servercfgfile server_1.cfg

Now one of server read ...cfg/server_1.cfg all the time and after map changes
__________________
Do not Private Message @me

Last edited by Bacardi; 06-16-2010 at 16:51. Reason: I go sleep
Bacardi is offline
BentByBogus
Junior Member
Join Date: Apr 2010
Location: Germany
Old 06-16-2010 , 16:51   Re: Unload plugins per server on a multiple server setup
Reply With Quote #5

Yes that is basically what I have done. I deleted the original server.cfg
and added +exec gg_server.cfg respectively +exec dm_server.cfg.
But its probably more elegant to use servercfgfile.
Still that does not bring me any closer to my goal...or does it ?
I am going to check if servercfgfile has a higher priority and gets the job done.
BentByBogus is offline
BentByBogus
Junior Member
Join Date: Apr 2010
Location: Germany
Old 06-16-2010 , 16:57   Re: Unload plugins per server on a multiple server setup
Reply With Quote #6

Well I bow before your knowledge Bacardi!
Using '+servercfgfile gg_server.cfg' does exactly what I am telling it to do.I have made it so that gg_server.cfg executes another cfg files that unloads the unwanted plugins.
Works like a charm.
Consider my issue solved.
And again thank you very much Bacardi for pointing me towards the right direction.
BentByBogus is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 06-17-2010 , 02:14   Re: Unload plugins per server on a multiple server setup
Reply With Quote #7

Bacardi is offline
DeaD_EyE82
AlliedModders Donor
Join Date: Jan 2006
Location: Germany
Old 06-17-2010 , 22:27   Re: Unload plugins per server on a multiple server setup
Reply With Quote #8

Use symlinks for your game server (only Linux) or read thist article: http://wiki.alliedmods.net/Multiple_...28SourceMod%29
__________________
German Support for HL2-Servers:

sourceserver.info
DeaD_EyE82 is offline
Send a message via ICQ to DeaD_EyE82
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 06-18-2010 , 03:22   Re: Unload plugins per server on a multiple server setup
Reply With Quote #9

Quote:
Originally Posted by DeaD_EyE82 View Post
Use symlinks for your game server (only Linux) or read thist article: http://wiki.alliedmods.net/Multiple_...28SourceMod%29
That would work much better
Bacardi is offline
BentByBogus
Junior Member
Join Date: Apr 2010
Location: Germany
Old 06-19-2010 , 00:48   Re: Unload plugins per server on a multiple server setup
Reply With Quote #10

Thanks for the input.
That actually seems to be a much better idea than my current realisation.
I have done it so that plugins are unloaded per server using the server.cfg's.
Next time I have to setup them up again I will follow your suggestion but for now it seems to be working just fine.
BentByBogus 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 04:00.


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