| closedHow to Compile a plugin locally |
| Started by Hell Phoenix on 07-10-2006, 11:03 AM |
Threads: 17
Joined: Jan 2005
Since so many people don’t understand how to compile their plugins, I am giving a brief guide.rnrnA 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.rnrnThe 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 =DrnrnOk, 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. rnrn(disreguard the AMXX-Studio and CVS_DoDPlugins directories...you wont have them)rnrn
rnrnAll you have to do is drag the file you want to compile onto compile.exe rnrn
rnrnThen you will get a box that pops up. If there are any errors, this is where it will show them. rnrn
rnrnPress enter to close the box. Now go into the compiled directoryrnrn
rnrnWOOHOO! You now have a compiled plugin. Put it in your plugins folder and add it to your plugins.ini.
Threads: 23
Joined: Aug 2006
When I try to compile it it says cannot find amxxpc.exe or something like that.
Threads: 103
Joined: May 2005
do you have amxxpc.exe in the directory?
Threads: 0
Joined: Oct 2006
Thanks, helps alot.
Threads: 0
Joined: Jun 2006
How to i put it in the plugins.ini file? What is the source code?
Threads: 103
Joined: May 2005
just open the plugins.ini with notepad or such...nnand add the plugin on a new line like so:n
ndod_pluginname.amxxnnthen save the file, upload it back to the gameserver and restart/changelevelThreads: 0
Joined: Jun 2006
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?
Threads: 103
Joined: May 2005
what you mean a description??nnnthe cvars go inside the amxx.cfg
Threads: 7
Joined: Jan 2007
Seems pretty simple......but I don't have a compile.exe app.....hmm....
Threads: 54
Joined: May 2005
Seems pretty simple......but I don't have a compile.exe app.....hmm....n nif 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
Threads: 11
Joined: Oct 2005
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.rnrnCya
Threads: 103
Joined: May 2005
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.nnCyannnwhat you mean?nni compile locally everytime and it always gives error details...nshould actually be pretty much the same as the online compiler anyways tho
Threads: 11
Joined: Oct 2005
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..rnrnCya
Threads: 0
Joined: Jul 2022
I downloaded dod_customsupply.sma, dod_singlecaps.sma, and dod_unlimited_nades.sma from these forums, but when I try to compile using the web compiler it tells me the file is invalid for each of them. I also can't find compile.exe locally on my machine. Can anyone help me compile these? I really want to put them on my DOD server. Thanks in advance.
Threads: 5
Joined: Dec 2010
Did you check in /addons/amxmodx/scripting folder? Also your Anti-Virus may block or remove some of the Pawn compiler files. Once the compile.exe is successfully done, look inside /addons/amxmodx/scripting/compiled folder and extract them into /addons/amxmodx/plugins

