This site is a testing version, but all data is shared with the live forum.


Raised This Month: $ Target: $400
 0% 

[HOWTO] Compile locally with custom includes


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
harohara
Junior Member
Join Date: Mar 2013
Old 03-22-2013 , 16:28   Re: [HOWTO] Compile locally with custom includes
Reply With Quote #1

so we need .sma and .inc file(s) right? what if there are more of them? like .sma .inc and .txt and cfgs???
what should we do? copy all of them to the include folder?

and this is my 1st post
so Hello guyz

Last edited by harohara; 03-22-2013 at 16:30.
harohara is offline
ANTICHRISTUS
kingdom of weird stuff
Join Date: Jun 2010
Location: My kingdom is not in thi
Old 03-22-2013 , 17:33   Re: [HOWTO] Compile locally with custom includes
Reply With Quote #2

so..
this topic is about to compile some .sma files that request a specific .inc file, that the web compiler dosen't include.
the .txt, .cfg, .ini files aren't needed for the compilation process, you just need the .inc one. but which one ?!
open your .sma, and you'll find which non-official include (.inc file) do you need.

example of zp_zclasses40.sma:
Code:
#include <amxmodx>
#include <fakemeta>
#include <zombieplague>
__________________

Last edited by ANTICHRISTUS; 03-22-2013 at 17:33.
ANTICHRISTUS is offline
harohara
Junior Member
Join Date: Mar 2013
Old 03-25-2013 , 02:54   Re: [HOWTO] Compile locally with custom includes
Reply With Quote #3

Quote:
Originally Posted by ANTICHRISTUS View Post
so..
this topic is about to compile some .sma files that request a specific .inc file, that the web compiler dosen't include.
the .txt, .cfg, .ini files aren't needed for the compilation process, you just need the .inc one. but which one ?!
open your .sma, and you'll find which non-official include (.inc file) do you need.

example of zp_zclasses40.sma:
Code:
#include <amxmodx>
#include <fakemeta>
#include <zombieplague>
Thanks!
really appreciate ur help .

I have 1 more question from u guys. (I am new to amx and I think this is the place to get some experience).

My Question is:
Why do we always compiling the .sma file(s)? We can just download the .amxx file and put it to the server plugins folder and link it via the plugins.ini file right?

but sometimes when I compared file sizes of a plugin (.amxx)that we downloaded from alliedmodders approved plugins section, with a plugin that I compiled on my pc from the source file (.sma) (compiled by AMX Studio) they are different.
I meant the original amxx file (directly downloaded from AlliedModders amxx file) is larger than the plugin that I compiled on my own pc.
Why is that?


and why we use .sma? why dont download the .amxx file?
harohara is offline
ANTICHRISTUS
kingdom of weird stuff
Join Date: Jun 2010
Location: My kingdom is not in thi
Old 03-25-2013 , 17:55   Re: [HOWTO] Compile locally with custom includes
Reply With Quote #4

Quote:
Originally Posted by harohara View Post
Why do we always compiling the .sma file(s)? We can just download the .amxx file and put it to the server plugins folder and link it via the plugins.ini file right?
  • not all the time, but you must do it in some cases (my previous post).
  • sometimes, some plugins should (and not must) br compiled locally, because the web compiler is making some little errors, I think like the Galileo plugin.
  • in other cases, there are some problems with files that are compiled locally, and you need to use the web compiler, can't remember which cases.

Quote:
but sometimes when I compared file sizes of a plugin (.amxx)that we downloaded from alliedmodders approved plugins section, with a plugin that I compiled on my pc from the source file (.sma) (compiled by AMX Studio) they are different.
...
I meant the original amxx file (directly downloaded from AlliedModders amxx file) is larger than the plugin that I compiled on my own pc.
Why is that?
  • if it's a small difference, just don't care (can't find the right post of YamiKaitou about it).
  • if it's a big difference then read my first post in this thread.

Quote:
and why we use .sma? why dont download the .amxx file?
  • when you upload a .sma file in your post, the "get plugin" link is instantaneously generated by the web compiler. but it only "contains" the default .inc files, the contrary of other web compilers (of other sites).
__________________
ANTICHRISTUS is offline
Old 07-18-2013, 01:15
LordOfNothing
This message has been deleted by ConnorMcLeod. Reason: troll, or posting random confusing code, or posting for posts count
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 07-18-2013 , 11:02   Re: [HOWTO] Compile locally with custom includes
Reply With Quote #6

Quote:
Originally Posted by LordOfNothing View Post
I use amxxpc because the compile.exe Dont work good
compile.exe is just a wrapper for amxxpc.exe in where it will compile all plugins found in the same directory
__________________
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
Firewall_
Senior Member
Join Date: Aug 2012
Old 04-29-2014 , 11:33   Re: [HOWTO] Compile locally with custom includes
Reply With Quote #7

i need php webcompiler my localhost guyz...
Firewall_ is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 04-29-2014 , 13:03   Re: [HOWTO] Compile locally with custom includes
Reply With Quote #8

Quote:
Originally Posted by Firewall_ View Post
i need php webcompiler my localhost guyz...
If you want the webcompiler, search for the hundred threads that ask the same question.
__________________
fysiks is offline
ViBE
Member
Join Date: Jul 2011
Location: Somewhere over the...
Old 06-12-2014 , 15:14   Re: [HOWTO] Compile locally with custom includes
Reply With Quote #9

i have some platform based questions:

1. why plugins bigger which compiled on Linux? is it normal?
2. which platform better for compiling and why (Windows vs. Linux)?
3. does it matter what kind of system i use for compiling? for example:
i compiling plugins on Windows and upload to a Linux HLDS server.

i'm just curious. never thought about these before.

Last edited by ViBE; 06-12-2014 at 15:14.
ViBE is offline
Send a message via ICQ to ViBE
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 06-12-2014 , 15:36   Re: [HOWTO] Compile locally with custom includes
Reply With Quote #10

Quote:
Originally Posted by ViBE View Post
i have some platform based questions:

1. why plugins bigger which compiled on Linux? is it normal?
2. which platform better for compiling and why (Windows vs. Linux)?
3. does it matter what kind of system i use for compiling? for example:
i compiling plugins on Windows and upload to a Linux HLDS server.

i'm just curious. never thought about these before.
I only compile with Windows® and I only run servers on Linux. Therefore, you can compile on either one and it will work for both types of servers.

I've never actually compared the files between the two different compilers but it's mostly irrelevant as long as AMX Mod X can read them correctly.
__________________
fysiks is offline
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 04:03.


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