Results 1 to 7 of 7

Thread: Get SPS to work on all directions?

  1. #1
    Join Date
    May 2015
    Posts
    25
    Mentioned
    0 Post(s)
    Quoted
    14 Post(s)

    Default Get SPS to work on all directions?

    Hello,

    I've been developing Runescape scripts for quite a while, but I've always been using SPS facing north.

    I remember seeing the option to make SPS work facing all directions, but I can't remember how.

    How do I do it?

    Thank you in advance.

  2. #2
    Join Date
    Mar 2013
    Location
    Argentina
    Posts
    758
    Mentioned
    27 Post(s)
    Quoted
    365 Post(s)

    Default

    Simba Code:
    SPSanyangle := true;

    if my memory is true.
    Formerly known as Undorak7

  3. #3
    Join Date
    May 2015
    Posts
    25
    Mentioned
    0 Post(s)
    Quoted
    14 Post(s)

    Default

    Quote Originally Posted by Lipcot View Post
    Simba Code:
    SPSanyangle := true;

    if my memory is true.
    Great! I've made it 'work' with all directions, the only problem now is that it isn't doing what it was doing before.

    Before SPSAnyAngle, it would walk to a point if we are not inside a box, now it doesn't do anything.
    I'd guess it's returning true to being inside that box, even though i'm not(?).

    I made the box while facing north, could that be the reason?

    My code is:
    Simba Code:
    if (not intToBox(150, 158, 174, 174).isPointInside(userMap.getPlayerPos())) then
      begin
        userMap.walkToPos(point(162, 170));
      end;

    Are there any alternatives, so I don't have to use a box? I remember seeing 'isInsidePolygon' before registering, would that work any better?

  4. #4
    Join Date
    Mar 2013
    Location
    Argentina
    Posts
    758
    Mentioned
    27 Post(s)
    Quoted
    365 Post(s)

    Default

    Quote Originally Posted by Guiri View Post
    Great! I've made it 'work' with all directions, the only problem now is that it isn't doing what it was doing before.

    Before SPSAnyAngle, it would walk to a point if we are not inside a box, now it doesn't do anything.
    I'd guess it's returning true to being inside that box, even though i'm not(?).

    I made the box while facing north, could that be the reason?

    My code is:
    Simba Code:
    if (not intToBox(150, 158, 174, 174).isPointInside(userMap.getPlayerPos())) then
      begin
        userMap.walkToPos(point(162, 170));
      end;

    Are there any alternatives, so I don't have to use a box? I remember seeing 'isInsidePolygon' before registering, would that work any better?
    i havent used SPS in a long time now, but you should try using sps.debugmypos (or sth like that) sps.debug which will open a window and show you were SPS thinks you are, and there you will know if the map is being read correctly. I remember having trouble with SPSanyangle. From my knowledge, to use it at any angle you must have a BIG and Good quality map, maybe touch a little the Tol and accuracy in the SPS.Setup.

    Your method for seeing if you are inside or not is ok, no need for polygon since its the same but instead of a circle its a polygon
    Formerly known as Undorak7

  5. #5
    Join Date
    May 2015
    Posts
    25
    Mentioned
    0 Post(s)
    Quoted
    14 Post(s)

    Default

    Quote Originally Posted by Lipcot View Post
    i havent used SPS in a long time now, but you should try using sps.debugmypos (or sth like that) sps.debug which will open a window and show you were SPS thinks you are, and there you will know if the map is being read correctly. I remember having trouble with SPSanyangle. From my knowledge, to use it at any angle you must have a BIG and Good quality map, maybe touch a little the Tol and accuracy in the SPS.Setup.

    Your method for seeing if you are inside or not is ok, no need for polygon since its the same but instead of a circle its a polygon
    I've just been testing the DebugPlayerPos feature, and it finds my position even if the map is turned.
    So it does find where I am, the only problem is, with the screen turned (not facing north) it doesn't want to walk to the box.

    Any solution?

  6. #6
    Join Date
    Mar 2013
    Location
    Argentina
    Posts
    758
    Mentioned
    27 Post(s)
    Quoted
    365 Post(s)

    Default

    Quote Originally Posted by Guiri View Post
    I've just been testing the DebugPlayerPos feature, and it finds my position even if the map is turned.
    So it does find where I am, the only problem is, with the screen turned (not facing north) it doesn't want to walk to the box.

    Any solution?
    have you tried using blindwalk?
    Formerly known as Undorak7

  7. #7
    Join Date
    May 2015
    Posts
    25
    Mentioned
    0 Post(s)
    Quoted
    14 Post(s)

    Default

    Quote Originally Posted by Lipcot View Post
    have you tried using blindwalk?
    No, I haven't.
    I doupt it will be that though..

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •