AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting (https://forums.alliedmods.net/forumdisplay.php?f=107)
-   -   Text log of compile.exe (https://forums.alliedmods.net/showthread.php?t=199207)

SEGnosis 10-25-2012 13:03

Text log of compile.exe
 
Is there an argument I can pass into compile.exe so that it outputs the errors and warnings to a text file instead of the console window?

Bacardi 10-25-2012 13:25

Re: Text log of compile.exe
 
You could make batch file ?
compile.bat

spcomp.bat

11530 10-25-2012 13:44

Re: Text log of compile.exe
 
Quote:

Originally Posted by SEGnosis (Post 1825544)
Is there an argument I can pass into compile.exe so that it outputs the errors and warnings to a text file instead of the console window?

Use the -e parameter to output errors, if they exist, to a file relative to the .sp's location.

SEGnosis 10-25-2012 14:50

Re: Text log of compile.exe
 
Quote:

Originally Posted by Bacardi (Post 1825558)
You could make batch file ?

That works great, thanks

Quote:

Originally Posted by 11530 (Post 1825571)
Use the -e parameter to output errors, if they exist, to a file relative to the .sp's location.

Can you explain this a bit more? I passed the -e parameter and it does not do anything

11530 10-25-2012 15:01

Re: Text log of compile.exe
 
Quote:

Originally Posted by SEGnosis (Post 1825620)
That works great, thanks

Can you explain this a bit more? I passed the -e parameter and it does not do anything

Depends how you use it, but chances are you probably compile your files like:

Code:

spcomp.exe someplugin.sp
Instead use:

Code:

spcomp.exe -eCompilerResults.txt someplugin.sp
If it compiles fine then it will do it silently - however if there are warnings/errors then it will output the results to CompilerResults.txt.

SEGnosis 10-25-2012 16:33

Re: Text log of compile.exe
 
Quote:

Originally Posted by 11530 (Post 1825629)
Depends how you use it, but chances are you probably compile your files like:

Code:

spcomp.exe someplugin.sp
Instead use:

Code:

spcomp.exe -eCompilerResults.txt someplugin.sp
If it compiles fine then it will do it silently - however if there are warnings/errors then it will output the results to CompilerResults.txt.

Just what I was looking for, thanks!

I am making a small App that will automate the compile and upload with Notepad++. It only show real errors to save hours of hassles.

Bacardi 10-25-2012 16:53

Re: Text log of compile.exe
 
aaa you can do it already in notepad++
#52

SEGnosis 10-25-2012 17:06

Re: Text log of compile.exe
 
Quote:

Originally Posted by Bacardi (Post 1825680)
aaa you can do it already in notepad++
#52

I tried something similar to that before I started working on what I am working on right now.
However what I am working on will let me filter warnings, trim the file locations, and have it automatically upload the smx file to my server via ftp, and then do an rcon request to the server to reload the current map so by the time I alt tab back in. The new instance of the plugin is running live from 1 hotkey press.

FaTony 10-25-2012 19:06

Re: Text log of compile.exe
 
You may be interested in this.

SEGnosis 10-25-2012 20:48

Re: Text log of compile.exe
 
Quote:

Originally Posted by FaTony (Post 1825775)
You may be interested in this.

I was looking for an all in one solution.
Having it work directly inside of Notepad++ was the ideal solution for me.
Now I have it save, compile, properly format the error/warnings, upload, and reload the plugin from within the editor.

http://i.imgur.com/ZIL92.png


All times are GMT -4. The time now is 11:42.

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