Raised This Month: $ Target: $400
 0% 

Compile plugins easily in Notepad++


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ThatOneGuy
Veteran Member
Join Date: Jul 2012
Location: Oregon, USA
Old 05-29-2015 , 23:02   Re: Compile plugins easily in Notepad++
Reply With Quote #1

Quote:
Originally Posted by aexi0n View Post
Finally no more "YourPlugin.sp is already compiled."
You're welcome! That shit was annoying, so I had to script it.

Quote:
Originally Posted by Powerlord View Post
I think Bacardi might have had a guide similar to this one somewhere in the SourcePawn Syntax Highlighting for Notepad++ thread. Wherever that thread went.
He does. That is where I originally got mine, actually, which matched the OP code. Then, I tweaked it to do a bit more.

EDIT: Here is my modified script, tweaking it a little based on KissLick's code so that it compiles from any location.
Code:
set COMPILER = C:\path_to_my_compiler\spcomp.exe
set COMPILE_FOLDER = C:\some_destination_folder\compiled
NPP_SAVE
cd "$(CURRENT_DIRECTORY)"
cmd /q /c del /q "$(CURRENT_DIRECTORY)\$(NAME_PART).smx"
cmd /q /c del /q "$(COMPILE_FOLDER)\$(NAME_PART).smx"
$(COMPILER) "$(FULL_CURRENT_PATH)" -o"$(CURRENT_DIRECTORY)\$(NAME_PART).smx"
cmd /q /c copy "$(FULL_CURRENT_PATH)" "$(COMPILE_FOLDER)\$(NAME_PART).smx"
Explanation of components for your own tweaking:
Spoiler
__________________

Last edited by ThatOneGuy; 05-30-2015 at 00:49.
ThatOneGuy 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 18:28.


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