|
Fizgar Magician
Joined: 07 Feb 2002 Posts: 333 Location: Central Virginia
|
Posted: Tue Nov 30, 2010 12:15 am
[Suggestion] Possible change to default English directions package. |
The current English Directions package looks something like this.
Code: |
<class name="Directions" initenable="true" id="1">
<notes>Default direction settings (cardinal directions)</notes>
<dir name="n" reverse="s" dir="n" id="2">n|north</dir>
<dir name="s" reverse="n" dir="s" id="3">s|south</dir>
<dir name="w" reverse="e" dir="w" id="4">w|west</dir>
<dir name="e" reverse="w" dir="e" id="5">e|east</dir>
<dir name="u" reverse="d" dir="u" id="6">u|up</dir>
<dir name="d" reverse="u" dir="d" id="7">d|down</dir>
</class>
<class name="DirectionsDiag" initenable="true" id="8">
<notes>Default direction settings (diagonal directions)</notes>
<dir name="h" reverse="l" dir="nw" id="9">nw|northwest</dir>
<dir name="j" reverse="k" dir="ne" id="10">ne|northeast</dir>
<dir name="k" reverse="j" dir="sw" id="11">sw|southwest</dir>
<dir name="l" reverse="h" dir="se" id="12">se|southeast</dir>
</class> |
If you have the open door string in the mapper config set to:
When you reach a door that is south of you, on the map, when speedwalking, open s will be sent to the mud. This is ok except alot of MUDs check your inventory when sending an open command first. So if you hand an item with a keyword of say Shoddy in your inventory, the mud would try to open that instead of the door south for those types of muds.
I suggest the current English directions package be changed to this:
Code: |
<class name="Directions" initenable="true" id="1">
<notes>Default direction settings (cardinal directions)</notes>
<dir name="n" reverse="s" dir="n" id="2">north|n</dir>
<dir name="s" reverse="n" dir="s" id="3">south|s</dir>
<dir name="w" reverse="e" dir="w" id="4">west|w</dir>
<dir name="e" reverse="w" dir="e" id="5">east|e</dir>
<dir name="u" reverse="d" dir="u" id="6">up|u</dir>
<dir name="d" reverse="u" dir="d" id="7">down|d</dir>
</class>
<class name="DirectionsDiag" initenable="true" id="8">
<notes>Default direction settings (diagonal directions)</notes>
<dir name="h" reverse="l" dir="nw" id="9">northwest|nw</dir>
<dir name="j" reverse="k" dir="ne" id="10">northeast|ne</dir>
<dir name="k" reverse="j" dir="sw" id="11">southwest|sw</dir>
<dir name="l" reverse="h" dir="se" id="12">southeast|se</dir>
</class> |
The above change will cause open south to be sent to the mud in the above situation rather than open s. I have noticed no bad side affects from this change so far. So if that continues to hold true, it seems logical that making the edited package the default would make CMUD more user friendly.
This is just some food for thought. Maybe some of the other users could play around with the edited package and see if they have the same positive affects. |
|
_________________ Windows Vista Home Premium SP2 32-bit
AMD Athlon Dual Core 4400+ 2.31 GHz
3 GB RAM
CMUD 3.34 |
|
|
|
Fizgar Magician
Joined: 07 Feb 2002 Posts: 333 Location: Central Virginia
|
Posted: Tue Nov 30, 2010 7:01 am |
One thing I've noticed in doing the above is you need to uncheck Use short exit names in MapPreferences > Configuration > Room Exits if the mud displays short exits, or they won't be detected when mapping. From this, I guess the n|north syntax I changed to north|n is setting shortname|longname? Unchecking that option causes the mapper to check for the longname which is now assigned the short exit name?
|
|
_________________ Windows Vista Home Premium SP2 32-bit
AMD Athlon Dual Core 4400+ 2.31 GHz
3 GB RAM
CMUD 3.34 |
|
|
|
Zugg MASTER
Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: Tue Nov 30, 2010 6:10 pm |
This is a more complicated change than you are aware and could break a lot of existing mappers and scripts. I'd rather improve the way the "open" command is used to allow it to send the long name instead of the short name.
|
|
|
|
Fizgar Magician
Joined: 07 Feb 2002 Posts: 333 Location: Central Virginia
|
Posted: Tue Nov 30, 2010 10:15 pm |
Yeah, it's possible that something like this could break a script here or there I guess. I've tested the reversed long|short package i created against every command and function that comes up in a search of the help files with direction, exit, room and door as the keyword and haven't been able to find anything that doesn't work correctly using the new package. Mainly, I just figured it was a cool discovery, worth mentioning for anyone that plays on a MUD that has problems with the way CMUD sends the short direction instead of the long. This issue doesn't seem to have come up too many times on the forums in the past so maybe the number of MUD's this affects isn't that large. That said I guess I wouldn't put much more thought into this. I have the package saved to a different name, so no future updates will cause problems on this end.
|
|
_________________ Windows Vista Home Premium SP2 32-bit
AMD Athlon Dual Core 4400+ 2.31 GHz
3 GB RAM
CMUD 3.34 |
|
|
|
|
|