Jeremias clan code

Posted by Krypt on Sat 11 Feb 2006 01:26 AM — 5 posts, 19,970 views.

#0
I'm trying to install a series of patches that come with the Jeremias clan code for ROM2.4. I followed the directions as they are in the snippet and placed the clan.c and clan.h files in my src file and added to my makefile clan.o

when I try to fresh compile it (using cygwin) I get errors right away in the act_comm.c

" implicit declaration of function 'IS_CLAN'
clan_table undeclared (first use in this function)
Each undeclared identifier is blah blah blah"


soo
I threw this in my merc.h file

#define IS_CLAN(ch) ((ch)->clan>0)

but when i compile again fresh i get
the
"clan_table undeclared (first use in this function)
each undeclared identifier is only reported once" etc

what am i forgetting to put in merc.h or somewhere else?
or how do i declare my clan_table? just not sure what that is supposed to look like.
any help be appreciated.
USA #1
Do you have IS_CLAN anywhere in the code? Don't just throw in random code. Is it defined in the snippet or the original code?
#2
The stock code in handler.c
i can find :

bool is_clan(CHAR_DATA *ch)
{
return ch->clan;
}


in the snippet he uses IS_CLAN all throughout for various functions but I cant find anywhere in the snippet where it is defined.
USA #3
Okay, that should work. Just replace any IS_CLAN with is_clan.
#4
Thanks, that for the most part worked and did the trick.

few other bugs afterwards which i commented out for the time being (score related and whois/who related)i just need to go back when i feel like it and correct syntax and parse errors etc..

and had to change everywhere it said to put in #define "clan.h" to #include "clan.h" at the top of various files. was a bunch of macro errors .."macros cant be identifiers " or something like that..

everything seems to be working now


oh i also didnt know what to do with an error in lookup.c that occured after..it didnt like the if statement in the clan_lookup part..undeclared clan_table first use bit again(never made changes here though)
i commented that out just for gigles and it all compiled and seems to work fine though.
so long as I dont need that all seems to be working great..

think i might try redoing it all again with a backup and knick some of these bugs properly. But again thanks, seemed to work and do the trick making IS_CLAN is_clan everywhere.