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

[Solved] Restricting SourceMod to one server instance


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
byrkoet
Junior Member
Join Date: Nov 2014
Old 11-25-2014 , 03:17   [Solved] Restricting SourceMod to one server instance
Reply With Quote #1

Hello there ,

For the life of me, I can't figure out how to restrict SourceMod or even a certain plugin like WarMod to one server instance.

Basically I have multiple server instances running on a Debian vps, which make use of custom bash/python scripts to help manage the server (haven't figured out how to efficiently add web interfaces like gpanel).

Each server has its own config: server1.cfg etc. But the addons folder in which SourceMod/Metamod/Warmod etc. reside are shared, since I CAN'T specify a directory for such things. (+addons ${addonsdir})
There doesn't seem to even be a command to stop SourceMod through the config, or is there?

Ideally I would like to not run SourceMod on certain server instances, is this possible?


I highly appreciate any suggestions I get

Last edited by byrkoet; 11-25-2014 at 19:21. Reason: Solved
byrkoet is offline
h3bus
AlliedModders Donor
Join Date: Nov 2013
Old 11-25-2014 , 09:34   Re: Restricting SourceMod to one server instance
Reply With Quote #2

You can specify +sourcemod_path
h3bus is offline
byrkoet
Junior Member
Join Date: Nov 2014
Old 11-25-2014 , 11:21   Re: Restricting SourceMod to one server instance
Reply With Quote #3

Quote:
Originally Posted by h3bus View Post
You can specify +sourcemod_path
So to disable SourceMod, i'd just give a false path?
Or perhaps a directory with SourceMod, but without e.g. WarMod (in case the path is ignored if not found)?
byrkoet is offline
h3bus
AlliedModders Donor
Join Date: Nov 2013
Old 11-25-2014 , 11:34   Re: Restricting SourceMod to one server instance
Reply With Quote #4

Well I never disabled sourcemod completely with that. I use it to change loaded plugins and/or plugins configuration.
h3bus is offline
byrkoet
Junior Member
Join Date: Nov 2014
Old 11-25-2014 , 12:42   Re: Restricting SourceMod to one server instance
Reply With Quote #5

Does +sourcemod_path require an absolute path? I tried both actually, but it doesn't seem to work. I added a second sourcemod directory (sourcemod2), but it seems to load sourcemod instead. Because I moved WarMod.smx to "addons/sourcemod2/plugins/disabled"
byrkoet is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 11-25-2014 , 16:39   Re: Restricting SourceMod to one server instance
Reply With Quote #6

Isn't it +sm_basepath, not +sourcemod_path ?
__________________
Not currently working on SourceMod plugin development.
Powerlord is offline
byrkoet
Junior Member
Join Date: Nov 2014
Old 11-25-2014 , 17:11   Re: Restricting SourceMod to one server instance
Reply With Quote #7

Quote:
Originally Posted by Powerlord View Post
Isn't it +sm_basepath, not +sourcemod_path ?
Finally, found it here too: https://wiki.alliedmods.net/Multiple...ers_(SourceMod)
Thank you guys.

Last edited by byrkoet; 11-25-2014 at 19:20. Reason: Solved
byrkoet is offline
Thorlax
Junior Member
Join Date: May 2008
Location: Sweden
Old 11-26-2014 , 03:25   Re: [Solved] Restricting SourceMod to one server instance
Reply With Quote #8

Thanks for link. Interesting.
__________________


Thorlax is offline
Send a message via Skype™ to Thorlax
h3bus
AlliedModders Donor
Join Date: Nov 2013
Old 11-26-2014 , 08:18   Re: [Solved] Restricting SourceMod to one server instance
Reply With Quote #9

Yeah it's sm_basepath... sorry for that
h3bus is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 11-26-2014 , 09:36   Re: [Solved] Restricting SourceMod to one server instance
Reply With Quote #10

Do be aware that SourceMod loads before sm_basepath is processed and Bad Things happen if the the version of SourceMod in addons is a different version than the version in the sm_basepath location.

Example: on Linux mixing 1.6.3 snapshots in addons and 1.7 snapshots in sm_basepath will crash the server.
__________________
Not currently working on SourceMod plugin development.
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 08:16.


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