-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
read sign doesn't work #1
Comments
/lib/std/base_dummy.c 把这句 if(!valid_event(previous_object(), this_object())) return 0; 注释下就可以了 |
I've been puzzling over this as well. AFAIK, a rooms SetItems and SetRead objects don't work if the file is in under the /realms directory but the exact same code (with appropriate path adjustments) does work if the file is under any other directory. Very strange. For example, when file under /realms directory. I copied the exits commands to add a list of dummy items in the room to confirm that the 3 dummy objects from SetItems (a workroom, a sheet, a sign) are in the workroom under both the realms and domains directory so it doesn't seem the issue is in populated the room dummy items. Could something be intercepting or interfering with the look command when a room is under the realms directory?! |
In the file "/lib/std/base_dummy.c" if you add a comment to |
|
Thanks, that worked. Replacing the valid_event code in sefun with what's in dead_souls3.9 also seems to work. I'm guessing this valid_event might be intending to restrict who can do things in the /realms and /open top level directories?
|
dead-souls lib has too much inheritance. debug is hard. I I use the chines mudlib:
https://github.com/huangleon/fy2005.git
If you read Chinese you can have a look at it. It's easy to be used
…---Original---
From: "Stephen Kelley"<[email protected]>
Date: Sat, Apr 11, 2020 04:52 AM
To: "fluffos/dead-souls"<[email protected]>;
Cc: "Author"<[email protected]>;"seikichin"<[email protected]>;
Subject: Re: [fluffos/dead-souls] read sign doesn't work (#1)
Thanks, that worked.
Replacing the valid_event code in sefun with what's in dead_souls3.9 also seems to work. I'm guessing this valid_event might be intending to restrict who can do things in the /realms and /open top level directories?
int valid_event(object dester, object dested) {
string desterbase, destedbase, topdester, topdested;
string contextdester, contextdested;
int i;
if (!dester || !dested) return 0;
return 1;
desterbase = base_name(dester);
destedbase = base_name(dested);
i = sscanf(desterbase, "/%s/%s/%*s", topdester, contextdester);
if (topdester != "realms" && topdester != "open") return 1;
i = sscanf(destedbase, "/%s/%s/%*s", topdested, contextdested);
if (contextdested && contextdester && contextdested == contextdester) {
return 1;
}
return 0;
}
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
pls submit PR to fix this :-) |
If you are wiz when you are at home read sign doesn't work It shows there is no sign here,in fact sign is virtual object
The text was updated successfully, but these errors were encountered: