Mudlet Mapper preview

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

Re: Mudlet Mapper preview

Post by Vadi »

Moving rooms via right-click in the 2D mode of the latest git is a bit hard... the room doesn't seem to follow the mouse exactly.

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

Re: Mudlet Mapper preview

Post by Heiko »

This only affects the mapper as a mini window? Normal dock window mappers are not affected, are they?

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

Re: Mudlet Mapper preview

Post by Vadi »

No, affects normal dock as well... you can see in the video that not only did it get stuck moving some room, even though I was right-clicking on others, and even selecting others (which also forces me to walk there... really the selection should be on right-click only), but it didn't follow the mouse coordinates proper anyhow.

The good news though is that the effects are carried over to the 3D map, which is awesome.

User avatar
Calixa
Posts: 25
Joined: Sat Nov 20, 2010 5:51 pm
Location: Lusternia

Re: Mudlet Mapper preview

Post by Calixa »

Feature request: Add a maximize button to the mapper window when undocked from the client, so it can be maximized on a second screen.

Also, really loving the new 2D mapper.

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

Re: Mudlet Mapper preview

Post by Vadi »

Bug/typo in current git as of Jan 23rd:
lua_register( pGlobalLua, "setRoomWeight", TLuaInterpreter::setRoomWeight );
lua_register( pGlobalLua, "getRoomWeight", TLuaInterpreter::setRoomWeight );

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

Re: Mudlet Mapper preview

Post by Vadi »

"Room costs have been implemented from the beginning. I've called it room weights. -> setRoomWeight( roomID, weight ) Pathfinding is done on the basis of room weights -> the mapper doesn't chose the shortest path but the shortest travel time which is directly related to room weights. Apart from room weights there's also room locks that make sure that the room will never be used for path finding."

I don't think this function works correctly... it does not seem to retrieve the room ID from the arguments as it's implied to.

[cpp]int TLuaInterpreter::setRoomWeight( lua_State *L )
{
int w;
if( ! lua_isnumber( L, 1 ) )
{
lua_pushstring( L, "wrong argument type" );
lua_error( L );
return 1;
}
else
{
w = lua_tonumber( L, 1 );
}
Host * pHost = TLuaInterpreter::luaInterpreterMap[L];
if( pHost->mpMap->rooms.contains( pHost->mpMap->mRoomId ) )
{
pHost->mpMap->rooms[pHost->mpMap->mRoomId]->weight = w;
}

return 0;
}[/cpp]

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

Re: Mudlet Mapper preview

Post by Vadi »

An example of how to use setMapperView would be nice. Can't seem to get it to work.

Pragmatic
Posts: 1
Joined: Thu Jan 27, 2011 8:54 pm

Re: Mudlet Mapper preview

Post by Pragmatic »

I have a usability request,

It would be nice if, after double clicking a room name in the mapper, it would return focus to the command prompt.

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

Re: Mudlet Mapper preview

Post by Vadi »

Vadi wrote:An example of how to use setMapperView would be nice. Can't seem to get it to work.
This hasn't been implemented fully yet, it seems.

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

Re: Mudlet Mapper preview

Post by Vadi »

Bug with spread right-click option in git as of Feb 4th - it spreads rooms on all levels, not on the current one that you've selected only.

Post Reply