[tweak] Compile plugins by double click
1 Attachment(s)
Purpose:
This allows you to compile .sp files by double click, offline. Installation: 1. Download stand-alone (offline) compiler and unpack it to convenient folder, like "d:\dev\SourceMod" where it'll be untoched. 2. Unpack archive, attached below. 3. Right click on file "SP_Assoc.cmd" => choose "Edit", set correct path to spcomp.exe in this line: Code:
set SPCompPath=d:\dev\SourceMod\addons\sourcemod\scripting\spcomp.exe4. Right click on file "SP_Assoc.cmd" => choose "Run as Administrator". My batch file will install for you required registry entries. Now, you are fine. How to use: Just double click on .sp file. Console window will appear for ~2 sec if compilation is success. You'll have enough time to read "warnings". If compilation is failed, console window will be set in pause. P.S. Also, see notice: - in post #3 about Notepad++ / Akelpad integration. - in post #10 about Sublime Text integration. |
Re: [tweak] Compile plugins by double click
Seems very useful, thanks!
|
Re: [tweak] Compile plugins by double click
You are welcome.
Using above tweak you can also compile plugins directly from AkelPad or Notepad++ editor. That requires a little adjustment: For AkelPad: Main menu -> Options -> Settings -> General -> Execute -> "Command" field, enter: Code:
rundll32.exe shell32,ShellExec_RunDLL "%f"Code:
%dFor Notepad++: Press F5, enter in field: Code:
rundll32.exe shell32,ShellExec_RunDLL "$(FULL_CURRENT_PATH)"Now, you can run compilation on Ctrl + F5 hotkey from N++. |
Re: [tweak] Compile plugins by double click
Quote:
|
Re: [tweak] Compile plugins by double click
Quote:
N++ + Autocompletion/highlight + hotkey compilation + ftp uploader + autoreload + good theme => you are in chocolate :) P.S. Or you mean compile C++ in N++ ? |
Re: [tweak] Compile plugins by double click
Quote:
|
Re: [tweak] Compile plugins by double click
Updated archive in 1st post to set current directory (required by Notepad++).
|
Re: [tweak] Compile plugins by double click
Windows Drag and Drop. Drag the .sma file onto "compile.exe". Look in the compiled folder for the output .amxx file. Compiling All Plugins. Double click compile.exe to compile all plugins into the compiled folder.For More Details..
|
Re: [tweak] Compile plugins by double click
SteveSmith10, what is a goal of your post?
Are you asking about adding amx plugins support to double-click tweak? |
Re: [tweak] Compile plugins by double click
Any chance of a Sublime Text 3 compiler?
Also thanks for the double-click compile thing. I'm gonna spread this around as this is really useful. |
Re: [tweak] Compile plugins by double click
Hi, 404UNF!
Thank you for interest. Quote:
Tools -> Build System -> New Build System ... Code:
{Building process: Open any .sp file Select Tools -> Build System -> SourceMod Ctrl + B Next time it should remember it. Otherwise: e.g. do like in this topic: https://stackoverflow.com/questions/...file-extension (actually, I never worked with Sublime yet) Quote:
Current Win8+ support is partial. Also, I am going to add automatic custom include files support. |
Re: [tweak] Compile plugins by double click
Excellent! Thanks for all the info :D
|
Re: [tweak] Compile plugins by double click
Thanks for sharing!
|
Re: [tweak] Compile plugins by double click
Is it possible to add flags to spcomp when using this? https://wiki.alliedmods.net/Spcomp_switches
Thanks in advance |
Re: [tweak] Compile plugins by double click
What exact argument do you want to append to?
Most easy way for you would be open Registry Editor, navigate to: Quote:
Code:
\spcomp.exe" "%1" |
Re: [tweak] Compile plugins by double click
excuse my ignorance what is the difference between compile and spcomp?
|
Re: [tweak] Compile plugins by double click
I think, you found inappropriate topic to ask such question.
AFAIK, compiler.exe is a tool intended for batch compiling all sp files located next to him. Just double-click it, and you found all smx in "compiled" subfolder. spcomp.exe is a tool responsible for compiling process with ability to accept additional options via command line:
Spoiler
|
Re: [tweak] Compile plugins by double click
ok thanks for the explanation Dragokas
|
| All times are GMT -4. The time now is 22:28. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.