Results 1 to 6 of 6

Thread: SPS Pathing

  1. #1
    Join Date
    Apr 2016
    Posts
    20
    Mentioned
    1 Post(s)
    Quoted
    5 Post(s)

    Question SPS Pathing

    Hi guys, i'm having a problem with SPS pathing, this is probably really simple, but ohwell.
    I tried getting my char to walk to a location. but it says:
    "WARNING: sps.getPlayerPos(): Didn't find enough matches accurately calc your postion
    -- sps.getPlayerPos(): result = {X = -1, Y = -1}, took 16 ms"

    My path is correct, I don't really know what I'm doing wrong, it could be my set up? not quite sure, any help would be appreciated

    code I'm using for SPS(if it helps)
    Simba Code:
    procedure runToMeme();
      var
        pathToMeme: TPointArray;
      begin
       if not isLoggedIn() then
        exit;

        pathToMeme := [Point(60, 85), Point(83, 104), Point(82, 127), Point(72, 146), Point(50, 136)];

        if SPS.walkPath(pathToMeme) then
        minimap.waitPlayerMoving()
      else
        writeLn('Unable to walk to the meme');
        end;

  2. #2
    Join Date
    Sep 2014
    Location
    C:\Simba\
    Posts
    565
    Mentioned
    9 Post(s)
    Quoted
    71 Post(s)

    Default

    Well to begin with your path isn't correct. If you read a tutorial on making a SPS path then it should say the x and y distance from Point A to Point B shouldn't be greater than ten, preferably around 5. Your path is jumping 20 points.

    If your map on rs is for some reason zoomed out and or the coordinates have to be so far apart from each other then it's your map. Are you using the default map that comes with srl? If so I wouldn't recommend it since it's so different from the actual map in game.
    Feel free to ask me any questions, I will do my best to answer them!

    Previously known as YouPee.

  3. #3
    Join Date
    Apr 2016
    Posts
    20
    Mentioned
    1 Post(s)
    Quoted
    5 Post(s)

    Default

    Quote Originally Posted by Joopi View Post
    Well to begin with your path isn't correct. If you read a tutorial on making a SPS path then it should say the x and y distance from Point A to Point B shouldn't be greater than ten, preferably around 5. Your path is jumping 20 points.

    If your map on rs is for some reason zoomed out and or the coordinates have to be so far apart from each other then it's your map. Are you using the default map that comes with srl? If so I wouldn't recommend it since it's so different from the actual map in game.
    I read a section on making them in a tutorial(https://villavu.com/forum/showthread.php?t=107757), and it doesn't specify distance from A to B, so... The reason I made it jump '20 points' is so I didn't have like 3000 points, and because the path i'm pathing(?) to isn't very long either, but if that's the way to go. I can change it. I'm using a map that I took a screenshot of from RS itself.
    Last edited by hyperoux; 05-06-2016 at 09:52 AM.

  4. #4
    Join Date
    Feb 2015
    Posts
    422
    Mentioned
    41 Post(s)
    Quoted
    226 Post(s)

    Default

    Hey, can you show us the map you are trying to use? The problem doesn't seem to be with the path. The problem is that SPS can't locate your player on the map.

  5. #5
    Join Date
    Sep 2014
    Location
    C:\Simba\
    Posts
    565
    Mentioned
    9 Post(s)
    Quoted
    71 Post(s)

    Default

    Oh it was getPlayerPos. Then it's probably the map yeah.
    P.S. The size of the map is important, it has to be able to see everything around you and then some at any given point. So always add some distance even though you think you'll never run there.
    Last edited by Joopi; 05-06-2016 at 03:36 PM.
    Feel free to ask me any questions, I will do my best to answer them!

    Previously known as YouPee.

  6. #6
    Join Date
    Apr 2016
    Posts
    20
    Mentioned
    1 Post(s)
    Quoted
    5 Post(s)

    Default

    Quote Originally Posted by Joopi View Post
    Oh it was getPlayerPos. Then it's probably the map yeah.
    P.S. The size of the map is important, it has to be able to see everything around you and then some at any given point. So always add some distance even though you think you'll never run there.
    Quote Originally Posted by fady View Post
    Hey, can you show us the map you are trying to use? The problem doesn't seem to be with the path. The problem is that SPS can't locate your player on the map.
    Yeah it was the Map, I made a bigger one and it's working fine now, I thought since I wasn't going too far, I wouldn't need a big SPS map, Guess I do haha. Thank you for your help. appreciate it.

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
  •