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

The Windows Compile Batch File


Post New Thread Reply   
 
Thread Tools Display Modes
MagicShot
Senior Member
Join Date: Mar 2004
Location: MN
Old 03-09-2004 , 03:08   Editplug
Reply With Quote #11

Quote:
Originally Posted by _KaszpiR_
i edit in editplus - and wrote also a simple highlight extension to it
compiling manual but without deleting temp.txt - more secure for me, at least
Hmm Editplus sounds familiar...
I think I use that to code c a long time ago...
i will have to check it out again...

thx..
__________________
|v|agic$hot
.
Without a Sound
MagicShot is offline
Send a message via MSN to MagicShot Send a message via Yahoo to MagicShot
xeroblood
BANNED
Join Date: Mar 2004
Location: Toronto, Canada
Old 03-09-2004 , 09:37  
Reply With Quote #12

Quote:
Originally Posted by devicenull
4 Ways?
What are they?
I think I like this Crimson Editor

Should I use the C/C++ template or do you have one I could use?

Well, 4 different ways meaning, I have linked the AMX compiler to it twice (one with -d0 command line argument), and also the same for AMXX.. I linked it's compiler twice..

I personally use the default syntax highlighter included, but it does have support for almost 20 languages!!!

Anyway, here is the trickiest part of it, the 'argument' supplied to the compiler thru Crimson Editor looks like:

$(FileName) -ocompiled\$(FileTitle).amx

or

$(FileName) -d0 -ocompiled\$(FileTitle).amx
xeroblood is offline
Send a message via MSN to xeroblood
MagicShot
Senior Member
Join Date: Mar 2004
Location: MN
Old 03-09-2004 , 10:06   ahh
Reply With Quote #13

Ahh,

thanx For making that one a little clear I was lost for a min.
__________________
|v|agic$hot
.
Without a Sound
MagicShot is offline
Send a message via MSN to MagicShot Send a message via Yahoo to MagicShot
DopeFish
Senior Member
Join Date: Feb 2004
Old 03-09-2004 , 11:36  
Reply With Quote #14

Code:
for %%i in (*.sma) do sc %%i -ocompiled\%%i
copy compiled\*.amx ..\plugins\*.amx
del compiled\*.amx
->

Code:
for %%i in (*.sma) do sc %%i -o..\plugins\%%i
DopeFish is offline
Send a message via ICQ to DopeFish
SniperBeamer
AMX Mod X Founder
Join Date: Jun 2003
Location: Good Old Europe
Old 03-09-2004 , 13:27  
Reply With Quote #15

ahh there are some batch experienced ppl

here is the problem:
the new small compiler doesn't print the errors it prints only "X errors, X warnings"
but you can set the parameter -eXXX.txt
this will write the errors (but not "X errors" this is still printed) to file XXX.txt and it overwrites the file if it is already exists

--> everything which is printed has to be displayed + the error file(s) (created with -e) have to be displayed
__________________
SniperBeamer is offline
devicenull
Veteran Member
Join Date: Mar 2004
Location: CT
Old 03-09-2004 , 14:44  
Reply With Quote #16

Is that new compiler included in 0.1?
Because my batch file spits out errors..
Quote:
Small compiler 2.4 Copyright (c) 1997-2003, ITB CompuPhase

teams2.sma(29) : fatal error 100: cannot read from file: "ns2amx"

Compilation aborted.
1 Error.
compiled\sqladmin.amx
1 file(s) copied.
Press any key to continue . . .
So now the batch file is 2 lines w/o comments:
Code:
for %%i in (*.sma) do sc %%i -o..\plugins\%%i 
pause
Much simpler

Whats the -d0 do to the small compiler?

You do *NOT* need the $(FileName) -o..\plugins\$(FileTitle).amx , the small compiler is renaming them by itself, so you just need $(FileName) -o..\plugins\$(FileTitle)

Edit: I have a suggestion about the sma files that are the defualt ones, move them to a seperate folder - like defualt, so they are not compiled with the batch file every time you run it
devicenull 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 01:32.


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