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

What paths does Sourcemod load plugins from?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
popey456963
Member
Join Date: Mar 2016
Old 07-11-2018 , 16:55   What paths does Sourcemod load plugins from?
Reply With Quote #1

As far as I can tell, SM loads all plugins (where a plugin is defined as a file with the .smx extension) from

- ~/mod/addons/sourcemod/plugins

And doesn't load plugins from

- ~/mod/addons/sourcemod/plugins/disabled

But some plugins also create folders within plugins, for instance, this is loaded:

- ~/mod/addons/sourcemod/plugins/ttt

I'm wondering if there are any restrictions? Can I organise my mods into a proper folder structure that goes multiple levels down? E.g.

- ~/mod/addons/sourcemod/plugins/xyz/skills/player/night_vision.smx

Is it purely the "disabled" folder which is ignored?

Last edited by popey456963; 07-11-2018 at 16:55.
popey456963 is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 07-11-2018 , 18:05   Re: What paths does Sourcemod load plugins from?
Reply With Quote #2

All .smx files recursively under plugins/ that aren't under disabled/ or optional/ subfolders.
  • plugins/test.smx
  • plugins/disabled/test.smx
  • plugins/thing/test.smx
  • plugins/thing/disabled/test.smx
  • plugins/disabled/thing/text.smx
__________________
asherkin is offline
Reply


Thread Tools
Display Modes

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 21:19.


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