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

I WANT TO BE A PLUGIN MAKER!


Post New Thread Reply   
 
Thread Tools Display Modes
strontiumdog
Veteran Member
Join Date: Jan 2007
Location: BC, Canada
Old 12-02-2008 , 13:28   Re: I WANT TO BE A PLUGIN MAKER!
Reply With Quote #11

1. Have a plan. Decide what kind of plugin you want to write. If you have no direction, then the learning curve will be steeper.

2. Look through other people's source code. Study how they did it. There are some truly great programmers here who will have code in some of their plugins that will help you create your's.

3. Read, read, read. Read the SourceMod wikis, the Scripting forum, this forum, the VALVe wikis (e.g. http://developer.valvesoftware.com/w...egory:Entities) for suggestions and help.

4. New programmers often forget fundementals like knowing the different types of variables, leaving out brackets etc, so be prepared for a lot of frustrating moments. Gradually these fade away as your familiarity with the language increases.

SourcePawn is a great language to learn. It follows the basic structure of other langauges like C and PHP and can be a great stepping stone to learning these languages, too.
__________________
Plugins | TheVille
Zombie Mod for DoD:S - l4dod.theville.org
strontiumdog is offline
CrimsonGT
Veteran Member
Join Date: Oct 2007
Location: Gainesville, FL
Old 12-02-2008 , 21:57   Re: I WANT TO BE A PLUGIN MAKER!
Reply With Quote #12

Quote:
Originally Posted by strontiumdog View Post
4. New programmers often forget fundementals like knowing the different types of variables, leaving out brackets etc, so be prepared for a lot of frustrating moments. Gradually these fade away as your familiarity with the language increases.
I know myself, the SM Developers, and a lot of SM plugin writers still leave out brackets and have some very frustrating times scanning over 2000 line plugins trying to figure out why Only suggestion is compile A LOT. I wrote a plugin once that was 2800 lines long, and since it was nothing advanced, I just kept writing. When I finally decided to compile at around 1200 lines, I had something like 39 errors just from misstypes, missing brackets, etc. The WORST is putting a ';' after an if statement.
CrimsonGT is offline
recon0
Veteran Member
Join Date: Sep 2007
Location: US
Old 12-02-2008 , 22:48   Re: I WANT TO BE A PLUGIN MAKER!
Reply With Quote #13

Quote:
Originally Posted by CrimsonGT View Post
I know myself, the SM Developers, and a lot of SM plugin writers still leave out brackets and have some very frustrating times scanning over 2000 line plugins trying to figure out why Only suggestion is compile A LOT. I wrote a plugin once that was 2800 lines long, and since it was nothing advanced, I just kept writing. When I finally decided to compile at around 1200 lines, I had something like 39 errors just from misstypes, missing brackets, etc. The WORST is putting a ';' after an if statement.
No... The worst is writing a menu system in C++ and wondering why

Code:
if (selection = "1")
is always getting triggered even when selection != "1".

Then you remember... Oh... Shit... It's ==
__________________
recon0 is offline
C.Falcon
Junior Member
Join Date: Dec 2008
Old 12-15-2008 , 15:36   Re: I WANT TO BE A PLUGIN MAKER!
Reply With Quote #14

Actually, coming from a guy who has a decent programming background, i am finding it difficult to jump into pawn scripting.

The wiki's are great, but i find that they do not always have enough information.

The best way to learn is to set up your own local server and tear apart other people's code on it. Basically, i take some one's source and start editing it and adding / removing lines, compile, and run to learn what they do.

(Just don't steal some one's hard work, that will just make you a jack ass)

Also the forums are you friend! Use them wisely.
C.Falcon is offline
L. Duke
Veteran Member
Join Date: Apr 2005
Location: Walla Walla
Old 12-15-2008 , 17:18   Re: I WANT TO BE A PLUGIN MAKER!
Reply With Quote #15

Quote:
I WANT TO BE A PLUGIN MAKER!
I WANT TO BE A SIDE OF BACON!
__________________
"Good grammar is essential, Robin."
- Batman
L. Duke is offline
DontWannaName
Veteran Member
Join Date: Jun 2007
Location: VALVe Land, WA
Old 12-15-2008 , 17:40   Re: I WANT TO BE A PLUGIN MAKER!
Reply With Quote #16

MMMMM BACON!!! GIMMEE
__________________

DontWannaName is offline
bman87
Senior Member
Join Date: Dec 2008
Location: Michigan
Old 12-17-2008 , 08:35   Re: I WANT TO BE A PLUGIN MAKER!
Reply With Quote #17

I am a decent programmer. I know C# .NET, Java, and a little PHP/HTML.
I do not know C++ or C yet. (On my agenda for my bachelors in CS )

What IDE do you use for SourcePawn? I have been badly spoiled by MVS-2008 and its intelliSense..
bman87 is offline
recon0
Veteran Member
Join Date: Sep 2007
Location: US
Old 12-17-2008 , 16:51   Re: I WANT TO BE A PLUGIN MAKER!
Reply With Quote #18

Quote:
Originally Posted by bman87 View Post
I am a decent programmer. I know C# .NET, Java, and a little PHP/HTML.
I do not know C++ or C yet. (On my agenda for my bachelors in CS )

What IDE do you use for SourcePawn? I have been badly spoiled by MVS-2008 and its intelliSense..
PawnStudio

If you don't know a language or library by heart, having a good IDE is important.
__________________
recon0 is offline
CrimsonGT
Veteran Member
Join Date: Oct 2007
Location: Gainesville, FL
Old 12-17-2008 , 17:40   Re: I WANT TO BE A PLUGIN MAKER!
Reply With Quote #19

Quote:
Originally Posted by L. Duke
I WANT TO BE A SIDE OF BACON!
That is sig material right there.
__________________
CrimsonGT is offline
strontiumdog
Veteran Member
Join Date: Jan 2007
Location: BC, Canada
Old 12-18-2008 , 00:41   Re: I WANT TO BE A PLUGIN MAKER!
Reply With Quote #20

I use Notepad++ !
__________________
Plugins | TheVille
Zombie Mod for DoD:S - l4dod.theville.org
strontiumdog 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 08:39.


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