I take it back. It solved the problem up until restarting mudlet.Caled wrote:Thanks heaps! It does indeed solve the problem, and supply a bunch of features that I hadn't had the chance to notice were missing yet, because I hadn't yet seen that link. I thought the mapper preview thread wasn't in use anymore and figured I had to write that stuff myself.Vadi wrote:Pretty sure latest xml here accounts for gmcp: http://drop.io/mudlet_mapper by calling centerview on new room id's.
Now it doesn't solve the problem anymore. I figure that turning gmcp on required a restart before it was actually ON, but I may be wrong.
Name of the script object: "mmp_center_roominfo"
Event handler registered for the script object: "gRoomInfo"
Script:
function mmp_center_roominfo()
centerview(gmcp.RoomInfo.num)
end
I put a test echo into the above function, and it doesn't seem to be firing upon room movement. I checked to make sure GMCP data is present by using display(gmcp). It definitely is. The debug window doesn't show any errors, and doesn't show any functions at all being run upon room movement.
Incidentally, I'm using a fresh install and blank profile, in Aetolia, pre7 mudlet, with the xml file you (Vadi) linked me to. I can confirm that the mapper does follow me around and display correctly without gmcp enabled.
I tried to find where gRoomInfo is raised, but it doesn't seem to be anywhere in the scripts that come with the xml file. Maybe it is a system event raised from Heiko's end.
Edit:
System Message:
GMCP event <gmcp.Room.Info> display(gmcp) to see the full content
Is there any way to see if a mudlet event is actually being raised or not? I can verify that the event handler function is not running, and that there is no error, which suggests that the event is not being raised, but I don't really know for sure.