Results 1 to 3 of 3

Thread: SPS does not fully walk through TPA.

  1. #1
    Join Date
    Dec 2016
    Posts
    49
    Mentioned
    0 Post(s)
    Quoted
    22 Post(s)

    Default SPS does not fully walk through TPA.

    As title states - I opened one of these threads yesterday and it apparently got triggered as spam. Will edit with additional information once I verify this gets created..

    I'm running the following code below. If you want to test - start at the Sheep Pen (Red X) and I am expecting to walk to the Bank. However, it will only click on one point and depending on where it's located will end up within the blue circle in the image below. Also attached clean image.

    My questions:
    1) Is SPS not supposed to walk through each individual point?
    2) This doesn't make sense to me but is the "proper" way of using SPS to put it into a loop?
    3) If all of this is an issue and not intended I've already reinstalled Simba (renamed all folders) I haven't bothered with Java yet would that be a good next step?

    Simba Code:
    program SheepShearer;
    {$DEFINE SMART}
    {$i srl-6/srl.simba}
    {$I SPS/lib/SPS-RS3.Simba}

    Procedure runToBank();
    var
      pathToBank: TPointArray;

    begin
      if (not tabBackPack.isFull()) then
        exit;
      pathToBank := [Point(429, 244), Point(418, 273), Point(405, 292), Point(389, 310), Point(363, 315), Point(340, 317), Point(314, 314), Point(292, 306), Point(263, 297), Point(244, 303)];

      if SPS.walkPath(pathToBank) then
        minimap.waitPlayerMoving()
      else
        writeln('Failed to run to the bank');
    end;

    begin
      smartEnableDrawing := true;
      clearDebug();
      setupSRL();

      SPS.setup('SheepShearerSPS', RUNESCAPE_OTHER);

      runToBank();
    end.





    On top of all of this which is another reason I believe something is off - is I'm having issues with debugging.
    I've attempted the following code below - Get access violation as if it's not able to find it..?

    It takes me to Drawing -
    Error: Access violation at line 119
    Execution failed.
    The following bitmaps were not freed: [Minimap Mask]
    File[C:\Simba\Includes\SRL-6/logs/SRL log (11-12-16 at 08.34.51 PM).txt] has not been freed in the script, freeing it now
    Simba Code:
    program SheepShearer;
    {$DEFINE SMART}
    {$i srl-6/srl.simba}
    {$I SPS/lib/SPS-RS3.Simba}


    Edit:
    begin
      smartEnableDrawing := true;
      clearDebug();
      setupSRL();
      repeat
        smartimage.drawBox(intToBox(1,1,100,100), true, clorange);
      until false;
    end.

    Edit: Drawings working now that I put smartEnableDrawing first. It still however is not actually drawing until AFTER I stop the script. /END WALL OF TEXT
    Last edited by BlitzKrieger; 12-13-2016 at 02:13 AM.

  2. #2
    Join Date
    Dec 2013
    Location
    Pitcairn Island
    Posts
    288
    Mentioned
    20 Post(s)
    Quoted
    166 Post(s)

    Default

    Quote Originally Posted by BlitzKrieger View Post
    Simba Code:
    program SheepShearer;
    {$DEFINE SMART}
    {$i srl-6/srl.simba}
    {$I SPS/lib/SPS-RS3.Simba}


    Edit:
    begin
      smartEnableDrawing := true;
      clearDebug();
      setupSRL();
      repeat
        smartimage.drawBox(intToBox(1,1,100,100), true, clorange);
      until false;
    end.

    Edit: Drawings working now that I put smartEnableDrawing first. It still however is not actually drawing until AFTER I stop the script. /END WALL OF TEXT
    You can walk around manually with this running in the background to see where you are in real time:

    Simba Code:
    repeat
      SPS.debugPlayerPos()
      wait(1000);
    until false;

  3. #3
    Join Date
    Dec 2016
    Posts
    49
    Mentioned
    0 Post(s)
    Quoted
    22 Post(s)

    Default

    Quote Originally Posted by Laquisha View Post
    You can walk around manually with this running in the background to see where you are in real time:

    Simba Code:
    repeat
      SPS.debugPlayerPos()
      wait(1000);
    until false;
    Reboot resolved sps issue.
    Putting smartebable drawing true before setupsrl kind of helped with drawing. Still being weird 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
  •