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

Extra Plugin API


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
WildCard65
Veteran Member
Join Date: Aug 2013
Location: Canada
Old 09-17-2016 , 18:26   Extra Plugin API
Reply With Quote #1

This extension exposes at the moment exposes 2 forwards + public variable related natives to SM Plugins

Note: Plugin API documentation here: https://github.com/WildCard65/ExtraP...iki/Plugin-API and in extraplapi.inc

Source code: https://github.com/WildCard65/ExtraPLAPI
Binary download: https://github.com/WildCard65/ExtraPLAPI/releases

Sample plugin here: https://github.com/WildCard65/ExtraP...lapi_sample.sp

Change log
__________________

Last edited by WildCard65; 01-20-2017 at 17:49.
WildCard65 is offline
kadet.89
Veteran Member
Join Date: Nov 2012
Location: Serbia
Old 09-18-2016 , 04:54   Re: Extra Plugin API
Reply With Quote #2

What is the practical purpose of this extension?

Last edited by kadet.89; 01-23-2017 at 12:00.
kadet.89 is offline
Send a message via Skype™ to kadet.89
KissLick
Veteran Member
Join Date: Nov 2012
Location: void
Old 09-18-2016 , 05:21   Re: Extra Plugin API
Reply With Quote #3

This should be in SM.

Quote:
Originally Posted by kadet.89 View Post
What is practical purpose of this extension?
With OnPluginUnload2 I would be able to automaticaly unload plugin-module once a plugin-core is unloaded.
With OnPluginLoad2 + GetPubVar I would be able to automaticaly register plugin-module once it's loaded (no registration native needed - only some pubvar).
__________________
Plugins: TeamGames
Includes: Menu stocks, ColorVariables, DownloadTableConfig

> No help through PM, make a topic.
KissLick is offline
WildCard65
Veteran Member
Join Date: Aug 2013
Location: Canada
Old 09-18-2016 , 07:11   Re: Extra Plugin API
Reply With Quote #4

Quote:
Originally Posted by KissLick View Post
This should be in SM.


With OnPluginUnload2 I would be able to automaticaly unload plugin-module once a plugin-core is unloaded.
With OnPluginLoad2 + GetPubVar I would be able to automaticaly register plugin-module once it's loaded (no registration native needed - only some pubvar).
That is actually the original idea for this extension.

This extension also has 2 natives to allow other plugins to compare given arrays (through native calls) to see if it's NULL_STRING/NULL_VECTOR

Edit: Just noticed a flaw in the newly added natives
Edit2: Fixed flaw
Edit3: Fixed a memory leak in GetPubVar
__________________

Last edited by WildCard65; 09-18-2016 at 09:09.
WildCard65 is offline
friagram
Veteran Member
Join Date: Sep 2012
Location: Silicon Valley
Old 01-22-2017 , 03:57   Re: Extra Plugin API
Reply With Quote #5

Quote:
Originally Posted by KissLick View Post
This should be in SM.


With OnPluginUnload2 I would be able to automaticaly unload plugin-module once a plugin-core is unloaded.
With OnPluginLoad2 + GetPubVar I would be able to automaticaly register plugin-module once it's loaded (no registration native needed - only some pubvar).
There is a way to do this now, by using forwards, libraries, or even the most simple/lazy method (loading/unloading plugins from a subfolder as FF2 does)

Iv seen some plugins that search the plugins folder for a prefix and issue the load/unload command..
__________________
Profile - Plugins
Add me on steam if you are seeking sp/map/model commissions.
friagram 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 23:13.


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