View Single Post
Author Message
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 10-25-2018 , 00:09   [tweak] Compile plugins by double click
Reply With Quote #1

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.exe
an save.
4. 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.
Attached Files
File Type: zip SP_Assoc.zip (503 Bytes, 235 views)
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
[My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]

Last edited by Dragokas; 04-25-2022 at 11:43. Reason: added notice about Sublime
Dragokas is offline