Scripting Editors
From SA-MP Wiki
There are currently multiple editors for pawn code around - ExtremeStudio, PawnSciTE, Pawno, SA-MP Editor, and so on. But which one should you use to create your script, or edit others? This page will discuss the benefits and the downsides of the available editors.
Contents |
ExtremeStudio
ExtremeStudio is an advanced full-featured IDE for PAWN specially developed for SAMP, by Ahmad45123
Benefits
- Amazing speed and efficiency, courtesy of the awesome Scintilla, Used in NP++.
- A fast regex based parser that parses your script and all its contents to provide advanced auto-complete and syntax highlighting.
(It does take around 2-5 secs for first parse in huge scripts to get ALL info from includes and such and then all sub-parses are real quick)
- Support for PAWNDoc, that is widely used in YSI, to be shown in tooltips while typing.
- Customizable syntax highlighting.
- Offers in-app config editor and compiler args settings.
- Navigate to definition of enum, function or variable using CTRL+Click.
- Advanced Project Explorer that offers amazing control over files.
- Project Explorer, Shows each and every bit of the script with ability to goto it by double clicking.
- Object explorer that provides the whole script in front of you for easier navigation.
- And much much more, try it out yourself.
Downsides
- There is no ability to theme the app itself. However, this is currently being fixed by recoding the app in WPF and using MahApps.
The recode is being done in the branch newes.
Download
ExtremeStudio can be downloaded from here.
Forum Post
Check our our forum thread.
Pawno
Pawno is most probably the most common editor around. It's a very basic editor, which offers exactly what most people need. Features like syntax highlighting, basic run-options and a bar which shows the included functions make pawno the perfect editor for people that create small gamemodes or filterscripts, and people that just want to edit some little things in an existing gamemode. Pawno is created by spookie
Benefits
- It's compact in size, low memory use.
- Perfect for smaller scripts.
- Function-list next to your script.
- Packed with the SA-MP Windows Server.
Downsides
- It's unclearly for big scripts, hard to find specific things.
- The editor is very basic.
- You have to have an Administrator account on Windows Vista for it to run
Conclusion
Pawno is perfect for the smaller scripts around, you should use another editor when your gamemode/filterscript counts more than 2000 lines. It's also the editor for people with slower computers, since the performance is a big plus here.
Download
Pawno is included with the SA-MP Windows Server, which can be downloaded here.
SA-MP Editor
The second editor is SA-MP Editor, a fairly new editor which just arrived out of closed-beta. SA-MP Editor is a feature-rich pawn-editor, with features like code collapsing, advanced compile options, project support, tabs and of course IntelliSense®. Combine this with info tips, syntax highlighting and options to improve performance, and you have an editor for large gamemodes and filterscripts. SA-MP Editor was created by Peter.
Benefits
- Native as custom (your-) functions.
- Project support.
- Open multiple files with tabs.
- More advanced compile options.
Downsides
- Odd memory use: one moment it uses 34MB's, the other 3MB.
- Could be slow for older computers.
- It's still in beta.
- You'll need the .NET Framework 2 for it to run.
Conclusion
SA-MP Editor is designed for creating large scripts/gamemodes, and has features like code-collapsing and IntelliSense. The strange memory use and the fact that it's still in beta are downsides, because errors may occur.
Download
You can download the SA-MP Editor Here (Works with 0.3)
PawnoX
PawnoX is, as the name might tell you, an improved version over the original pawno program. With features like more advanced syntax highlighting, a special compile-frame instead of a dialog, and compile options including a restart-function for the SA-MP server. It is designed for people that want features as well as performance. Pawnox has been made by RedShirt.
Benefits
- A compact and memory-efficient editor.
- Better compile options then pawno.
- Improved syntax highlighting.
- More buttons on the main toolbar.
Downsides
- The development for new features may seem a little slow.
- Not enough improvements to be a good concurrent for pawno yet.
Conclusion
PawnoX is a very nice editor, but doesn't have enough new features yet to be a real concurrent for pawno. Features like autolist are upcoming though, so things might change in the near feature.
Download
PawnoX can be downloaded here.
Official Quincy Editor
It is possible to alter the official Quincy editor for the pawn language to use the SA:MP compiler. Quincy is both stable and compact, while retaining many advanced features that set it aside from Pawno (especially the fact that it can open theoretically infinite sized files without crashing or slowing down).
Benefits
- Compact, memory-efficient.
- Much better syntax highlighting than Pawno.
- More features, including code beautifier and variable watcher.
- Cross-platform.
Downsides
- Your source files have to be renamed to .p or .pawn.
- Some features seem to not work.
- Lacks proper syntax highlighting for numbers and functions.
Download
Downloads can be found here
Setup Instructions
- Install as normal.
- Go to the location of the SA:MP Pawno editor (download the SA:MP server package to get this).
- Create a new folder within the Pawno directory and copy everything into it (including the 'include' folder).
- Create a folder named 'bin' within the folder you just copied everything into.
- Move everything apart from the includes folder into the 'bin' folder.
- You should now have a folder containing an 'include' and a 'bin' folder. The 'bin' folder should contain the Pawno compiler and related files and the 'includes' folder should contain the appropriate includes.
- Open the Quincy editor.
- Go to Options in the Tools menu.
- Ensure the Build tab is selected.
- Change the compiler path to the directory you made that contains the 'include' and 'bin' folders.
- Click OK.
- If any errors appear, ensure you followed the instructions exactly.
- Rename your source files to .p and enjoy!
PawnSciTE
PawnSciTE is a very powerful, yet easy to use editor built around SciTE, but is completely standalone. It comes with a simple installer and settings application and is still actively developed by Darkimmortal.
Benefits
- Full syntax highlighting including function highlighting for all SA:MP functions.
- Function Parameter Tooltips
- Local Server Restarting - Via changemode/reloadfs (Recommended), via GMX or via full restart.
- Pawno compiler in a sidebar with jump to error!
- JumpTo Callbacks and JumpTo Functions.
- Automatic FTP Uploads (Requires Windows XP / Vista).
- Remote Server Restarting for GTAHost servers.
- Code Folding.
- User Friendly Settings Interface.
- Tabbed Interface - Up to 10 files can be open per instance.
- Unlimited Buffer for lower lag on large scripts.
- Project support.
- Code Completion
Downsides
- No native function list.
Download Support
SAM[P]CE
San Andreas Multiplayer [Pawn] Code Editor is a new editor developed by Skaty. This editor has many features and they can also be expanded through the use of plugins.
Benefits
- Syntax highlighting
- AutoComplete & Call tips
- Function Explorer (includes & opened files)
- MDI (Multiple Documents Interface)
- Error listing
- Expand functionality using plugins
Downsides
- It's still in beta.
- You'll need the .NET Framework 3.5 for it to run.
Download
You can download the SAM[P]CE Here (Works with 0.3)
Pawn Studio
Pawn Studio is an enhanced IDE for Pawn. It isn't specialy build for SA-MP but it has build-in templates in it made for SA-MP.
Benefits
- Syntax highlighting
- Code parsing
- Auto-Indentation
- Auto-Completition
- Call Tips
- Doxygen parsing
Downsides
- Very bright syntax highlighting (Unreadable for some people)
- You need to specify the compiler (So you need pawno)
- You can't hide the ToolPanels
Download
QuickPawn
Current Version: 2.1 QuickPawn is a Pawn IDE developed by xXedixXx in Java (making it multi-platform). This IDE has both a compiler for Linux and Windows, and works in Linux, Mac and Windows.
Benefits
- Syntax highlighting
- AutoComplete
- Dynamically lists functions in an interactive tree
- Multi-platform
- Compiler (both Windows and Linux)
- Developed in Java for portability
- Insert -> Code options
Downsides
- The Pawn compiler needs to be installed for Linux (included in download)
Download
You can download QuickPawn Here
Plugins for other editors
Notepad++ Plugin
DracoBlue made a special plugin for the notepad++ editor, which can be downloaded on his website. With features like Codefolding, Autocomplete and syntax highlighting, it's an extention for people who are used to Notepad++. Compiling options are currently not supported by default, and setting it up might be hard for some less-experienced people.
Mauzen made an API generator for Notepad++ as well. It's just a simple java script that includes all definitions, functions, macros, and etc then exports them all to Notepad++ language XMLs.
Downloads:
Sublime Text Plugin
Sublime Text is a program which allows you to program in many languages, including PAWN. It is free to download and includes a lot of features, you will automatically pursue these features once you are up and running. The program may take some time getting use to but it's an easier way of scripting for some people. You can try out the program for free by clicking on the first download link.
Macluawn made a tutorial based on PAWN for SA-MP in Sublime Text 2 which is a straight forward guide on how to download, install and make use to the full advantage of this scripting machine. You can check out this topic by hitting the second download link.
To get the full benefit of Sublime Text, you may wish to also download the Sublime Autocompletions developed by Southclaw. The setup tutorial for the autocompletions is offered there, but make sure you have Sublime downloaded from the first tutorial before this! You can check out his topic to see what libraries have been autocompleted already, which is the third download link.
Downloads & Links:
- Download Sublime Text
- PAWNO & SA-MP Installation Tutorial by Macluawn
- Sublime SA-MP function's autocompletions by Southclaw
Scripting Machine
Scripting Machine is an advanced smart IDE for pawn, specialy build for SA-MP. Developed by The_Chaoz.
Benefits
- Syntax highlighting
- Code folding & parsing
- Unlimited tabs (one tab per file)
- Smart compiler (Show errors/warnings on a list and you can jump to the selected error/warning line)
- All functions detected and highlighted (from native or custom includes, and the current file)
- Auto-Indentation
- Detect variables/arrays for Auto-Completition
- Auto-Completition
- Call Tips
- Restore files on crash
- Custom syntax highlight colors
- 2 Color pickers (primary and secondary)
- Information about skins, vehicles, sprites, etc.
- Dialog maker (with a real previewer)
- Areas selector
- Object & vehicle converter
- User friendly interface
- Multi-language (English, Español, Português, Deutsch)
- Much more (Read a full description at project's homepage
Downsides
- Takes some seconds to load the program
- It may be a bit slow sometimes when it's used to work with +50k lines file.
Download
- Click here.