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
➜ SMAUG
➜ SMAUG coding
➜ PC_Data Struct
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Leprakon
(28 posts) Bio
|
Date
| Tue 22 Jul 2003 01:05 AM (UTC) |
Message
| Hello,
I'm using FUSS (Fixed Up Smaug Source), and i tried to install the Alias Snippet from Alsherok.net, but it has me do something to the PC_Data Struct in mud.h, and It's Not There! It's declared in the beginning, but it's never actually used anywhere else in the file. What's the deal with that? Is that a bug that FUSS didn't fix? Thanks.. | Top |
|
Posted by
| Gatewaysysop2
USA (146 posts) Bio
|
Date
| Reply #1 on Tue 22 Jul 2003 03:34 AM (UTC) Amended on Tue 22 Jul 2003 03:37 AM (UTC) by Gatewaysysop2
|
Message
| Not quite sure what you mean by "not there" but I'm working with a recent version of FUSS and I decided to take a look at that snippet you were talking about.
The only part of the entire snippet install instructions which even mention pc_data struct are;
In the pc_data struct, add the following to the end:
ALIAS_DATA * first_alias;
ALIAS_DATA * last_alias;
I opened up the mud.h which my FUSS release came with and I have no problem finding the pc_data struct section. It begins, in my case, at line 2386, with a comment that reads;
/*
* Data which only PC's have.
*/
Now, scrolling down to the end there's this:
char * prompt; /* User config prompts */
char * fprompt; /* Fight prompts */
char * subprompt; /* Substate prompt */
sh_int pagerlen; /* For pager (NOT menus) */
bool openedtourney;
IGNORE_DATA * first_ignored; /* keep track of who to ignore */
IGNORE_DATA * last_ignored;
char ** tell_history; /* for immortal only command lasttell */
sh_int lt_index; /* last_tell index */
sh_int colorize [AT_MAXCOLOR];
All you need to do is throw the above two lines in right here.
Is your mud.h somehow different from this or missing this section? I don't really see how it could be, so maybe you just overlooked it. In any event, I hope this helps.
|
"The world of men is dreaming, it has gone mad in its sleep, and a snake is strangling it, but it can't wake up." -D.H. Lawrence | Top |
|
Posted by
| Leprakon
(28 posts) Bio
|
Date
| Reply #2 on Tue 22 Jul 2003 03:06 PM (UTC) |
Message
| lol thanks... i found it now- i think the reason that i couldn't find it before was that a was searching for PC_DATA, not pc_data, i dunno, in any case, i found it now, thanks a lot. I can finally install aliases now | Top |
|
Posted by
| Nick Cash
USA (626 posts) Bio
|
Date
| Reply #3 on Tue 22 Jul 2003 07:23 PM (UTC) |
Message
| Heh, don't run into the same problems I had. Its a simple fix. If you have a bunch of errors as it did, add in the include for stdio.h in either alias.c/alias.h/mud.h. Should look like this if your new to headers and what not:
#include <stdio.h>
Then again, I was using SWR 1.0, so you might not have those problems. |
~Nick Cash
http://www.nick-cash.com | 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,406 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top