I wrote this program for my own use but if it is any help to anyone else then here you go.
So, its not perfect, it needs care to use but this programme will take a Discworld log file (text file) and strip out the maps and add them together to
make a big map. If you intend to print it out, I suggest that you don’t make the map too wide as Notepad or Wordpad and the like may wrap the text before
it prints it and spoil the layout. You can print in Landscape and get a map about 120 rooms wide but as long as you like. Its up to you, try it and see.
OK so now the restrictions. The parser works by looking for commands/directions at the start of a line. i.e.. south or map or whatever must be at the start
of the line. It understands north, south, east, west, northeast, northwest, southeast, southwest, up, down, climb <one of the given directions>
The Mapper starts with the first ‘map’ instruction.
It would only work in the SUR with maps 21 x 21 Chrs. So it would not work in rain or snow when the map size is reduced or in towns, buildings or
villages. However, I have adjusted this in V1.2. You can add a line to the log in the form 'MSIZEnn'. The parser will take the number nn and use it as the
map size. So the standard is MSIZE21 and this is assumed if no MSIZE is given. Insert MSIZE19 and it will read the 19x19 maps you get in light rain etc.
You can change map size as many times as you like but if you forget to insert MSIZEnn the output will be very badly flawed. This had a bug and it is now
corrected in V1.3.
You must have the prompt turned off so that you don’t get a ‘>’ or similar at the start of input lines.
You must have ‘local echo’ turned on so your commands are reflected in the ‘world’ window and logged.
Directions must be in full i.e.. northeast not ne. (Programme your cursor keys to give full directions!)
After a direction a room description must appear with ‘obvious exit’ as part of the description. It need not follow immediately but any direction given
before the description will cause the previous direction to be ignored. (Don’t stack instructions!)
If you fail to move in a direction, do not use ‘look’ or any command that will cause a description to be logged. You can move in another direction
provided ‘obvious exit’ has not appeared in intervening text.
Insert 'BPOINT' into the log file at the start of a line and the rest of the file should be ignored.
In V1.3 more checks have been inserted to warn of possible errors in the log file interpretation.
I hope that’s clear. You can move as much as you like between ‘map’ commands but clearly the maps need to overlap to give a full picture.
Give it a try over a small area to see how it works. The rules to follow are, issue the map command every few moves, don’t move again until a full room
description has been displayed and if you don’t move after issuing a command then don’t ‘look’ at your location.
The map starts on level 6 and can go up or down 5 levels. Each level will be drawn the same size and rooms that are blank (no information about) will be
shown as ‘X’ otherwise the output is the same as the MUD map.
If you download this please e-mail and let me know.
As always no warranty is given to the use or effect of the program.