¥ Microsoft Word ¥ Posted June 7, 2017 Share Posted June 7, 2017 So, I was wondering if someone would like to teach me some sourcepawn over the summer or maybe link a tutorial or video. Thanks, Microsoft Word Quote Link to comment Share on other sites More sharing options...
Burnt Posted June 7, 2017 Share Posted June 7, 2017 Theres absolutely zero videos out there for sourcepawn that are good to my knowledge, however you can read the sourcemod wiki to learn quite a bit. Quote Link to comment Share on other sites More sharing options...
Pyrrhic Posted June 7, 2017 Share Posted June 7, 2017 I learned Java in school and, since the languages are pretty similar syntax wise, was able to largely transfer that knowledge over. Just have to learn a new API (what methods are available). Quote Link to comment Share on other sites More sharing options...
3V0Lu710N Posted June 7, 2017 Share Posted June 7, 2017 Il give you some pointers on how to get started on learning and also some tools that i use. If you have no prior experience with programming/scripting i advise to read up on general programming guides before moving on to sourcepawn. https://wiki.alliedm..._SourcePawn_1.7 (The most up to date official guide on getting started on sourcepawn, includes non-programmer Introduction) https://wiki.alliedm...urceMod_Plugins (Writing your first plugin guide) https://wiki.alliedm...ceMod_Scripting (Articles for specific basic/advanced api) https://forums.allie...splay.php?f=112 (Snippets and Tutorials forum, where you can look at other people's code and learn from it) https://forums.allie...splay.php?f=107 (General scripting forum) https://sm.alliedmods.net/new-api/ (Sourcemod API Reference) You will need a good editor, i use Sublime Text but the full version requires a license, Notepad++ is a solid choice if you don't wanna go with anything else. Notepad++ syntax highliting and autocomplete based on sourcemod 1.7 For sublime i use SourcePawn Completions (autocomplete, build/compile) & SourcePawn Syntax Highlighting These next 2 editors were made by sourcepawn scripters specifically to write plugins, ive never used them so i can't guarantee their quality. BasicPawn SPEdit Server mangement CSGOSL I recommend running a local dedicated server to have a place to practise with scripts without having to use someone else's server. CSGOSL is a dedicated server launcher with a full gui for configuration, also comes with the latest sourcemod build installed which you can also use to compile plugins, includes server autoupdates etc. Pro tip: trial and error learning is your friend, practise will teach you more than anything else. 7 Quote Link to comment Share on other sites More sharing options...
Hydranix_ Posted June 7, 2017 Share Posted June 7, 2017 Resources for learning sourcepawn, as compared to common general scripting and programming languages, for all intents and purposes, suck majorly. evo linked pretty much the best of the best and you won't find much better for sourcepawn resources. After you get setup like evo has laid out, and If you have prior experience scripting (outside of shell scripting), or programming languages, you'll find just reading and slightly modifying source code of other people's scripts to be the fastest way to learn. This is especially true for plugins that you've played with in game and that directly modify the game mechanics. Avoid the most poplar 10000+ lines scripts, they'll be so segmented that you probably won't be able to follow yet. Also, when reading source code of sourcemod plugins, the syntax is very loose, sorta like C or Java, meaning that no two scripts are guaranteed to look similar. To fix this, you can use tools meant to format C/C++ code, as they will work fine on sourcepawn code as well. clang-format is what I've used in the past without trouble. Quote Link to comment Share on other sites More sharing options...
Hedgemon Posted June 8, 2017 Share Posted June 8, 2017 (edited) This is your bread and butter hint: the video uses old syntax so you will need to learn some syntax changes I like spedit for code editing Edited June 8, 2017 by Sungod #ProPAIN Quote Link to comment Share on other sites More sharing options...
Jxhn Posted June 11, 2017 Share Posted June 11, 2017 Il give you some pointers I've wanted to learn this for a while and I wouldn't be able to learn it by reading, I'd have to do a hands on with somebody helping me. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.