Mudlet Mapper preview
Re: Mudlet Mapper preview
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.
Re: Mudlet Mapper preview
This only affects the mapper as a mini window? Normal dock window mappers are not affected, are they?
Re: Mudlet Mapper preview
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.
The good news though is that the effects are carried over to the 3D map, which is awesome.
Re: Mudlet Mapper preview
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.
Also, really loving the new 2D mapper.
Re: Mudlet Mapper preview
Bug/typo in current git as of Jan 23rd:
lua_register( pGlobalLua, "setRoomWeight", TLuaInterpreter::setRoomWeight );
lua_register( pGlobalLua, "getRoomWeight", TLuaInterpreter::setRoomWeight );
Re: Mudlet Mapper preview
"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]
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]
Re: Mudlet Mapper preview
An example of how to use setMapperView would be nice. Can't seem to get it to work.
Re: Mudlet Mapper preview
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.
It would be nice if, after double clicking a room name in the mapper, it would return focus to the command prompt.
Re: Mudlet Mapper preview
This hasn't been implemented fully yet, it seems.Vadi wrote:An example of how to use setMapperView would be nice. Can't seem to get it to work.
Re: Mudlet Mapper preview
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.