PDA

View Full Version : How to Compile a plugin locally


Hell Phoenix
07-10-2006, 12:03 PM
Since so many people don’t understand how to compile their plugins, I am giving a brief guide.

A couple of things to watch for. First is that if you update amxx, make sure you grab the new scripting directory. Functions change. You should keep the same version of compiler as what’s installed on your server.

The first step is to get the scripting directory. There are two ways of doing this. First is you could download it from your servers amxmodx directory. Second you can download amxx from the amxx website. Make sure you get the dod addon =D

Ok, now that you have the directory, put your sma file in it. Lets say we are going to compile a plugin called amx_snow.sma.

(disreguard the AMXX-Studio and CVS_DoDPlugins directories...you wont have them)

http://www.charliemaurice.com/misc/pics/compile1.jpg

All you have to do is drag the file you want to compile onto compile.exe

http://www.charliemaurice.com/misc/pics/compile2.jpg

Then you will get a box that pops up. If there are any errors, this is where it will show them.

http://www.charliemaurice.com/misc/pics/compile3.jpg

Press enter to close the box. Now go into the compiled directory

http://www.charliemaurice.com/misc/pics/compile4.jpg

WOOHOO! You now have a compiled plugin. Put it in your plugins folder and add it to your plugins.ini.

Black Parade
08-28-2006, 11:07 PM
When I try to compile it it says cannot find amxxpc.exe or something like that.

diamond-optic
08-28-2006, 11:13 PM
do you have amxxpc.exe in the directory?

bueller420th
10-05-2006, 07:37 PM
Thanks, helps alot.

[2ndad]sgt.mike
11-20-2006, 03:53 PM
How to i put it in the plugins.ini file? What is the source code?

diamond-optic
11-20-2006, 04:11 PM
just open the plugins.ini with notepad or such...

and add the plugin on a new line like so:

dod_pluginname.amxx

then save the file, upload it back to the gameserver and restart/changelevel

[2ndad]sgt.mike
11-20-2006, 05:21 PM
Ok, but do i have to add a description to the rest? And how do i active it...the cvars where do i enter those?

diamond-optic
11-20-2006, 08:36 PM
what you mean a description??


the cvars go inside the amxx.cfg

Tony Almeida
02-17-2007, 01:37 PM
Seems pretty simple......but I don't have a compile.exe app.....hmm....

=|[76AD]|= TatsuSaisei
02-17-2007, 03:16 PM
Seems pretty simple......but I don't have a compile.exe app.....hmm....

if you downloaded the base amxx package for windows and took the scripting folder from it and used that as your base then you will have all the files you need (still need dod include files from dod package) but the compiler is in the base amxx package

TooLz
03-21-2007, 03:45 PM
I personally prefer the compiler here on dodplugins.net - its a lot nicer than the command line one, it give detailed errors for if you're trying to make your own plugins, instead of just ERROR, lol.. I'd recommend trying that.

Cya

diamond-optic
03-21-2007, 06:22 PM
I personally prefer the compiler here on dodplugins.net - its a lot nicer than the command line one, it give detailed errors for if you're trying to make your own plugins, instead of just ERROR, lol.. I'd recommend trying that.

Cya


what you mean?

i compile locally everytime and it always gives error details...
should actually be pretty much the same as the online compiler anyways tho

TooLz
03-23-2007, 05:59 PM
ah, I must be thinking of the old school compiler then, i've not used local in so long because the old one i used just would say error and the error number, no line or anything, lol..

Cya