Register forum user name Search FAQ

Gammon Forum

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 ➜ Commands and their letters...

Commands and their letters...

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by Toy   (206 posts)  Bio
Date Wed 26 Jun 2002 08:38 PM (UTC)
Message
Ok, when I first downloaded the Smaug code, if you were on the mud and you pressed the 'L' key and then enter, you'd look around the room. Now, when I hit that button, it gives me a list of the languages. Does anyone know where in the code it sets this so by hitting the 'L' key, it'll go back to showing the "Look" command?

-Alexander

It's always good to know how far you are willing to go to be the best...

Karl Mancine
aka
Toy the Dark Puppet
Top

Posted by Neves   USA  (78 posts)  Bio
Date Reply #1 on Wed 26 Jun 2002 09:47 PM (UTC)
Message
What SMAUG does is if you type in something that isn't a command, it searches for the closest command that continues from those letters, so if you type 'l' it was originally coming up with the 'look' command, but now instead it is coming up with whatever command it is, probably 'languages'. The best way to fix it is in commands.dat add:

#COMMAND
Name l~
Code do_look
Position 0
Level 0
Log 0
End

right before the command whose name is languages. You might want to also add entries for the exits w,e,n,s,nw,ne,sw,se. You can also set it so complete command names are needed for it to work and it won't search for a similar command, but this is a nusance to players since they will have to spell everything out, so if you do this you would probably want to add an alias command.

-Mark Calloway
Top

Posted by Festerhead   USA  (8 posts)  Bio
Date Reply #2 on Thu 27 Jun 2002 08:33 PM (UTC)
Message
Another good option to use for command ordering is cedit.

For example...
Typing 'cedit look list' will show you where in the scheme of things, look is compared to the other commands that begin with l.

Type 'cedit' for command editing options.

Hope this makes sense.

FesterHead Radio - Maui's premier Indie, Modern, Progressive, and Classic Rock station.
http://www.festerhead.com
Top

Posted by Dark_Trunks   Australia  (27 posts)  Bio
Date Reply #3 on Fri 28 Jun 2002 03:28 PM (UTC)
Message
I had the exact same problem and I came to the conclusion that it was caused by the use of Nick's 'Area Editor' to edit the commands.

Now please correct me if I'm wrong, but I think that when you save the commands file it puts them all in alphabetical order, when the original file was not. It was ordered by command priority. You see, what happens when you type the command 'L', because it doesn't exist it will down the list and assume the first command it finds that starts with L. Originally this was "Look" but because of the new alphabetical order, it is now "Languages".

If I am right about this, Nick, you might want to rethink your commands.dat file saving for Area Editor (Just a suggestion), because I for one was quite annoyed when I discovered this because now I've had to and manually reorder them all back the way they were.
Top

Posted by Nick Gammon   Australia  (23,158 posts)  Bio   Forum Administrator
Date Reply #4 on Sat 29 Jun 2002 12:15 AM (UTC)
Message
I see what you mean. I have added that as bug/suggestion #471.

- Nick Gammon

www.gammon.com.au, www.mushclient.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.


18,587 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.