[Home] [Downloads] [Search] [Help/forum]

Register forum user name Search FAQ

Gammon Forum

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  Plugins
. . -> [Subject]  Combining Learning Mapper and old SWMud Mapper + Adding Features

Combining Learning Mapper and old SWMud Mapper + Adding Features

You need to log onto the forum to reply or create new threads.

  [Refresh] Refresh page

Posted by Petriomelony   (1 post)  [Biography] bio
Date Sat 18 May 2024 07:58 PM (UTC)

I'm hoping to find a way to combine the old SWMud Mapper (https://github.com/nickgammon/plugins/blob/master/SWmud%20mapper.xml) with the newest features of the Learning Mapper, and also add some other things (ie: a way to capture npcs/items in the room also and how often they show up).

I tried using the learning mapper by itself, and it's fairly easy to get working - the only problems I'm having with it are long load times for the map database (ie: multiple seconds causing lag), and I think it even got to the point where the database corrupted and erased itself?

I've been using triggers to specify:

1. Room name - always at start, contained in [] brackets

2. Exits line - contains "obvious exit(s?)" and is in cyan

3. My prompt using a regex

The Learning Mapper is struggling with descriptions, as there are lines that show up between 1 and 2 (actual description) and 2 and 3 (room contents). I would love for it to be able to save both.

Looking at the old SWMud mapper, it seems to use an empty line to recognize the end of the description instead. This is obviously a lot faster (presumably) compared to trying to do all the probability calculations for the whole room.

Would appreciate input on whether the best route would be to try to modify the Learning Mapper, customize the old mapper, or just build a new custom solution entirely using elements of both?


[Go to top] top

Posted by Nick Gammon   Australia  (23,016 posts)  [Biography] bio   Forum Administrator
Date Reply #1 on Sat 18 May 2024 10:45 PM (UTC)
You can get faster and more reliable handling of the database by changing from saving the state file to using a SQLite3 database, which I did in a couple of mappers (not the SWMud one by the looks of it).

I don't think I used SQLite3 in the learning mapper either, to keep things simple.

You can change it, but it isn't trivial.

As for which one to use, you should be able to make a special case in the learning mapper to handle the blank line at the end of the description, but if the SWMud one works there isn't a heap of point in changing.

The learning mapper was really intended to help people in MUDs that didn't have a mapper at all, so that it could do a passable job of mapping. If you already have a mapper that mostly works, I would probably stick with that (except for the SQLite stuff). The mapper Fiendish did for Aaardwolf uses SQLite3 and the source is available, if you want to see how he did it.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Fiendish   USA  (2,525 posts)  [Biography] bio   Global Moderator
Date Reply #2 on Tue 21 May 2024 12:29 PM (UTC)
I think it even got to the point where the database corrupted and erased itself?

One of the problems with using the plugin state XML for storage historically is that there's a file size limit and it used to be very small. It was increased in October 2022 (https://github.com/nickgammon/mushclient/pull/75/files), but there hasn't been a "release" of MUSHclient since before that, so you'd have to get the newer exe from https://github.com/nickgammon/mushclient/releases/download/latest_commit/MUSHclient.exe

[Go to top] 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.


You need to log onto the forum to reply or create new threads.

  [Refresh] Refresh page

Go to topic:           Search the forum

[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

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


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( https://gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Hosted at HostDash]