Plugin-autoreload
1 Attachment(s)
Thought I'd share this. Simple, trivial plugin but makes life easier while developing/debugging an SM plugin.
When the attached plugin is loaded, it creates a list of all files and timestamps in addons/sourcemod/plugins (ignoring if they are loaded or not) , excluding itself. Every 2 seconds, it checks if one of the timestamps has changed and fires "sm plugins reload %s" on the respective plugin. |
Re: Plugin-autoreload
That's a neat idea :)
I could imagine making an extension for this, to replace the timer with something that watches the folder and reloads plugins instantly :) That should become part of sourcemod then. |
Re: Plugin-autoreload
Nice work!
Thanks you. |
Re: Plugin-autoreload
Wow, I wish I'd found this sooner :up:
+rep |
Re: Plugin-autoreload
I recently started with SourcePawn and quickly found it annoying to compile, upload, and reload when debugging. Your plugin looks useful, but since it seems I'm not the only person who finds the process tedious I would like to share a small batch file I put together that makes my life so much easier.
You can just drag a .sp file ontop of this batch file and it will do the rest. However, I have Notepad++ with SourcePawn highlighting setup to run it when I hit Ctrl + F7. This makes debugging/testing painless. It even has a bit of error checking so it stops the process if the plugin fails to compile which lets you see the error messages returned by the SourcePawn compiler. You can get the clircon tool that is used to reload the plugin from this thread. Code:
REM USEAGE <thisfile>.bat "Path\to\plugin.sp" |
Re: Plugin-autoreload
Quote:
|
Re: Plugin-autoreload
Quote:
He is saying that when ever a plugin is edited and uploaded the extension will notice it and reload it instantly with out map change or putting in any commands. |
Re: Plugin-autoreload
Quote:
I'm sorry. |
All times are GMT -4. The time now is 03:26. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.