SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Plugin Development

Reply
 
Thread Tools Display Modes
Old 08/11/2011, 06:32 PM   #21
Calgon
Godfather
 
Calgon's Avatar
 
Join Date: Jan 2009
Posts: 6,460
Reputation: 1059
Default Re: Plugin development guide

Creating C++ projects and adding libraries is pretty simple, but when you've got a set of libraries already included like SA-MP - you're limited to what you can add and how, this could probably be explained a bit.

Also, explaining a bit about a pre-existing plugin and how it works would be pretty cool, not sure which one you could talk about though.

Sorry if I sounded rude, I am thankful as I can compare what I already know to this guide, but I still have some massive gaps in C++ and my understanding of the SDK, I'm not entirely confident enough to create a complex plugin alternative for something I could perhaps already make in Pawn.
__________________
Calgon is offline   Reply With Quote
Old 08/11/2011, 06:59 PM   #22
TheArcher
High-roller
 
TheArcher's Avatar
 
Join Date: Dec 2009
Location: Home
Posts: 2,453
Reputation: 247
Default Re: Plugin development guide

Amazing effort it worth it. Thanks
__________________
TheArcher is offline   Reply With Quote
Old 08/11/2011, 07:03 PM   #23
Kyosaur
High-roller
 
Kyosaur's Avatar
 
Join Date: Mar 2008
Location: USA - California
Posts: 1,014
Reputation: 330
Default Re: Plugin development guide

Quote:
Originally Posted by Calgon View Post
Creating C++ projects and adding libraries is pretty simple, but when you've got a set of libraries already included like SA-MP - you're limited to what you can add and how, this could probably be explained a bit.

Also, explaining a bit about a pre-existing plugin and how it works would be pretty cool, not sure which one you could talk about though.

Sorry if I sounded rude, I am thankful as I can compare what I already know to this guide, but I still have some massive gaps in C++ and my understanding of the SDK, I'm not entirely confident enough to create a complex plugin alternative for something I could perhaps already make in Pawn.
I agree with the creating projects/including libraries bit. Part of me didnt want to add the "Getting started" section as it was very simple stuff that i believed would bring up basic C/++ questions and problems, and also because RyDeR` already covered it. I decided to add it for completeness and so i could expand on what RyDeR` had already covered though (it acted as a nice spring board into the examining of the .def/source files, so thats good).

Im not sure how i feel about breaking down a plugin bit by bit ... the thing that worries me is that i'd have to cover a lot of C/++ code in doing so. I have nothing against explaining C/++ related content, but i wanted to keep this focused on the actual SDK (The mods have made it clear that this forum isnt for C/++ help or questions- which is kind of a shame). If there is a lot of interest in plugin development (and as such an interest in this topic) i might include a tutorial on the language itself (everything from data types, to polymorphism).

Until then though, you're welcome to put something together. If it fits well in the article (structure, speech, and consistency wise) i'll definitely add it. The original point was to have this as a group thing as i dont have all that much time due to other projects.

Also dont worry about sounding rude, thats the great thing about this forum, your allowed to express yourself and opinions .
Kyosaur is offline   Reply With Quote
Old 08/11/2011, 07:15 PM   #24
Stigg
High-roller
 
Stigg's Avatar
 
Join Date: Aug 2010
Location: Other side of the Universe.
Posts: 2,060
Reputation: 112
Default Re: Plugin development guide

Great tutorial Kyosaur, very informative, will come in very handy. Thanks.
__________________

Peace...

Stigg is offline   Reply With Quote
Old 09/11/2011, 07:40 PM   #25
Kyosaur
High-roller
 
Kyosaur's Avatar
 
Join Date: Mar 2008
Location: USA - California
Posts: 1,014
Reputation: 330
Default Re: Plugin development guide

Update: I added a few things to the guide.
  • ProcessTick example. I wasnt sure where to fit it in so i just added it to the completed plugin source file in the "Closing" section.
  • An Include file for the plugin. I somehow forgot this when writing the guide. I added the file to the closing section as well. Not sure if i should add a section on includes themselves.
  • A callback hook example.
Kyosaur is offline   Reply With Quote
Old 09/11/2011, 07:48 PM   #26
MicroD
Gangsta
 
MicroD's Avatar
 
Join Date: Sep 2010
Posts: 545
Reputation: 24
Default Re: Plugin development guide

Nice tutorial this helped me a lot. What you think about Client-Side plugin? Please make tutorial for that
MicroD is offline   Reply With Quote
Old 09/11/2011, 08:01 PM   #27
Kyosaur
High-roller
 
Kyosaur's Avatar
 
Join Date: Mar 2008
Location: USA - California
Posts: 1,014
Reputation: 330
Default Re: Plugin development guide

Quote:
Originally Posted by MicroD View Post
Nice tutorial this helped me a lot. What you think about Client-Side plugin? Please make tutorial for that
You want me to add a section explaining the WIN32 API and networking? There are TONS of places that already has this information, and explain it really well (better than i ever could). If there was a client sided plugin architecture like Y_Less has suggested, i'd gladly add information about it to this article, as that's something relating to plugins rather then standard C/++.
Kyosaur is offline   Reply With Quote
Old 11/11/2011, 02:51 PM   #28
GangsTa_
High-roller
 
GangsTa_'s Avatar
 
Join Date: May 2010
Location: Republic of Moldova
Posts: 1,133
Reputation: 51
Default Re: Plugin development guide

Can you give us a program to "decompile" .dll files?
__________________
i5-5200U @ 2.6 GHz
GTX 950M 2GB GDDR3 128-bit
8,00GB DDR3 RAM
128GB SSD, 1TB 5400RPM HDD
Windows 10 Pro x64
GangsTa_ is offline   Reply With Quote
Old 11/11/2011, 03:04 PM   #29
Gamer_Z
High-roller
 
Gamer_Z's Avatar
 
Join Date: Jun 2009
Location: Eindhoven, NL
Posts: 3,607
Reputation: 1360
Default Re: Plugin development guide

Quote:
Originally Posted by GangsTa_ View Post
Can you give us a program to "decompile" .dll files?
You won't be able to decompile working source files, dll files can be ANY language, c++ , D C# VB, pascal, etc...
Gamer_Z is online now   Reply With Quote
Old 11/11/2011, 03:05 PM   #30
Kyosaur
High-roller
 
Kyosaur's Avatar
 
Join Date: Mar 2008
Location: USA - California
Posts: 1,014
Reputation: 330
Default Re: Plugin development guide

Quote:
Originally Posted by GangsTa_ View Post
Can you give us a program to "decompile" .dll files?
No, and im not even sure it is possible to even do so. Even if it was possible to decompile a DLL file, you'd be FAR better looking at a legitimate source file, which every plugin is required to come with.
Kyosaur is offline   Reply With Quote
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


Similar Threads
Thread Thread Starter Forum Replies Last Post
SA-MP 0.3c in development Kalcor News and Updates 889 19/09/2014 04:39 PM
[Question] Plugin Load Failed : Plugin Does not conform to architecture. Gamer_Z Plugin Development 2 09/06/2011 06:42 AM
0.3b Development bar gone WackoX General 94 02/08/2010 10:17 PM
A guide to install Jacob's IRC plugin? Celson Server Support 5 09/06/2009 07:06 AM


All times are GMT. The time now is 11:42 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.