Raised This Month: $51 Target: $400
 12% 

Text log of compile.exe


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
SEGnosis
Senior Member
Join Date: Oct 2012
Old 10-25-2012 , 13:03   Text log of compile.exe
Reply With Quote #1

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?
SEGnosis is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 10-25-2012 , 13:25   Re: Text log of compile.exe
Reply With Quote #2

You could make batch file ?
compile.bat

spcomp.bat
Bacardi is offline
11530
Veteran Member
Join Date: Sep 2011
Location: Underworld
Old 10-25-2012 , 13:44   Re: Text log of compile.exe
Reply With Quote #3

Quote:
Originally Posted by SEGnosis View Post
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.
__________________
11530 is offline
SEGnosis
Senior Member
Join Date: Oct 2012
Old 10-25-2012 , 14:50   Re: Text log of compile.exe
Reply With Quote #4

Quote:
Originally Posted by Bacardi View Post
You could make batch file ?
That works great, thanks

Quote:
Originally Posted by 11530 View Post
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
SEGnosis is offline
11530
Veteran Member
Join Date: Sep 2011
Location: Underworld
Old 10-25-2012 , 15:01   Re: Text log of compile.exe
Reply With Quote #5

Quote:
Originally Posted by SEGnosis View Post
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.
__________________
11530 is offline
SEGnosis
Senior Member
Join Date: Oct 2012
Old 10-25-2012 , 16:33   Re: Text log of compile.exe
Reply With Quote #6

Quote:
Originally Posted by 11530 View Post
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.
SEGnosis is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 10-25-2012 , 16:53   Re: Text log of compile.exe
Reply With Quote #7

aaa you can do it already in notepad++
#52
Bacardi is offline
SEGnosis
Senior Member
Join Date: Oct 2012
Old 10-25-2012 , 17:06   Re: Text log of compile.exe
Reply With Quote #8

Quote:
Originally Posted by Bacardi View Post
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.
SEGnosis is offline
FaTony
Veteran Member
Join Date: Aug 2008
Old 10-25-2012 , 19:06   Re: Text log of compile.exe
Reply With Quote #9

You may be interested in this.
__________________
FaTony is offline
SEGnosis
Senior Member
Join Date: Oct 2012
Old 10-25-2012 , 20:48   Re: Text log of compile.exe
Reply With Quote #10

Quote:
Originally Posted by FaTony View Post
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.

SEGnosis 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 22:28.


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