Raised This Month: $ Target: $400
 0% 

enabling/disabling plugin with sever.cfg


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ghostofmybrain
Veteran Member
Join Date: Mar 2010
Old 08-31-2011 , 20:29   enabling/disabling plugin with sever.cfg
Reply With Quote #1

Is it possible to put a line in the server.cfg file that enables a specific plugin when the config is loaded, and put in a server2.cfg a line to disable that plugin if that config is loaded? I know how to enable/disable plugins per map or things like that, but I've never done it with the execution of a server config file.
__________________
Boycott ESEA
My servers
ghostofmybrain is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 08-31-2011 , 20:31   Re: enabling/disabling plugin with sever.cfg
Reply With Quote #2

Same thing really. Just put the cvars in the files with the relavent values. Of course, this assumes that the plugin has a cvar that enables/disables it's functionality.

If you are refering to loading/not loading the plugin (equivalent to plugins-map_name.ini) then you can't use a .cfg.
__________________

Last edited by fysiks; 08-31-2011 at 20:34.
fysiks is offline
ghostofmybrain
Veteran Member
Join Date: Mar 2010
Old 08-31-2011 , 20:46   Re: enabling/disabling plugin with sever.cfg
Reply With Quote #3

Quote:
Originally Posted by fysiks
If you are refering to loading/not loading the plugin (equivalent to plugins-map_name.ini) then you can't use a .cfg.
That's actually what I was referring to...

But the plugin does have a cvar to enable/disable the functionality, so I could definitely go that route. Does it go in exactly like it would go into the amxx.cfg file?
__________________
Boycott ESEA
My servers
ghostofmybrain is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 08-31-2011 , 21:00   Re: enabling/disabling plugin with sever.cfg
Reply With Quote #4

Quote:
Originally Posted by ghostofmybrain View Post
That's actually what I was referring to...

But the plugin does have a cvar to enable/disable the functionality, so I could definitely go that route. Does it go in exactly like it would go into the amxx.cfg file?
I generally tend to avoid putting cvar created in AMX Mod X in server.cfg but they will probably work just fine. It would be the same as any cvar (all the things you see in server.cfg are cvars too.
__________________
fysiks is offline
hyphen
Senior Member
Join Date: Aug 2011
Old 09-01-2011 , 06:38   Re: enabling/disabling plugin with sever.cfg
Reply With Quote #5

In this context I would like to ask one thing. If I have only 1 installation and runs multiple hlds with different configs like 1 CSDM other 1 Normal Pub, then I need to disable some csdm plugins for Pub server and so I need to have a cfg for that and load that on Pub hlds_run startup.

But my question is. Is there any chances when csdm map changes the pub server will have those plugins enable and some cvar which is set for csdm server also affects the Pub server.
hyphen is offline
ghostofmybrain
Veteran Member
Join Date: Mar 2010
Old 09-01-2011 , 06:47   Re: enabling/disabling plugin with sever.cfg
Reply With Quote #6

Quote:
Originally Posted by fysiks View Post
I generally tend to avoid putting cvar created in AMX Mod X in server.cfg but they will probably work just fine. It would be the same as any cvar (all the things you see in server.cfg are cvars too.
Yeah, I just didn't know if the server.cfg file knew what to reference. Like maybe it will only reference cvars that are coded as part of the hlds, and so anything extra to that (like an amx cvar) needs to go into an amx config file for it to even be understood. I will give it a try as soon as I have more than ten free minutes...
__________________
Boycott ESEA
My servers
ghostofmybrain is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 09-01-2011 , 11:51   Re: enabling/disabling plugin with sever.cfg
Reply With Quote #7

Quote:
Originally Posted by hyphen View Post
In this context I would like to ask one thing. If I have only 1 installation and runs multiple hlds with different configs like 1 CSDM other 1 Normal Pub, then I need to disable some csdm plugins for Pub server and so I need to have a cfg for that and load that on Pub hlds_run startup.
It sounds like you need to use two different plugins.ini's for each server.

Quote:
Originally Posted by hyphen View Post
But my question is. Is there any chances when csdm map changes the pub server will have those plugins enable and some cvar which is set for csdm server also affects the Pub server.
I don't understand anything in this paragraph lol.
__________________
fysiks is offline
hyphen
Senior Member
Join Date: Aug 2011
Old 09-01-2011 , 12:16   Re: enabling/disabling plugin with sever.cfg
Reply With Quote #8

how do I use 2 different plugins.ini and map them to hlds_run at startup
hyphen is offline
hyphen
Senior Member
Join Date: Aug 2011
Old 09-01-2011 , 12:18   Re: enabling/disabling plugin with sever.cfg
Reply With Quote #9

are you saying about +localinfo ?

and how do I set maps.ini for each server ?

Last edited by hyphen; 09-01-2011 at 12:51.
hyphen is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 09-01-2011 , 15:41   Re: enabling/disabling plugin with sever.cfg
Reply With Quote #10

Quote:
Originally Posted by hyphen View Post
are you saying about +localinfo ?
Yeah I believe so. You can look in core.ini for thet hings you can change.

Quote:
Originally Posted by hyphen View Post
and how do I set maps.ini for each server ?
I'm not entirely sure there is a setting for that.
__________________
fysiks 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:51.


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