Menu

#20 map

1.0
open
nobody
None
2020-07-15
2020-07-15
Lee Harr
No

Originally reported on Google Code with ID 48 ``` What steps will reproduce the problem? 1. Look for the "map" command 2. There isn't one 3. It would be nice if it existed

What is the expected output? What do you see instead? This is a feature request. There's no map command. If would be nice if one of those existed, where you could just type "map" and see a map of where you are and the connections there are. It could be automagicly generated, but for a first (quicker) approach I would simply make it a command that just reads a text file and shows it (like we show the MOTD when someone connects the MUD) - and let the task of maintaing the MUD map to its admins.

What version of the product are you using? On what operating system?

Latest svn. ```

Reported by mindboosternoori on 2011-04-01 13:32:05
Comments (1)

Former user Account Deleted

``` Here's a patch that implements this (the quicker approach). The map drawing must be a file called MAP (next to where MOTD, for instance, is). Attached is an example of a MAP file (with the "map" of the rooms as they are in a fresh tzmud installation).

--- ../../tzmud-read-only/src/actions.py 2011-04-04 18:01:38.000000000 +0100 +++ src/actions.py 2011-11-09 11:18:08.000000000 +0000 @@ -1023,3 +1025,14 @@

msg = 'Sorry. No help available on that subject.' s.message(msg) + +def cmd_map(s, r=None): + '''map + + Shows you the map. + + ''' + + lines = open('MAP').readlines() + for line in lines: + s.message(line.rstrip())

```

Discussion


Log in to post a comment.