[Tool/Web/Other] [C++] SA:MP Plugin Template Library (samp-ptl) - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Plugin Development (
https://sampforum.blast.hk/forumdisplay.php?fid=18)
+--- Thread: [Tool/Web/Other] [C++] SA:MP Plugin Template Library (samp-ptl) (
/showthread.php?tid=676123)
[C++] SA:MP Plugin Template Library (samp-ptl) -
YourShadow - 30.05.2020
SA:MP Plugin Template Library (samp-ptl)
Description:
C++17 template library that allows you to create your own plugins for SA:MP server very easy and fast.
Main features:- Safe C++ AMX API with errors handling
- Pool of scripts (gamemode at the end)
- Easy executing the callbacks (publics) with optional caching
- Easy registration of natives: auto-conversion parameters from cell type to common C++ types. You may also define your own conversions
- Logging
- Checking for a version match between the plugin and scripts
Examples:
https://github.com/urShadow/samp-ptl...master/example
https://github.com/urShadow/Pawn.CMD
https://github.com/urShadow/Pawn.Regex
Source code:
https://github.com/urShadow/samp-ptl
Re: [C++] SA:MP Plugin Template Library (samp-ptl) -
Pottus - 01.06.2020
Another 5-Star release from you how could we expect any less?
Re: [C++] SA:MP Plugin Template Library (samp-ptl) -
Unrea1 - 01.06.2020
Your contributions are really excellent, 5 stars
Re: [C++] SA:MP Plugin Template Library (samp-ptl) -
Whitetiger - 01.06.2020
Looks pretty cool man, wondering if you'd be interested in possibly implementing a PoC I wrote a few years back to determine from PAWN which plugins are loaded:
https://github.com/Whitetigerswt/Dynamic_Natives. The technique is described on the GitHub page. I'm sure there's room for improvement as well.
I think it'd fit perfectly in some plugin framework to handle "behind-the-scenes". Let me know what you think.
Re: [C++] SA:MP Plugin Template Library (samp-ptl) -
Eoussama - 01.06.2020
Another 5 start contribution form you again, you're an inspiration, keep it up mate
Re: [C++] SA:MP Plugin Template Library (samp-ptl) -
YourShadow - 01.06.2020
Quote:
Originally Posted by Whitetiger
Looks pretty cool man, wondering if you'd be interested in possibly implementing a PoC I wrote a few years back to determine from PAWN which plugins are loaded: https://github.com/Whitetigerswt/Dynamic_Natives. The technique is described on the GitHub page. I'm sure there's room for improvement as well.
I think it'd fit perfectly in some plugin framework to handle "behind-the-scenes". Let me know what you think.
|
It's a very interesting idea. I will think about the implementation with minimum AMX overhead.
Re: [C++] SA:MP Plugin Template Library (samp-ptl) -
Whitetiger - 01.06.2020
Quote:
Originally Posted by YourShadow
It's a very interesting idea. I will think about the implementation with minimum AMX overhead.
|
Sure, hit me up in a PM or the steam in my signature and I can try to clarify if you misunderstand something. The SA-MP AC link in my signature was also using this technique, so you could check that plugin for more than just a PoC.