Hi folks
In this post I want to show you some tools that are quite kewl for coding with Sourcemod in Sourcepawn.
So let’s start ! The first important thing is the texteditor in which you write your code and this is an important point ! You need especially an editor with syntax highlighting. Without it you’ll get soon crazy because this is no good workflow !
But as you should know there aren’t not many editor with an syntax highlighter just for Sourcepawn. There is only one IDE which was made for this. It’s called the “Pawn Studio” but it isn’t developed anymore and crashing always. I name it here just for completeness !
I prefer a texteditor called simply “e”. It has highlighting for lots of languages build in and is very tinyand fast
There are so many editor on the market that you have to know by yourself what you want to use. If you have a editor with highlighter and you just don’t know what language to use just use “C” or better “C++”
Extremly helpfull is this threat in the forums of the Allied Mods: http://forums.alliedmods.net/showthread.php?t=79277
So what do we need else ? Yeah, the Sourcemod compiler. You can upload single file projets to the web (http://www.sourcemod.net/compiler.php) or when you build up huge projects with includes, own forwards and so on you better download the latest official version of Sourcemod and extract the scripting directory.
You need 2 files an one directory. The directory is of course called “include”. You need this files that the compiler knows what functions your scripts are using and what to do with them. The two important files are “spcomp” und “compiler.exe”. On windows I had to rename the “spcomp” file to “spcomp.exe” and now when you put your files into the directory with this 3 parts and dopple click “compile.exe” it will translate your code to binaries for Sourcemod.
Also were helpfull is a local or remote (is not quite important what of thoses 2) testserver. It’s NOT kewl when you test on of your ne scripts in alpha status and the server will crash because of an broken handle or a memory leak. People hate this !
I’m not going to explain here how to set an an server for CS:S or any other mod. There are hundrets of tutorials all over the web.
Also the Steam forums are quite usefull.
So I hope I delivered you a little insight into a Sourcepawn coding enviroment. I think this is the basic for a successfull project if you plan something like that.
P.S. Planning is also very important ! You cant’t start a project just with “husch husch”. You have to make a little plan
0 Responses
Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.