Server Help

ASSS Questions - Module will not compile, linux, asss

cmdrpinksock - 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?
tcsoccerman - 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
Anonymous - 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?
tcsoccerman - 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".
cmdrpinksock - 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?
tcsoccerman - 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.
cmdrpinksock - Sun Dec 14, 2008 11:19 pm
Post subject:
There we go....
tcsoccerman - 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.
All times are -5 GMT
View topic
Powered by phpBB 2.0 .0.11 © 2001 phpBB Group