(mapping script) 3kingdoms Mapper

All and any discussion and development of the Mudlet Mapper.
sonic306
Posts: 5
Joined: Mon Apr 05, 2021 8:30 pm

Re: (mapping script) 3kingdoms Mapper

Post by sonic306 »

So I have been fiddling with this to try to make it work, so far the script will not follow the movement after using "tmap follow" and when I try to move by double clicking on the map I get the following error:

Code: Select all

object: <> function:<doSpeedWalk>
<getRoomExits: bad argument #1 type (roomID as number expected, got nil!)>
When I check if the function itself does return a value it does return it

Code: Select all

lua getRoomExits(380)
{
  east = 382,
  north = 381,
  south = 413,
  west = 379
}
I have done the various solution provided in previous posts like setting the ISO 8859-1 and changing the ASCII sign to

Code: Select all

string.char(167)
In addition to the above I have also made a change to the aset for simpler matching as follows, essentially removing the "reset+" :

Code: Select all

sendSocket(&quot;aset room_short higreen\n&quot;)
sendSocket(&quot;aset room_short_suff ¡\n&quot;)
sendSocket(&quot;aset room_long brown\n&quot;)
sendSocket(&quot;aset room_exits yellow\n&quot;)
sendSocket(&quot;aset room_exits_suff §)\n&quot;)
If anyone has an idea how to solve this please do share.
One important note to mention is that i am trying to make this work in conjunction with a cmud map I have imported with the cmud import package

sonic306
Posts: 5
Joined: Mon Apr 05, 2021 8:30 pm

Re: (mapping script) 3kingdoms Mapper

Post by sonic306 »

Made some progress on debugging this issue, I have manged to get the character to move according to pressing the rooms on the map manually, all that was missing was the

Code: Select all

tmap.lastId
variable missing.

The current standing issue is getting the map to follow the charter with num key presses.

Post Reply