Problem: It is compiling stuff that I don't even open. If I put my cursor over a sma file in the folder that I am watching, it will compile that file.
Another Problem:
I tested it using PawnStudio as my text editor (to lazy to open up notepad since this comp defaults sma's to PS). I used the same compiler for both programs. Here were the results.
PawnStudio:
Quote:
Welcome to the AMX Mod X 1.76-300 Compiler.
Copyright (c) 1997-2006 ITB CompuPhase, AMX Mod X Team
Header size: 708 bytes
Code size: 4392 bytes
Data size: 2152 bytes
Stack/heap size: 16384 bytes; estimated max. usage=274 cells (1096 bytes)
Total requirements: 23636 bytes
Done.
Compilation Time: 1.80 sec
|
Your program:
Quote:
SMA Buddy Version 1.0.0
Copyright (c) 2007 [email protected]
SMA Buddy was origonally coded by Podunk/FoolyCooly
compiler: F:\AMXX_Studio_1.4.3_final\amxmodx-1.76d\amxxpc.exe
arguments: "F:\Plugins\FFONEND.SMA" -i"F:\Plugins\include" -D"F:\Plugins"
============================================= ===========================
Welcome to the AMX Mod X 1.76-300 Compiler.
Copyright (c) 1997-2006 ITB CompuPhase, AMX Mod X Team
Header size: 708 bytes
Code size: 4392 bytes
Data size: 2152 bytes
Stack/heap size: 16384 bytes; estimated max. usage=274 cells (1096 bytes)
Total requirements: 23636 bytes
Done.
============================================= ===========================
amxxpc.exe time: 2.3905332 seconds
Compile Process Succesful
Could not find file 'F:\Plugins\FFONEND.amxx'.
|
Your plugin is using the incorrect -i parameter. My includes folder is in the same folder where my compiler is, as with most peoples. So, I don't think it should default to the location of the sma. The plugin name is not in all caps, so I don't see why your program is reading it that way. You are not defining the output location by default, the -o arg. Since you aren't telling it where to put the files, it is not creating them anywheres, thus making the program pointless.
So, here is the command lines that both of the programs are using, in case you want to know
PawnStudio:
amxxpc.exe "F:\Plugins\ffonend.sma" -o "F:\Plugins\ffonend.amxx"
Your Program:
amxxpc.exe "F:\Plugins\FFONEND.sma" -i"F:\Plugins\include" -D"F:\Plugins"
So, the PS command actually compiles the plugin using the includes folder that is in the same directory as the amxxpc.exe file, and then outputs the compiled code to the same folder the source code is in.
Your program compiles the plugin using an include folder that does not exist so it has to find where the true includes folder is (same directory as the amxxpc.exe) and then it does not output the compiled code to any folder.
If you need me to go into any more detail with this, just say so and I will see if I can
__________________