Raised This Month: $32 Target: $400
 8% 

AutoCompiler Tool (*UPDATED*)


Post New Thread Reply   
 
Thread Tools Display Modes
Podunk
Senior Member
Join Date: Nov 2005
Location: Florida
Old 09-21-2007 , 19:59   Re: SMA Buddy - an optional tool
Reply With Quote #11

Thank you for the suggestion!

I will put this in asap!
__________________
Check out my website at http://matthewmiller.info
Podunk is offline
Send a message via MSN to Podunk
Old 09-23-2007, 18:35
Podunk
This message has been deleted by Podunk. Reason: bleh
Podunk
Senior Member
Join Date: Nov 2005
Location: Florida
Old 09-25-2007 , 12:22   Re: SMA Buddy - an optional tool
Reply With Quote #12

Quote:
Originally Posted by YamiKaitou View Post
Suggestion: Allow users to pick the location of their compiler. Cause, I have all of my plugins located in a different folder than my compiler is in. So, whenever I use this, it always fails compiling
feature added, take a look please
__________________
Check out my website at http://matthewmiller.info
Podunk is offline
Send a message via MSN to Podunk
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 09-25-2007 , 12:48   Re: AutoCompiler Tool (*UPDATED*)
Reply With Quote #13

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
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
Podunk
Senior Member
Join Date: Nov 2005
Location: Florida
Old 09-25-2007 , 17:01   Re: AutoCompiler Tool (*UPDATED*)
Reply With Quote #14

Thanks for the feedback, and the research you've done

I've been using this tool with the file structure within the download package from the AMXMODX homepage, and tailored it around that, hence the ./include folder and the moving the .amxx to ../plugins folder after compile.

What I didn't realize is people need the following additional options:

1: Specify include folder if neccesary
2: Move output file to folder X after compile


Also I didn't realize the -o argument is needed, and I'll factor that in now as well as those options.

Thanks for the help, and please check back to this thread in a bit
__________________
Check out my website at http://matthewmiller.info
Podunk is offline
Send a message via MSN to Podunk
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 16:25.


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