Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are
spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the
password reset link.
Due to spam on this forum, all posts now need moderator approval.
Entire forum
➜ ROM
➜ Running the server
➜ Jeremias clan code
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Krypt
(9 posts) Bio
|
Date
| Sat 11 Feb 2006 01:26 AM (UTC) |
Message
| 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. | Top |
|
Posted by
| Zeno
USA (2,871 posts) Bio
|
Date
| Reply #1 on Sat 11 Feb 2006 01:46 AM (UTC) |
Message
| 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? |
Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org | Top |
|
Posted by
| Krypt
(9 posts) Bio
|
Date
| Reply #2 on Sat 11 Feb 2006 02:13 AM (UTC) |
Message
| 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. | Top |
|
Posted by
| Zeno
USA (2,871 posts) Bio
|
Date
| Reply #3 on Sat 11 Feb 2006 02:43 AM (UTC) |
Message
| Okay, that should work. Just replace any IS_CLAN with is_clan. |
Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org | Top |
|
Posted by
| Krypt
(9 posts) Bio
|
Date
| Reply #4 on Sat 11 Feb 2006 05:32 AM (UTC) |
Message
| 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. | Top |
|
The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).
To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.
15,360 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top