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


Register forum user name Search FAQ

Gammon Forum

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  General
. . -> [Subject]  Converting mudlet mapping data map.dat

Converting mudlet mapping data map.dat

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page


Posted by Woodspiral   (11 posts)  [Biography] bio
Date Sat 17 Jul 2021 08:12 AM (UTC)
Message
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.
[Go to top] top

Posted by Nick Gammon   Australia  (23,003 posts)  [Biography] bio   Forum Administrator
Date Reply #1 on Sun 18 Jul 2021 03:39 AM (UTC)
Message

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.


- Nick Gammon

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

Posted by Woodspiral   (11 posts)  [Biography] bio
Date Reply #2 on Mon 19 Jul 2021 06:38 AM (UTC)
Message
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
[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.


8,573 views.

It is now over 60 days since the last post. This thread is closed.     [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.

[Home]


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]