Results 1 to 5 of 5

Thread: SPS not working properly

  1. #1
    Join Date
    Dec 2014
    Posts
    29
    Mentioned
    0 Post(s)
    Quoted
    13 Post(s)

    Default [resolved] SPS not working properly

    Hi everyone

    i was making a script (that i'm also intending to post publicly when it's all finished), but i have some trouble with SPS. Sometimes it kinda works but a lot of the time it litterally walks far away, or it only moves a little and not to the destination. I also need the path to be precise, so it doesn't "missclick" the wrong side of the wall (where the anvil and tanner is), because that looks weird. Anyway here is the procedure:
    Simba Code:
    procedure walkToMine();
    var
       pathToMine: TPointArray;
    begin
      if not isLoggedIn() then
        exit;

      pathToMine := [[198, 39], [196, 66], [171, 72], [135, 77], [134, 113], [133, 141], [131, 177], [129, 203], [154, 237], [167, 271], [189, 276], [184, 305]];

        if SPS.walkPath(pathToMine) then
        minimap.waitPlayerMoving()
      else begin
        writeLn('We failed to walk to the Mine');
        writeLn('Terminating script and logging out...');
        TPlayer.logout();
        terminateScript();
        end
    end;

    It should start in the bank and walk to the varrock east mine. I also need one to go back to the bank, but i really think something is wrong, i'll include a screenshot of the SPS toolbox and my map:VarrockClay.pngSPS Toolbox.PNG

    Any suggestions/advice?
    Last edited by nicerman1; 07-06-2017 at 08:12 AM. Reason: resolved

  2. #2
    Join Date
    Oct 2012
    Posts
    1,258
    Mentioned
    40 Post(s)
    Quoted
    588 Post(s)

    Default

    Change the default SPS settings accuracy, tolerance, & minMatchPercent to see what works best for you. If you're using one giant SPS image, consider breaking it down into smaller chunks.

  3. #3
    Join Date
    Dec 2014
    Posts
    29
    Mentioned
    0 Post(s)
    Quoted
    13 Post(s)

    Default

    Hi, thanks for your response. How exactly can i change this? Where can i find the commands for this?

  4. #4
    Join Date
    Jan 2012
    Posts
    1,596
    Mentioned
    78 Post(s)
    Quoted
    826 Post(s)

    Default

    make the map bigger. it probably cant find itself in the bank.

  5. #5
    Join Date
    Dec 2014
    Posts
    29
    Mentioned
    0 Post(s)
    Quoted
    13 Post(s)

    Default

    Holy shit, i think that was it, thanks a lot!

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
  •