AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Snippets and Tutorials (https://forums.alliedmods.net/forumdisplay.php?f=112)
-   -   [tweak] Compile plugins by double click (https://forums.alliedmods.net/showthread.php?t=311594)

Dragokas 01-31-2019 03:46

Re: [tweak] Compile plugins by double click
 
Hi, 404UNF!
Thank you for interest.

Quote:

Any chance of a Sublime Text 3 compiler?
That is easy:

Tools -> Build System -> New Build System ...
Code:

{
        "shell_cmd": "rundll32.exe shell32,ShellExec_RunDLL $file"
}

File -> Save -> SourceMod.sublime-build

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:

Also thanks for the double-click compile thing. I'm gonna spread this around as this is really useful.
Unfortunately, I missed Windows 8+ has file association protection. I will update my script as soon as I have a free time.
Current Win8+ support is partial.
Also, I am going to add automatic custom include files support.

404UserNotFound 02-06-2019 18:02

Re: [tweak] Compile plugins by double click
 
Excellent! Thanks for all the info :D

xFlane 02-07-2019 09:11

Re: [tweak] Compile plugins by double click
 
Thanks for sharing!

xtance 12-17-2019 13:34

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

Dragokas 12-17-2019 15:36

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:

HKCR\sourcepawnfile\shell\open\command
and insert desired argument after this part of line:
Code:

\spcomp.exe" "%1"

user2000 06-07-2020 05:30

Re: [tweak] Compile plugins by double click
 
excuse my ignorance what is the difference between compile and spcomp?

Dragokas 06-07-2020 15:20

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

user2000 06-08-2020 00:47

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.