Author |
Message |
cmdrpinksock Novice
Age:44 Gender: Joined: Dec 05 2008 Posts: 43 Location: Fort Worth Offline
|
Posted: Sun Dec 14, 2008 4:52 pm Post subject: Module will not compile, linux, asss |
 |
|
|
|
What directory should modules files go so i can reference them?
Last edited by cmdrpinksock on Sun Dec 14, 2008 11:18 pm, edited 1 time in total |
|
Back to top |
|
 |
tcsoccerman Server Help Squatter
Age:33 Gender: Joined: Jan 15 2007 Posts: 694 Location: Atlantis Offline
|
Posted: Sun Dec 14, 2008 5:40 pm Post subject: |
 |
|
|
|
I usually make a new folder in the home/src/ directory, and put all the source in there.
For example, if i have a new module called "blowupthezone.c" i would make a new directory with a path of home/src/blowup/ and put "blowupthezone.c" in there.
if you have a .dll and that's it then all you need to do is put the .dll in home/bin/ and then load it through modules.conf or ?load
|
|
Back to top |
|
 |
Guest
Offline
|
Posted: Sun Dec 14, 2008 6:03 pm Post subject: |
 |
|
|
|
Ok cool. Then also how do i ref that
.C code in the src dir, or how do i load it rather?
|
|
Back to top |
|
 |
tcsoccerman Server Help Squatter
Age:33 Gender: Joined: Jan 15 2007 Posts: 694 Location: Atlantis Offline
|
Posted: Sun Dec 14, 2008 7:55 pm Post subject: |
 |
|
|
|
conf/modules.conf is a list of every module to be loaded when asss starts
to add your file use this format (i copied this from the top of modules.conf):
'file:modulename'. file is the name of the .so/.dll file (without the
;; .so).
you can also load a module in-game using "?load file:modulename" in game and then "?attach modulename" if necesary (if it's an arena module). also please not that may be "?attach file".
|
|
Back to top |
|
 |
cmdrpinksock Novice
Age:44 Gender: Joined: Dec 05 2008 Posts: 43 Location: Fort Worth Offline
|
Posted: Sun Dec 14, 2008 10:44 pm Post subject: Compiling for linux |
 |
|
|
|
Ok I am trying to compile a module. It craps out and does not end up making the .so file so I can reference it. I am tring to compile the KOTH mod, halo_hill...Attached is the output for the make deps, and then the make commands... I am following the instructions at: http://wiki.minegoboom.com/index.php/Installing_New_Modules
any ideas?
from what I can tell from the "make" output, the problem is in my core.c file, so here it is
core.c - 21.12 KB
File downloaded or viewed 19 time(s)
This is the halo_hill.c file I am using
halo_hill.c - 15.86 KB
File downloaded or viewed 15 time(s)
output.txt - 2.09 KB
File downloaded or viewed 37 time(s)
Last edited by cmdrpinksock on Sun Dec 14, 2008 11:03 pm, edited 5 times in total |
|
Back to top |
|
 |
tcsoccerman Server Help Squatter
Age:33 Gender: Joined: Jan 15 2007 Posts: 694 Location: Atlantis Offline
|
Posted: Sun Dec 14, 2008 10:52 pm Post subject: |
 |
|
|
|
although i hate to admit it, if you're using my edited halo_hill it could be buggy. you forgot to attach the output, attach that so i can look at it.
|
|
Back to top |
|
 |
cmdrpinksock Novice
Age:44 Gender: Joined: Dec 05 2008 Posts: 43 Location: Fort Worth Offline
|
Posted: Sun Dec 14, 2008 11:19 pm Post subject: |
 |
|
|
|
There we go....
|
|
Back to top |
|
 |
tcsoccerman Server Help Squatter
Age:33 Gender: Joined: Jan 15 2007 Posts: 694 Location: Atlantis Offline
|
Posted: Mon Dec 15, 2008 9:42 am Post subject: |
 |
|
|
|
hmmm...
i'm not familiar w/ linux but somehow you have to include some files. like src/include/ and maybe src/packets/
now it looks like you're trying to compile all of asss src. If it were me i would just compile each module seperately. Then just put the .so in the home/bin/ folder and load it in modules.conf
also, as long as you didn't edit core.c, it should be fine.
|
|
Back to top |
|
 |
|