How does mudlet mapper work?

All and any discussion and development of the Mudlet Mapper.
Post Reply
keevitaja
Posts: 21
Joined: Mon Aug 31, 2015 12:29 am

How does mudlet mapper work?

Post by keevitaja »

Hi,

How is the mapper implemented?

Afaik it does not use sqlite database for room information and it is not written in lua. Am i correct?

I started to write my own mapper for aardwolf using BFS algorithm, but it is very slow..

https://github.com/keevitaja/bfs-lua-te ... r/test.lua

Tanel

User avatar
SlySven
Posts: 1019
Joined: Mon Mar 04, 2013 3:40 pm
Location: Deepest Wiltshire, UK
Discord: SlySven#2703

Re: How does mudlet mapper work?

Post by SlySven »

The map "database" is hardcoded into the C++ source code, we provide some lua commands in a subsystem that provides some access to some parts of that data (some read, some read/write and a few bits, like the "current" player location is write only {yeah, that is a bit wierd!}). A complete abstraction to a separate "standard" database would offer some advantages - standard tools, potential for controlled sharing of map data between multiple characters/profile for a single player (or perhaps in an adventurous setup, for multiple cooperating players? or even other MUD clients) but the primary disadvantage is likely to be speed, the map display and route finding code obviously needs extremely rapid access to potentially any part of the database which would be very hard IMHO to achieve except with such an internal database as we have currently...

Post Reply