Raised This Month: $18 Target: $400
 4% 

What is your workflow when developing plugins?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Cerium
Member
Join Date: Dec 2013
Old 01-01-2014 , 12:40   What is your workflow when developing plugins?
Reply With Quote #1

Hi

I have just started to learn how to make plugins using SourcePawn. Currently I just write and compile plugins and upload them to one of my online servers, which somethimes have players. I don't feel like this is the most productive way of doing it. What is the common workflow when making plugins?
__________________
Cerium is offline
friagram
Veteran Member
Join Date: Sep 2012
Location: Silicon Valley
Old 01-01-2014 , 12:59   Re: What is your workflow when developing plugins?
Reply With Quote #2

Sounds about right. You could run a local srcds instance to test locally if you wanted to.
__________________
Profile - Plugins
Add me on steam if you are seeking sp/map/model commissions.
friagram is offline
Alienmario
Senior Member
Join Date: Aug 2013
Old 01-01-2014 , 13:22   Re: What is your workflow when developing plugins?
Reply With Quote #3

I use notepad++ with sourcepawn syntax highlighting and auto-completion.
Also debugging is fully automated on my local server. To do that, I use this notepad++ script to compile with keyboard shortcut and smx auto-reloader . Hope it helps.
Alienmario is offline
NIGathan
Senior Member
Join Date: Aug 2011
Location: /dev/null
Old 01-01-2014 , 13:32   Re: What is your workflow when developing plugins?
Reply With Quote #4

I write my plugins on my server itself with WinSCP's built in editor. Then I just use the addons/sourcemod/scripting/compile.sh script to compile it. And mv it over to the plugins dir.
NIGathan is offline
randunel
Member
Join Date: Mar 2007
Old 01-01-2014 , 13:48   Re: What is your workflow when developing plugins?
Reply With Quote #5

vim on laptop with
Code:
:!./spcomp myplugin.sp -oplugins/myplugin.smx
and a local server with bots
randunel is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 01-01-2014 , 14:29   Re: What is your workflow when developing plugins?
Reply With Quote #6

That depends. If it's a public plugin, the first thing I do is start a new GitHub repository for it.

Then I copy the plugin_template.sp from my sourcemod-snippets repository and start working on the new plugin in NotePad++.

I do testing primarily on my test server (mentioned in my signature) especially for game modes that are arena-based... said test server currently costs me around $10/month.
__________________
Am I back? Well, we'll see.
Powerlord is offline
Dr. Greg House
Professional Troll,
Part-Time Asshole
Join Date: Jun 2010
Old 01-01-2014 , 15:42   Re: What is your workflow when developing plugins?
Reply With Quote #7

That depends on the scale of the plugin.
Mostly I just start right ahead (or with a small outline on paper) as most plugins are relatively small.
Then if they are roughly finished but I see more potential in it which needs more experimentation I start a repository and use svn to keep track.
I use PawnStudio with a customized compile script which is a C# program which utilizes WinSCP to open up a small dialog after successful compilation which then lets me either select existing or create new remote upload targets.

Example:
Right now I am working on a L4D2 plugin which spawns self-evading gifts. I finished the rough outline pretty quickly but then realized that I could try and use A* for better pathfinding, although it is quite experimental and maybe performance-costly due to not having a grid to begin with and having to use tracehulls. So I created a svn repo and used what I have for the initial commit.
__________________
Santa or Satan?

Watch out when you're paying people for private requests! Most stuff already exists and you can hardly assess the quality of what you'll get, and if it's worth the money.

Last edited by Dr. Greg House; 01-01-2014 at 15:46.
Dr. Greg House is offline
necavi
Veteran Member
Join Date: Sep 2010
Old 01-01-2014 , 17:59   Re: What is your workflow when developing plugins?
Reply With Quote #8

I usually create a git repo for the plugin first, then create a jenkins project with an after build task of uploading the latest version to my test server and restarting it. Then I simply save + commit, I usually use a mixture of PawnStudio and Notepad++ for the actual editing.
necavi is offline
pheadxdll
AlliedModders Donor
Join Date: Jun 2008
Old 01-01-2014 , 18:22   Re: What is your workflow when developing plugins?
Reply With Quote #9

Quote:
Originally Posted by Dr. Greg House View Post
I use PawnStudio with a customized compile script..
Save yourself countless headaches and avoid PawnStudio like the plague. I know at least 3 ways to make it crash outright, switching between tabs is sketchy, it gets bogged down on large source files, and hasn't been updated in years so there's little chance of anything getting fixed. Notepad++, vi, sublime are all superior alternatives.
__________________

Last edited by pheadxdll; 01-01-2014 at 18:29.
pheadxdll is offline
necavi
Veteran Member
Join Date: Sep 2010
Old 01-01-2014 , 20:20   Re: What is your workflow when developing plugins?
Reply With Quote #10

The only reason I still use PawnStudio at all is the autocomplete, with the way a lot of functions are written, especially in larger project, not having to reference docs/include files as frequently is a big help...especially when I don't develop for SourcePawn nearly as much as I used to.
necavi is offline
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

Forum Jump


All times are GMT -4. The time now is 02:10.


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