Raised This Month: $ Target: $400
 0% 

[TOOL] SourceMod: Watcher (auto-compile changed files) (Alpha 0.01)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
floube
SourceMod Donor
Join Date: Jan 2013
Location: Austria
Old 06-14-2014 , 18:34   [TOOL] SourceMod: Watcher (auto-compile changed files) (Alpha 0.01)
Reply With Quote #1

SourceMod: Watcher (auto-compile changed files) (Alpha 0.01)

I worked on a new plugin today and was really tired of always dragging the .sp file on the compiler to get it ready, so I decided to make a tool which does that automatically for me and to share it with you!

It is made in Java 7, so you probably need Java JRE (only if you haven't installed it already).

It should work for all Windows versions since it uses some console commands, I've tested it only on Windows 8.1 though.

Since I made this in a few hours, it is kind of a pre-alpha version, so don't expect it to work perfectly!

Also don't be too shy to post your feedback & suggestions here.

Features:
  • automatically compile changed files (based on modify time)
  • automatically move compiled files to a directory
  • ability to save your configuration
  • handy output textarea
ToDo (if possible):
  • automatically upload to server (via FTP)
  • make compatible for Mac and Linux
Known bugs:
  • throws an error if cfg file is changed incorrectly
  • sometimes has problems with folders (but it doesn't destroy anything!)

Download (via GitHub)
Source Code

Screenshots:
The config/settings dialog:


The main window:


Also outputs compile errors:


Last but not least, the succeeded compilation + file moving:

__________________

Last edited by floube; 06-15-2014 at 17:24.
floube is offline
Mitchell
~lick~
Join Date: Mar 2010
Old 06-16-2014 , 09:50   Re: [TOOL] SourceMod: Watcher (auto-compile changed files) (Alpha 0.01)
Reply With Quote #2

This is awesome. I always get tired of testing that 'one thing' until it's right, and this will help with the anxiety of dragging and dropping all the damn time, especially when i run out of mouse pad . I also love the open source!

Last edited by Mitchell; 06-16-2014 at 09:51.
Mitchell is offline
floube
SourceMod Donor
Join Date: Jan 2013
Location: Austria
Old 06-16-2014 , 11:57   Re: [TOOL] SourceMod: Watcher (auto-compile changed files) (Alpha 0.01)
Reply With Quote #3

Quote:
Originally Posted by Mitchell View Post
This is awesome. I always get tired of testing that 'one thing' until it's right, and this will help with the anxiety of dragging and dropping all the damn time, especially when i run out of mouse pad . I also love the open source!
Lol, never actually ran out of mouse pad, but thanks for the great response

Quote:
Originally Posted by WildCard65 View Post
Couldn't you just use the .dat file (if the os is Windows)
Could have, didn't think about it. But I guess there isn't much of a difference.
__________________
floube is offline
xf117
Senior Member
Join Date: Mar 2010
Location: Russia
Old 06-17-2014 , 00:58   Re: [TOOL] SourceMod: Watcher (auto-compile changed files) (Alpha 0.01)
Reply With Quote #4

Quote:
Originally Posted by Mitchell View Post
This is awesome. I always get tired of testing that 'one thing' until it's right, and this will help with the anxiety of dragging and dropping all the damn time, especially when i run out of mouse pad . I also love the open source!
Isn't it would be easier and more convenient to set up your development environment to compile saved script and then on success also push it in your VCS and send result via ftp?
xf117 is offline
Send a message via ICQ to xf117
Mitchell
~lick~
Join Date: Mar 2010
Old 06-17-2014 , 14:46   Re: [TOOL] SourceMod: Watcher (auto-compile changed files) (Alpha 0.01)
Reply With Quote #5

Quote:
Originally Posted by xf117 View Post
Isn't it would be easier and more convenient to set up your development environment to compile saved script and then on success also push it in your VCS and send result via ftp?
Well my environment was local, and im too lazy to make a batch script that will compile and replace the files in my plugins folder
although uploading to ftp would be nice.
Mitchell is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 06-18-2014 , 13:58   Re: [TOOL] SourceMod: Watcher (auto-compile changed files) (Alpha 0.01)
Reply With Quote #6

Quote:
Originally Posted by xf117 View Post
Isn't it would be easier and more convenient to set up your development environment to compile saved script and then on success also push it in your VCS and send result via ftp?
I don't push every change I do to my VCS. I'm a big fan of save early, save often and its cousin compile early, compile often.

Edit: and even using this policy, PropHunt has still had 209 commits in the master branch since I started working on it a year ago.

Edit 2: 221 commits in the 3.3 branch.

Edit 3: However, if I'm switching computers, unfinished changes will be checked in, which is why new versions are developed in branches and then merged back into master. Also because people pull from my master repo and expect a version that actually works. I will also make changes to the current version in master then merge it back to the current version branch for things like configuration file changes.
__________________
Not currently working on SourceMod plugin development.

Last edited by Powerlord; 06-18-2014 at 14:04.
Powerlord is offline
WildCard65
Veteran Member
Join Date: Aug 2013
Location: Canada
Old 06-16-2014 , 11:28   Re: [TOOL] SourceMod: Watcher (auto-compile changed files) (Alpha 0.01)
Reply With Quote #7

Quote:
Originally Posted by floube View Post
automatically compile changed files (based on modify time)
Couldn't you just use the .dat file (if the os is Windows)

Last edited by WildCard65; 06-16-2014 at 11:29.
WildCard65 is offline
Bubka3
Sir Buzz Killington, Esq.
Join Date: Jan 2010
Location: New York, NY
Old 06-17-2014 , 18:19   Re: [TOOL] SourceMod: Watcher (auto-compile changed files) (Alpha 0.01)
Reply With Quote #8

CTRL + B and I have it outputted to a easy accessible folder, ready for upload. Compile log shows up in the editor.
Bubka3 is offline
Reply



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 09:26.


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