Mudlet Mapper preview

User avatar
Vadi
Posts: 5042
Joined: Sat Mar 14, 2009 3:13 pm

Re: Mudlet Mapper preview

Post by Vadi »

Until Heiko can update the preview that fixes the 'if we didn't open the map this session, we'll save it anyway, resulting in a blank latest map' bug, here is a small script to delete the blanks. It does require LuaFileSystem module which doesn't yet come with Mudlet, so you'll need to install it via LuaRocks or otherwise.
Code: [show] | [select all] lua
require "lfs"
local dir = getMudletHomeDir() .. "/map"

for file in lfs.dir(dir) do
	if lfs.attributes(dir .. "/" .. file, "size") == 4 then
	local s,m = os.remove(dir .. "/" .. file)
	if not s then error(m) end
	end
end

User avatar
Vadi
Posts: 5042
Joined: Sat Mar 14, 2009 3:13 pm

Re: Mudlet Mapper preview

Post by Vadi »

IRE fixed the bug of Room.Num not being re-transmitted when you follow someone (and I assume on swimming as well, etc). This'll make the mapper keep track of itself better now.

They also said they're switching to GMCP (aka ATCP v2 but whiney people wanted a crappier name); which is pretty much outlined in http://www.mudstandards.org/forum/viewt ... ?f=7&t=107. So eventually Mudlet will need to get support for it in order to keep the tracking working.

User avatar
Vadi
Posts: 5042
Joined: Sat Mar 14, 2009 3:13 pm

Re: Mudlet Mapper preview

Post by Vadi »

Had two cases now where the mapper looped upon opening the map forever. Here's a bt:
#0 GLWidget::paintGL()() at :0
#1 QGLWidget::glDraw()() at :0
#2 QGLWidget::paintEvent(QPaintEvent*)() at :0
#3 QWidget::event(QEvent*)() at :0
#4 QGLWidget::event(QEvent*)() at :0
#5 QApplicationPrivate::notify_helper(QObject*, QEvent*)() at :0
#6 QApplication::notify(QObject*, QEvent*)() at :0
#7 QCoreApplication::notifyInternal(QObject*, QEvent*)() at :0
#8 QWidgetPrivate::drawWidget(QPaintDevice*, QRegion const&, QPoint const&, int, QPainter*, QWidgetBackingStore*)() at :0
#9 QWidgetPrivate::repaint_sys(QRegion const&)() at :0
#10 QETWidget::translatePaintEvent(_XEvent const*)() at :0
#11 QApplication::x11ProcessEvent(_XEvent*)() at :0
#12 x11EventSourceDispatch(_GSource*, int (*)(void*), void*)() at :0
#13 g_main_context_dispatch() at :0
#14 ??() at :0
#15 g_main_context_iteration() at :0
#16 QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>)() at :0
#17 QGuiEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>)() at :0
#18 QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>)() at :0
#19 QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>)() at :0
#20 QCoreApplication::exec()() at :0
#21 main() at :0

User avatar
Vadi
Posts: 5042
Joined: Sat Mar 14, 2009 3:13 pm

Re: Mudlet Mapper preview

Post by Vadi »

If you click to go to a room with a non-unique name, it seems it won't go to the one on the list but spam to go to all of the ones it finds:
(mapper): Starting speedwalk from 1174 to 2550: nw, n, n, e, nw, n, nw, sw, w, sw, w, sw,
w, w, w, w, nw, w, w, w, nw, w, w, w, w, nw, n, nw, nw, w, nw, w, nw, nw, n, n, nw, n, nw,
n, nw, n, nw, n, nw, n, nw, nw, nw, n, nw, nw, nw, nw, nw, w, w, w, nw, nw, nw, nw, nw,
nw, w, nw, n, n, n, ne, ne, ne, n, nw, n, nw, nw, w, nw, nw, nw, nw, nw, nw, n, n, nw, nw,
ne, nw, nw, ne, n, n, upnw
(mapper): Starting speedwalk from 1174 to 2551: nw, n, n, e, nw, n, nw, sw, w, sw, w, sw,
w, w, w, w, nw, w, w, w, nw, w, w, w, w, nw, n, nw, nw, w, nw, w, nw, nw, n, n, nw, n, nw,
n, nw, n, nw, n, nw, n, nw, nw, nw, n, nw, nw, nw, nw, nw, w, w, w, nw, nw, nw, nw, nw,
nw, w, nw, n, n, n, ne, ne, ne, n, nw, n, nw, nw, w, nw, nw, nw, nw, nw, nw, n, n, nw, nw,
ne, nw, nw, n, n, upnw
(mapper): Starting speedwalk from 1174 to 2552: nw, n, n, e, nw, n, nw, sw, w, sw, w, sw,
w, w, w, w, nw, w, w, w, nw, w, w, w, w, nw, n, nw, nw, w, nw, w, nw, nw, n, n, nw, n, nw,
n, nw, n, nw, n, nw, n, nw, nw, nw, n, nw, nw, nw, nw, nw, w, w, w, nw, nw, nw, nw, nw,
nw, w, nw, n, n, n, ne, ne, ne, n, nw, n, nw, nw, w, nw, nw, nw, nw, nw, nw, n, n, nw, nw,
ne, nw, nw, nw, upnw
Between the branches of a fallen tree.

User avatar
Vadi
Posts: 5042
Joined: Sat Mar 14, 2009 3:13 pm

Re: Mudlet Mapper preview

Post by Vadi »

If I try gotoRoom(5016) from the from room, it'll want to go to the... same room:

(mapper): Starting speedwalk from 4853 to 4853: sw

User avatar
Vadi
Posts: 5042
Joined: Sat Mar 14, 2009 3:13 pm

Re: Mudlet Mapper preview

Post by Vadi »

Another room displaying this peculiarity:

(m&m): current nil, want to go to 14674
(mapper): Starting speedwalk from 4748 to 4748: se, sw, s, se, e

Command was issued gotoRoom(14674), yet it tried to walk to itself, using an invalid exit for the room it was in, and a weird parth to begin with.

User avatar
Vadi
Posts: 5042
Joined: Sat Mar 14, 2009 3:13 pm

Re: Mudlet Mapper preview

Post by Vadi »

Nevermind; turns out these rooms don't exist and gotoRoom should be updated to handle such situations better. Meanwhile, you can use if next(getRoomExits(<number>)) then gotoRoom(<number>) end.

User avatar
Heiko
Site Admin
Posts: 1548
Joined: Wed Mar 11, 2009 6:26 pm

Re: Mudlet Mapper preview

Post by Heiko »

I've added environment colors now in form of thin slates on top of the rooms. Area exits are bright green with smaller environment color slates to make them easier to see.
Attachments
screeny4.png

User avatar
Vadi
Posts: 5042
Joined: Sat Mar 14, 2009 3:13 pm

Re: Mudlet Mapper preview

Post by Vadi »

Not having to redownload the map each time you want to open the mapper would be handy. Sometimes you just don't have a 100kb/s download speed :/

User avatar
Heiko
Site Admin
Posts: 1548
Joined: Wed Mar 11, 2009 6:26 pm

Re: Mudlet Mapper preview

Post by Heiko »

The map gets downloaded only once if there either is no saved map yet or your saved map is an old version (=pre map env colors format). Delete all old saved maps in /maps if you have problems.

Post Reply