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

Late-loading plugins not initially catching forwards?


Post New Thread Reply   
 
Thread Tools Display Modes
Mathias.
Veteran Member
Join Date: Aug 2010
Location: Canada is my city
Old 02-06-2015 , 16:11   Re: Late-loading plugins not initially catching forwards?
Reply With Quote #11

indeed, is that requiere? I though it was optional only for optional native
Mathias. is offline
Wliu
Veteran Member
Join Date: Apr 2013
Old 02-06-2015 , 17:30   Re: Late-loading plugins not initially catching forwards?
Reply With Quote #12

@peace-maker FF2 has both the SharedPlugin struct and calls RegPluginLibrary in APL2.
I'll try to create a simple test plugin by Sunday.
__________________
~Wliu
Wliu is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 02-06-2015 , 19:21   Re: Late-loading plugins not initially catching forwards?
Reply With Quote #13

Incidentally, call RegPluginLibrary after you've registered your natives.

I've run into at least one plugin (well, in this case extension) that does it in the opposite order, which leads to an error if you try calling a native in a OnLibraryAdded callback.

Speaking of which, I should do a pull request against DHooks2 to fix that...
__________________
Not currently working on SourceMod plugin development.

Last edited by Powerlord; 02-06-2015 at 19:22.
Powerlord is offline
Wliu
Veteran Member
Join Date: Apr 2013
Old 02-06-2015 , 20:15   Re: Late-loading plugins not initially catching forwards?
Reply With Quote #14

@Powerlord yup, FF2 is registering the plugin library after creating all the natives. The last native is created on L874 and RegPluginLibrary is L886.
__________________
~Wliu
Wliu is offline
Wliu
Veteran Member
Join Date: Apr 2013
Old 02-09-2015 , 16:01   Re: Late-loading plugins not initially catching forwards?
Reply With Quote #15

So this is interesting. I tried creating a test plugin and it worked.
Guess I need to do a bit more research into why FF2's subplugins aren't catching the forwards but others are.
__________________
~Wliu
Wliu is offline
VoiDeD
AlliedModders Donor
Join Date: Mar 2009
Location: Illinois, USA
Old 02-09-2015 , 23:05   Re: Late-loading plugins not initially catching forwards?
Reply With Quote #16

Considering the FF2 developer actively worked against SM's entire system of plugin dependencies, it shouldn't really come as a huge surprise that it Doesn't Work.
__________________
VoiDeD 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 02:20.


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