Server Help Forum Index Server Help
Community forums for Subgame, ASSS, and bots
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   StatisticsStatistics   RegisterRegister 
 ProfileProfile   Login to check your private messagesLogin to check your private messages   LoginLogin (SSL) 

Server Help | ASSS Wiki (0) | Shanky.com
Module will not compile, linux, asss

 
Post new topic   Reply to topic Printable version
 View previous topic  New Arena trouble Post :: Post funky:autowarp  View next topic  
Author Message
cmdrpinksock
Novice


Age:44
Gender:Gender:Male
Joined: Dec 05 2008
Posts: 43
Location: Fort Worth
Offline

PostPosted: Sun Dec 14, 2008 4:52 pm    Post subject: Module will not compile, linux, asss Reply to topic Reply with quote

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
View users profile Send private message Add User to Ignore List
tcsoccerman
Server Help Squatter


Age:33
Gender:Gender:Male
Joined: Jan 15 2007
Posts: 694
Location: Atlantis
Offline

PostPosted: Sun Dec 14, 2008 5:40 pm    Post subject: Reply to topic Reply with quote

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
View users profile Send private message Add User to Ignore List Send email AIM Address
Guest



Offline

PostPosted: Sun Dec 14, 2008 6:03 pm    Post subject: Reply to topic Reply with quote

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:Gender:Male
Joined: Jan 15 2007
Posts: 694
Location: Atlantis
Offline

PostPosted: Sun Dec 14, 2008 7:55 pm    Post subject: Reply to topic Reply with quote

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
View users profile Send private message Add User to Ignore List Send email AIM Address
cmdrpinksock
Novice


Age:44
Gender:Gender:Male
Joined: Dec 05 2008
Posts: 43
Location: Fort Worth
Offline

PostPosted: Sun Dec 14, 2008 10:44 pm    Post subject: Compiling for linux Reply to topic Reply with quote

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
View users profile Send private message Add User to Ignore List
tcsoccerman
Server Help Squatter


Age:33
Gender:Gender:Male
Joined: Jan 15 2007
Posts: 694
Location: Atlantis
Offline

PostPosted: Sun Dec 14, 2008 10:52 pm    Post subject: Reply to topic Reply with quote

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
View users profile Send private message Add User to Ignore List Send email AIM Address
cmdrpinksock
Novice


Age:44
Gender:Gender:Male
Joined: Dec 05 2008
Posts: 43
Location: Fort Worth
Offline

PostPosted: Sun Dec 14, 2008 11:19 pm    Post subject: Reply to topic Reply with quote

There we go....
Back to top
View users profile Send private message Add User to Ignore List
tcsoccerman
Server Help Squatter


Age:33
Gender:Gender:Male
Joined: Jan 15 2007
Posts: 694
Location: Atlantis
Offline

PostPosted: Mon Dec 15, 2008 9:42 am    Post subject: Reply to topic Reply with quote

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
View users profile Send private message Add User to Ignore List Send email AIM Address
Display posts from previous:   
Post new topic   Reply to topic    Server Help Forum Index -> ASSS Questions All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum
View online users | View Statistics | View Ignored List


Software by php BB © php BB Group
Server Load: 24 page(s) served in previous 5 minutes.

phpBB Created this page in 0.470682 seconds : 34 queries executed (93.6%): GZIP compression disabled