Converting mudlet mapping data map.dat

Posted by Woodspiral on Sat 17 Jul 2021 08:12 AM — 3 posts, 14,829 views.

#0
Hi,

This is a long shot, but has anyone had a go at either converting Mudlet's map.dat format into something the MUSH generic mapper can use, or has written an adapter in Lua for that file type to read it directly?

I admit I haven't delved into the gory details of Mudlet's format yet - I know its some kind of serialized binary, so it's a little piece of work to unserialize it then convert it to json or something lua can read.

The reason I ask is that I have a humoungous map with 1000's of rooms which would be great to read into the generic mapper.

Thank you,
Woody.
Australia Forum Administrator #1

Apparently there is a function to output a JSON format map file.

I don’t know what that format looks like, hopefully it is self-explanatory.

Once you have that you could load that into MUSHclient - it has a plugin that reads JSON.

The MUSHclient mapper does not, per se, have a file format. It expects the surrounding plugin to provide that. Some details here.

#2
Most excellent, Nick, thank you!

That's a new Mudlet function, I'd not noticed it in their API before.

Now I've got a really good starting point for converting the mapping functions over.

Cheers,
Woody