Page 10 of 10

Re: (mapping script) 3kingdoms Mapper

Posted: Mon Sep 26, 2022 8:16 pm
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

Re: (mapping script) 3kingdoms Mapper

Posted: Sun Oct 02, 2022 12:55 pm
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.