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

[DEV] Autoreload plugins


Post New Thread Reply   
 
Thread Tools Display Modes
Tonblader
Senior Member
Join Date: Jul 2011
Location: Peru
Old 05-06-2022 , 12:31   Re: [DEV] Autoreload plugins
Reply With Quote #21

Is it possible you can add a custom route of where you want plugins to be detected in a cvar maybe with multiple paths where the plugin can reload other plugins?
example:
sm_cvar sm_autoreload_paths "plugins\disabled\boost\c2m1" "plugins\all\"

Last edited by Tonblader; 05-06-2022 at 12:46.
Tonblader is offline
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 05-06-2022 , 13:43   Re: [DEV] Autoreload plugins
Reply With Quote #22

Plugins are detected by Autoreloader anywhere in /plugins/ (recursively) same as SourceMod do; an exception is /plugins/disabled/ and all its subfolders which aren't loaded. This is default behaviour of SourceMod and I'm going to follow it.
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
[My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]
Dragokas is offline
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 05-06-2022 , 14:07   Re: [DEV] Autoreload plugins
Reply With Quote #23

As about tracking dynamically loaded plugins made by 3rd-party side call (via "sm plugins load"), it's impossible to do until new forward been implemented according to issue #1482. I'm not going to inject low-level hooks directly in sm engine just for such a rarely used feature.

PS. Ahh, well, it is still possible to track them by calculating delta between cached and current plugin list in memory. This will cause consuming more CPU cycles. Maybe I will think about that as an optional feature. Surely, not soon, cos I'm too busy for nearest months.
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
[My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]

Last edited by Dragokas; 05-06-2022 at 14:16.
Dragokas is offline
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 10-06-2022 , 12:40   Re: [DEV] Autoreload plugins
Reply With Quote #24

Updated.
Quote:
1.15 (06-Oct-2022)
- Walkaround rare SM bug #1839, when SM reports incorrect plugin state, causing incorrect decision about "load" or "reload".
- Updated against warnings in SM 1.11, and futute 1.12, 1.13.
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
[My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]
Dragokas 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 20:15.


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