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

Solved Could not find required plugin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
headline
SourceMod Moderator
Join Date: Mar 2015
Old 04-01-2017 , 02:53   Could not find required plugin
Reply With Quote #1

Alright. So I've been tripped up trying to solve this problem. For whatever reason, my plugin "donationstest.smx" can not find the required "donations" plugin, but I can not for the life of me figure out why. The name of the donations plugin is donations.smx and the name of the plugin in the myinfo is "donations" aswell.

Currently running latest SM snapshot.

Error:
Code:
L 04/01/2017 - 01:47:58: SourceMod error session started
L 04/01/2017 - 01:47:58: Info (map "am_water") (file "errors_20170401.log")
L 04/01/2017 - 01:47:58: [SM] Unable to load plugin "donationstest.smx": Could not find required plugin "donations"
donationstest.sp


donations.inc


Header of donations.sp


(and yes, the donations plugin is successfully loaded and functioning properly)

Last edited by headline; 04-01-2017 at 03:44.
headline is offline
headline
SourceMod Moderator
Join Date: Mar 2015
Old 04-01-2017 , 03:42   Re: Could not find required plugin
Reply With Quote #2

I worked it out with That One Guy and apparently it ended up working once the plugin library I was registering was the exact same name as the name of the plugin itself.

All I did was change

Code:
RegPluginLibrary("hl_donations");
to
Code:
RegPluginLibrary("donations");

I'm not sure if this behavior is intended and I'd love for someone to elaborate

Last edited by headline; 04-01-2017 at 03:47.
headline is offline
WildCard65
Veteran Member
Join Date: Aug 2013
Location: Canada
Old 04-01-2017 , 08:20   Re: Could not find required plugin
Reply With Quote #3

Quote:
Originally Posted by Headline View Post
public SharedPlugin __pl_donations =
{
name = "donations", // This is the name SM expects to given at some point to a call to RegPluginLibrary, it's independent of the var's name.
file = "donations.smx",
#if defined REQUIRE_PLUGIN
required = 1,
#else
required = 0,
#endif
};
Reference: https://github.com/alliedmodders/sou...nSys.cpp#L1069
__________________

Last edited by WildCard65; 04-01-2017 at 08:25.
WildCard65 is offline
headline
SourceMod Moderator
Join Date: Mar 2015
Old 04-01-2017 , 14:22   Re: Could not find required plugin
Reply With Quote #4

Quote:
Originally Posted by WildCard65 View Post
Gotcha. Thanks for clarifying.
headline 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 04:48.


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