AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   General (https://forums.alliedmods.net/forumdisplay.php?f=58)
-   -   [SM] Need switches for 'compile.exe' (https://forums.alliedmods.net/showthread.php?t=282255)

D.Moder 05-02-2016 14:52

[SM] Need switches for 'compile.exe'
 
(I'm using windows)

I need to know the switches for "compile.exe" I know you can change some settings on how its compiled...

Example: compile.exe -LOCATION ..\plugins -file mymod.sp -copywhensuccess

Or if you have a batch file made to automatically detect errorlevel and copy if only compiler had no errors and warnings! would be great!

Farbror Godis 05-02-2016 15:17

Re: [SM] Need switches for 'compile.exe'
 
Run spcomp.exe in your command prompt and you should see all the available options.

D.Moder 05-03-2016 02:48

Re: [SM] Need switches for 'compile.exe'
 
Quote:

Originally Posted by Farbror Godis (Post 2416066)
Run spcomp.exe in your command prompt and you should see all the available options.

Oh I see, spcomp.exe is the one with the switches.
I see them (used "spcomp -?")
I was hoping to have the compiler copy the compiled file (with no errors/warnings) to the plugin folder

thanks anyway

xines 05-03-2016 04:18

Re: [SM] Need switches for 'compile.exe'
 
Guess someone will find this usefull.

This batch script will automaticly compile the sp "myfile" and move the compiled smx file to "Plugins" directory.

Run the batch script from scripting directory, and it should work.

Code:

@echo off
pause
spcomp myfile.sp
move myfile.smx ..\plugins\myfile.smx
echo Compile Completed.
pause


Farbror Godis 05-03-2016 08:42

Re: [SM] Need switches for 'compile.exe'
 
Quote:

Originally Posted by xines (Post 2416200)
Code:

@echo off
pause
spcomp myfile.sp
move myfile.smx ..\plugins\myfile.smx
echo Compile Completed.
pause


Not necessary;
Code:

spcomp myfile.sp -o..\plugins\myfile.smx
Will do what you want.


All times are GMT -4. The time now is 06:04.

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