Login
User Name:

Password:



Register
Forgot your password?
Vote for Us!
Couple bugs
Dec 12, 2017, 5:42 pm
By Remcon
Bug in disarm( )
Nov 12, 2017, 6:54 pm
By GatewaySysop
Bug in will_fall( )
Oct 23, 2017, 1:35 am
By GatewaySysop
Bug in do_zap( ), do_brandish( )
Oct 18, 2017, 1:52 pm
By GatewaySysop
Bug in get_exp_worth( )
Oct 10, 2017, 1:26 am
By GatewaySysop
LOP 1.45
Author: Remcon
Submitted by: Remcon
LOP Heroes Edition
Author: Vladaar
Submitted by: Vladaar
Heroes sound extras
Author: Vladaar
Submitted by: Vladaar
6Dragons 4.3
Author: Vladaar
Submitted by: Vladaar
Memwatch
Author: Johan Lindh
Submitted by: Vladaar
Users Online
CommonCrawl, Google, DotBot, Bing

Members: 0
Guests: 15
Stats
Files
Topics
Posts
Members
Newest Member
477
3,705
19,232
608
LAntorcha
Today's Birthdays
There are no member birthdays today.
Related Links
» SmaugMuds.org » Codebases » SmaugFUSS » Stock Helpfiles incorrect list
Forum Rules | Mark all | Recent Posts

Stock Helpfiles incorrect list
< Newer Topic :: Older Topic >

Pages:<< prev 1, 2 next >>
Post is unread #1 May 9, 2005, 10:13 am
Go to the top of the page
Go to the bottom of the page

Zeno
Sorcerer
GroupMembers
Posts723
JoinedMar 5, 2005

I've noticed various helpfiles that are incorrect in Smaug and I figure we should fix them for FUSS. They can cause issues such as I thought the ifcheck ispassage was not working due to the helpfile was wrong. This was the helpfile:
EXAMPLE: if ispassage($n) == 6
'There is a passage leading northeast.

DESCRIPTION: The ISPASSAGE(dir) ifcheck is used to
determine if there is an exit in the
specified direction. (HELP DOORDIRS)

Turns out you don't use door numbers, you use door keywords. So it needs to be this:
EXAMPLE: if ispassage($n) == northeast
'There is a passage leading northeast.

DESCRIPTION: The ISPASSAGE(dir) ifcheck is used to
determine if there is an exit in the
specified direction. (HELP NORTH)
Do NOT use doordirs. Use the exit name.


Anyways, I think this topic should be a place to post incorrect helpfiles. So here are some more I can remember.

HELP MPCLOSEPASSAGE
Syntax: MPOPENPASSAGE <origin> <destination> <direction>

Opens a passage to a room (does not affect pre-existing doors)

Syntax: MPCLOSEPASSAGE <room> <direction>

Closes a passage to a room (does not affect pre-existing doors that were
not created with mpopenpassage)

You have to use door numbers, not door keywords. So add the line:
You must use door numbers. (SEE HELP DOORDIRS)


<Post will be edited over time>
       
Post is unread #2 May 9, 2005, 10:51 am
Go to the top of the page
Go to the bottom of the page

Samson
Black Hand
GroupAdministrators
Posts3,639
JoinedJan 1, 2002

Maybe it might be a good idea to choose a consistent path on things like this. Either use direction names, or use numbers, but don't keep switching back and forth. I personally prefer names since they're much easier to remember. Maybe the MPCLOSEPASSAGE one would be better suited as a code change?
       
Post is unread #3 May 9, 2005, 10:53 am
Go to the top of the page
Go to the bottom of the page

Zeno
Sorcerer
GroupMembers
Posts723
JoinedMar 5, 2005

I'd say so. It'd be easier for everyone unless someone can tell me a reason why the numbers should be used over actual exit names.

Oh and according to help doordirs:
Exits 6 - 10 are relatively new, and may not be fully supported by all of the code yet.

Those exits were finished, right?
       
Post is unread #4 May 9, 2005, 11:08 am
Go to the top of the page
Go to the bottom of the page

Samson
Black Hand
GroupAdministrators
Posts3,639
JoinedJan 1, 2002

So far as I know they should have been finished up long ago. There are likely some helpfiles in there that are outdated and could stand to be cleaned up or even removed.
       
Post is unread #5 May 10, 2005, 3:02 pm
Go to the top of the page
Go to the bottom of the page

Zeno
Sorcerer
GroupMembers
Posts723
JoinedMar 5, 2005

Also there are many helpfiles that have bad keywords, such as "2.help" and so on that have no help desc. These would cause the similar helpfile snippet to crash the mud. I've removed most/all of these "bad keyword" helpfiles so I cannot recall any right now. Just letting everyone know there are quite a few.
       
Post is unread #6 May 10, 2005, 8:31 pm
Go to the top of the page
Go to the bottom of the page

GatewaySysop
Conjurer
GroupMembers
Posts367
JoinedMar 7, 2005

Zeno said:

Also there are many helpfiles that have bad keywords, such as "2.help" and so on that have no help desc. These would cause the similar helpfile snippet to crash the mud. I've removed most/all of these "bad keyword" helpfiles so I cannot recall any right now. Just letting everyone know there are quite a few.


Off the top of my head I can recall a few of these that gave me trouble when I put in Senir's similar helpfiles snippet. I've since been able to fix a few loopholes with it (with help from others, of course) but anyway, here's what I recall:

"blackhands" "immauth" (dupe entry) "animate dead" (dupe entry) "names" (dupe entry)

Also if you had two ' instead of a single " as the start of the helpfile (one of the two IMM AUTH's had this) it caused a crash.

Further, the "acid blast" / "burning hands" helpfile is somehow improperly formatted and displays rather badly with the similar helpfiles snippet. I think it might have actually displayed bad all along, but I'm not sure. Anyway, it's all one help entry for several spells so you can't miss it. I think it has some invalid characters or something in it perhaps, but I don't recall exactly.

Hope someone finds this useful. :cyclops:
       
Post is unread #7 May 10, 2005, 10:43 pm
Go to the top of the page
Go to the bottom of the page

Oferi

GroupMembers
Posts3
JoinedMay 5, 2005

Maybe someone should ask the writer of the simular help files snippet to allow it to become standard in the release?
       
Post is unread #8 May 10, 2005, 10:53 pm   Last edited Nov 25, 2007, 5:13 pm by Samson
Go to the top of the page
Go to the bottom of the page

Samson
Black Hand
GroupAdministrators
Posts3,639
JoinedJan 1, 2002

In all honesty, no offense to Senir, but I find Remcon's version of it much more friendly: Remcon's helpfile code

It performs the same function and has not been shown to be unstable. He has allowed me to include it in AFKMud, and he uses it on his own Smaug deriv. The code doesn't seem to have received nearly the attention it deserves for some reason.

However, it is not technically considered a bugfix and there just isn't the kind of demand behind this feature like there was to get hotboot added as a standard.
       
Post is unread #9 May 11, 2005, 10:16 am   Last edited Nov 25, 2007, 5:21 pm by Samson
Go to the top of the page
Go to the bottom of the page

GatewaySysop
Conjurer
GroupMembers
Posts367
JoinedMar 7, 2005

Samson said:

In all honesty, no offense to Senir, but I find Remcon's version of it much more friendly: Remcon's helpfile code

It performs the same function and has not been shown to be unstable. He has allowed me to include it in AFKMud, and he uses it on his own Smaug deriv. The code doesn't seem to have received nearly the attention it deserves for some reason.

However, it is not technically considered a bugfix and there just isn't the kind of demand behind this feature like there was to get hotboot added as a standard.


Hmm. I believe there was an issue with part of the original code, not just the similar helpfiles snippet, that led to the problems encountered when the snippet searched through the helpfiles to find similar entries.

Basically the change was here (act_info.c, get_help function):

if ( isdigit( argument[0] ) && !is_number(argument))


I believe the !is_number(argument) was the addition.

Though I don't fully recall and didn't read through the whole thread again, I think the issue was level requests being confused with numbers in the helpfile names somehow. This particular fix was supposed to prevent helpfile names like "123" from causing a loop because the name was being taken as a helpfile level.

Anyway, I thought this information might be useful. I would think this could apply to both snippets, but I've not looked at Remcon's so I'm not sure if it would cause a problem there. In any event, hope the info is useful to someone.
       
Post is unread #10 May 11, 2005, 10:25 am
Go to the top of the page
Go to the bottom of the page

Zeno
Sorcerer
GroupMembers
Posts723
JoinedMar 5, 2005

Check out my topic for what the gdb loops were:
http://www.gammon.com.au/forum/bbshowpost.php?bbsubject_id=5042

#0  get_help (ch=0x94374d0, argument=0xfed04570 "2";) at act_info.c:2042
2042        if ( isdigit(argument[0]) )
(gdb) bt
#0  get_help (ch=0x94374d0, argument=0xfed04570 "2";) at act_info.c:2042
#1  0x0805489f in do_help (ch=0x94374d0, argument=0xfed04570 "2";)
    at act_info.c:2277
#2  0x08054b2f in do_help (ch=0x94374d0, argument=0xfed075b0 "2";)
    at act_info.c:2329
#3  0x08054b2f in do_help (ch=0x94374d0, argument=0xfed0a5f0 "2";)
    at act_info.c:2329
       
Post is unread #11 May 11, 2005, 12:38 pm
Go to the top of the page
Go to the bottom of the page

GatewaySysop
Conjurer
GroupMembers
Posts367
JoinedMar 7, 2005

Zeno said:

Check out my topic for what the gdb loops were:
http://www.gammon.com.au/forum/bbshowpost.php?bbsubject_id=5042

#0  get_help (ch=0x94374d0, argument=0xfed04570 "2";) at act_info.c:2042
2042        if ( isdigit(argument[0]) )
(gdb) bt
#0  get_help (ch=0x94374d0, argument=0xfed04570 "2";) at act_info.c:2042
#1  0x0805489f in do_help (ch=0x94374d0, argument=0xfed04570 "2";)
    at act_info.c:2277
#2  0x08054b2f in do_help (ch=0x94374d0, argument=0xfed075b0 "2";)
    at act_info.c:2329
#3  0x08054b2f in do_help (ch=0x94374d0, argument=0xfed0a5f0 "2";)
    at act_info.c:2329



I believe this kind of looping was part of how the above fix came about in the dicsussion on MudPlanet. Have you checked out that old thread yet? Since the fix isn't part of the snippet but part of the base code itself, it would probably happen regardless of whose snippet you used when it ran into requests for helpfiles with numbers in them and mistakenly thought you wanted a helpfile at that level, or something to that effect (still fuzzy on all the details, was a while ago).

       
Post is unread #12 May 11, 2005, 2:02 pm
Go to the top of the page
Go to the bottom of the page

Samson
Black Hand
GroupAdministrators
Posts3,639
JoinedJan 1, 2002

All of those discussions pertained to Senir's code and not Remcon's. Thus far on our own mud we have not been able to make Remcon's code crash anything, even when sending numerical arguments.
       
Post is unread #13 May 11, 2005, 2:07 pm
Go to the top of the page
Go to the bottom of the page

Zeno
Sorcerer
GroupMembers
Posts723
JoinedMar 5, 2005

Eh? In the topic I linked to (Gammon) I did try with Remcon's and it did crash.
       
Post is unread #14 May 11, 2005, 2:07 pm
Go to the top of the page
Go to the bottom of the page

GatewaySysop
Conjurer
GroupMembers
Posts367
JoinedMar 7, 2005

Samson said:

All of those discussions pertained to Senir's code and not Remcon's. Thus far on our own mud we have not been able to make Remcon's code crash anything, even when sending numerical arguments.



This is true, but I changed the get_help function to add that !is_number check, which is not part of either snippet. I'm not sure how this would have affected Remcon's snippet since I had Senir's in and this was to fix the bug with this (have since upgraded to Remcon's. Seems cleaner and I rather like the way the output looks too).

Still, as it's part of the SMAUG code and Zeno reports some issues with this particular chunk of code in get_help anyway (presumably in conjunction with Remcon's snippet, right?), I thought this might be relevant information. :wink:

If not, my apologies, just trying to pass along what I thought might be useful. Also, thanks for pointing me toward Remcon's snippet. :cyclops:

       
Post is unread #15 May 11, 2005, 4:17 pm
Go to the top of the page
Go to the bottom of the page

Samson
Black Hand
GroupAdministrators
Posts3,639
JoinedJan 1, 2002

Yes, I know what was reported, and just like back then, I am not able to duplicate the scenario now either. I understand it may have something to do with bad helps but FUSS still contains those and my test copy for snippet checking does not exhibit this crash behaviour. I'm not saying he's not having an issue, but it might be the result of other things and not the get_help function.

I have also gone and dug up the old thread on MUD Planet and am not able to duplicate the scenario their either where typing
help auth'
with the trailing single quote would crash the code.
       
Post is unread #16 May 11, 2005, 6:36 pm   Last edited May 11, 2005, 9:41 pm by GatewaySysop
Go to the top of the page
Go to the bottom of the page

GatewaySysop
Conjurer
GroupMembers
Posts367
JoinedMar 7, 2005

Samson said:

Yes, I know what was reported, and just like back then, I am not able to duplicate the scenario now either. I understand it may have something to do with bad helps but FUSS still contains those and my test copy for snippet checking does not exhibit this crash behaviour. I'm not saying he's not having an issue, but it might be the result of other things and not the get_help function.

I have also gone and dug up the old thread on MUD Planet and am not able to duplicate the scenario their either where typing
help auth'
with the trailing single quote would crash the code.


I thought I'd try my hand at this and tried a variety of helpfile entries to reproduce the original problems with numeric help entries like "123 crash" or what not, couldn't get it to crash no matter what I did, regardless of the level of the person trying to access the help and the level of the help itself. This is, again, using Remcon's code now.

Still curious about whether or not there are holes in this code though. If anyone has some specific things that are causing crashing, I'd certainly be willing to plug them in and see if I can reproduce it. Whatever I can do to help. :cool:
       
Post is unread #17 May 11, 2005, 7:21 pm
Go to the top of the page
Go to the bottom of the page

Samson
Black Hand
GroupAdministrators
Posts3,639
JoinedJan 1, 2002

Not to sound rude or whatever but you basically just made my point :)

The crashes experienced were with Senir's code, not Remcon's, that's all I was trying to get across. As you have just noticed, his code doesn't barf on the same test conditions. Doesn't mean it's flawless, but until someone finds data it chokes on and it can be verified elsewhere, I have to assume the bug is not in Smaug but in Senir's code.
       
Post is unread #18 May 11, 2005, 8:16 pm
Go to the top of the page
Go to the bottom of the page

Zeno
Sorcerer
GroupMembers
Posts723
JoinedMar 5, 2005

I'll put in Remcon's code in stock FUSS and test it out, see what I can come up with. Tomorrow perhaps, after I get out of my new job.
       
Post is unread #19 May 11, 2005, 9:41 pm
Go to the top of the page
Go to the bottom of the page

GatewaySysop
Conjurer
GroupMembers
Posts367
JoinedMar 7, 2005

Samson said:

Not to sound rude or whatever but you basically just made my point :)

The crashes experienced were with Senir's code, not Remcon's, that's all I was trying to get across. As you have just noticed, his code doesn't barf on the same test conditions. Doesn't mean it's flawless, but until someone finds data it chokes on and it can be verified elsewhere, I have to assume the bug is not in Smaug but in Senir's code.



Oh I understood that the first time you said it. :wink:

I had upgraded to Remcon's snippet when you mentioned it earlier in the thread. After that, I decided to try and reproduce the kinds of problems I had before and that Zeno said he was having, presumably with Remcon's snippet since that's apparently what he's having problems with at the moment. I understand he had Senir's in and now he's changed to Remcons and still having the problem(s). If I'm wrong here, please correct me.

So yes, I did confirm what you said, but not because I didn't understand what you were saying. :cyclops:

Like I said before, only trying to help figure out what the problem may be. To that end, I'm still up for helping to try and reproduce / verify things if anyone comes up with something. :cool:
       
Post is unread #20 May 12, 2005, 2:51 am
Go to the top of the page
Go to the bottom of the page

Oferi

GroupMembers
Posts3
JoinedMay 5, 2005

I looked at both persons code and saw that Remcon's snippet might have been made after Senir's and thus had the bugs chinked out. I am debating using Remcon's snippet now that I see how it is progressed.

Thank you for all your insights.
       
Pages:<< prev 1, 2 next >>