Page 14 of 16
Re: Mudlet Mapper preview
Posted: Sat Jan 15, 2011 12:13 am
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.
Re: Mudlet Mapper preview
Posted: Sat Jan 15, 2011 9:44 am
by Heiko
This only affects the mapper as a mini window? Normal dock window mappers are not affected, are they?
Re: Mudlet Mapper preview
Posted: Sat Jan 15, 2011 1:40 pm
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.
Re: Mudlet Mapper preview
Posted: Tue Jan 18, 2011 8:44 am
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.
Re: Mudlet Mapper preview
Posted: Sun Jan 23, 2011 4:42 pm
by Vadi
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
Posted: Sun Jan 23, 2011 4:49 pm
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]
Re: Mudlet Mapper preview
Posted: Sun Jan 23, 2011 8:10 pm
by Vadi
An example of how to use setMapperView would be nice. Can't seem to get it to work.
Re: Mudlet Mapper preview
Posted: Thu Jan 27, 2011 8:55 pm
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.
Re: Mudlet Mapper preview
Posted: Thu Jan 27, 2011 8:58 pm
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.
Re: Mudlet Mapper preview
Posted: Fri Feb 04, 2011 1:52 pm
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.