Raised This Month: $ Target: $400
 0% 

[TUT] Reducing annoyance when testing


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
alerad
Junior Member
Join Date: Mar 2016
Old 10-29-2018 , 22:29   [TUT] Reducing annoyance when testing
Reply With Quote #1

I've just had a good idea, probably someone came up with this already at some point but I thought it would be good to share this.

I'm using a good combo of plugins to make my plugin auto-compile and reload when I hit CTRL+S

Here's the combo in case anyone is interested:

https://forums.alliedmods.net/showthread.php?t=106320 -- Autoreload by Timiditas
http://atom.io -- Atom Text Editor
https://atom.io/packages/on-save -- on-save (plugin)

Once you download and install each of these, create a file named .on-save.json on your projects root directory and add the following config:

Code:
[
  {
    "files": "**/*.sp",
    "command": "C:\\location\\to\\spcomp C:\\location\\to\\plugin.sp -o\"C:\\location\\to\\server\\plugins\""
  }
]
The double bars are to escape inside of the json string.

Hope this helps someone!
alerad is offline
 


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 23:23.


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