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

OnLibraryRemove and OnLibraryAdded don't work?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Impact123
Veteran Member
Join Date: Oct 2011
Location: Germany
Old 08-04-2012 , 17:51   OnLibraryRemove and OnLibraryAdded don't work?
Reply With Quote #1

I experienced that those 2 forwards doesn't really fire.
I found no threads or bugs about this so i ask here before i might file a bug, are they working for you?

More infos:
Code:
Os: Windows/Linux
Version: 1.4.4
Yours sincerely
Impact
__________________

Last edited by Impact123; 08-04-2012 at 23:36.
Impact123 is offline
mcpan313
Senior Member
Join Date: Mar 2010
Old 08-04-2012 , 18:19   Re: OnLibraryRemove, OnLibraryAdded doesn't work?
Reply With Quote #2

me too, doesn't work.

sm150hg3559
__________________
sorry, for my poor english.
mcpan313 is offline
Send a message via MSN to mcpan313
thetwistedpanda
Good Little Panda
Join Date: Sep 2008
Old 08-04-2012 , 20:52   Re: OnLibraryRemove and OnLibraryAdded don't work?
Reply With Quote #3

Working fine for me, are you sure you have plugins that are registering something?
__________________
thetwistedpanda is offline
Impact123
Veteran Member
Join Date: Oct 2011
Location: Germany
Old 08-04-2012 , 21:07   Re: OnLibraryRemove and OnLibraryAdded don't work?
Reply With Quote #4

Yes, i wrote 2 scripts and loaded/unloaded the registering one multiple times.
I also tested this with the updaterplugin, no chance.

Yours sincerely
Impact
__________________

Last edited by Impact123; 08-04-2012 at 23:37.
Impact123 is offline
TnTSCS
AlliedModders Donor
Join Date: Oct 2010
Location: Undisclosed...
Old 08-04-2012 , 22:23   Re: OnLibraryRemove and OnLibraryAdded don't work?
Reply With Quote #5

I've noticed Updater not getting the AddPlugin OnlibraryAdded... thought it was me and I haven't had time to test
__________________
View my Plugins | Donate
TnTSCS is offline
TheAvengers2
BANNED
Join Date: Jul 2011
Old 08-04-2012 , 23:18   Re: OnLibraryRemove and OnLibraryAdded don't work?
Reply With Quote #6

Linux or Windows?
TheAvengers2 is offline
Impact123
Veteran Member
Join Date: Oct 2011
Location: Germany
Old 08-04-2012 , 23:23   Re: OnLibraryRemove and OnLibraryAdded don't work?
Reply With Quote #7

Windows, only tested on my local environment till now.

Edit: Linux isn't working too, both use the stable 1.4.4 version, but i've noticed this a few versions earlier too.

Yours sincerely
Impact
__________________

Last edited by Impact123; 08-04-2012 at 23:34.
Impact123 is offline
Leonardo
Veteran Member
Join Date: Feb 2010
Location: 90's
Old 08-05-2012 , 03:58   Re: OnLibraryRemove and OnLibraryAdded don't work?
Reply With Quote #8

guess it's because of order of plugins are being loaded

example:
if plugin #2 contains library
then plugin #1 can detect it with OnLibraryAdded
but if plugins #1 contains library
plugin #2 can't detect it
and you have to use LibraryExists in OnPluginStart
Leonardo is offline
Impact123
Veteran Member
Join Date: Oct 2011
Location: Germany
Old 08-05-2012 , 04:42   Re: OnLibraryRemove and OnLibraryAdded don't work?
Reply With Quote #9

Well, like i said, i can exclude that.

Yours sincerely
Impact
__________________
Impact123 is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 08-05-2012 , 14:16   Re: OnLibraryRemove and OnLibraryAdded don't work?
Reply With Quote #10

Quote:
Originally Posted by Leonardo View Post
guess it's because of order of plugins are being loaded

example:
if plugin #2 contains library
then plugin #1 can detect it with OnLibraryAdded
but if plugins #1 contains library
plugin #2 can't detect it
and you have to use LibraryExists in OnPluginStart
And by OnPluginStart, you really mean OnAllPluginsLoaded, amirite?
__________________
Not currently working on SourceMod plugin development.
Powerlord 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 08:38.


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