Results 1 to 4 of 4

Thread: Trouble with walking

  1. #1
    Join Date
    Mar 2017
    Posts
    4
    Mentioned
    0 Post(s)
    Quoted
    3 Post(s)

    Default Trouble with walking

    I'm using sps to walk to various places using a map (included), but my pathing isn't working properly. It fails to path, then tries to blink walk, but doesn't do that correctly either. Here's a sample of the script. Thanks for the help guys.

    procedure toBank();
    var
    path2: TPointArray;
    begin
    path2 := [[319, 155], [303, 167], [280, 174], [265, 183], [252, 191], [228, 226],
    [209, 244], [190, 258], [189, 286], [175, 310], [167, 346],
    [139, 373], [135, 396], [136, 421], [125, 443]];


    if not sps.walkPath(path2) then
    begin
    writeLn('walkPath() failed, trying blindWalk()');
    sps.blindWalk(path2[high(path2)]);
    end;

    end;

    Final.png

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

    Default

    Quote Originally Posted by sparkman1337 View Post
    I'm using sps to walk to various places using a map (included), but my pathing isn't working properly. It fails to path, then tries to blink walk, but doesn't do that correctly either. Here's a sample of the script. Thanks for the help guys.

    procedure toBank();
    var
    path2: TPointArray;
    begin
    path2 := [[319, 155], [303, 167], [280, 174], [265, 183], [252, 191], [228, 226],
    [209, 244], [190, 258], [189, 286], [175, 310], [167, 346],
    [139, 373], [135, 396], [136, 421], [125, 443]];


    if not sps.walkPath(path2) then
    begin
    writeLn('walkPath() failed, trying blindWalk()');
    sps.blindWalk(path2[high(path2)]);
    end;

    end;

    Final.png
    It looks like you are walking into the water? Point (125, 443) is in the middle of the port sarim ocean. Also, that map is pretty janky. Maybe you can try cutting a chunk from here, although I'm not sure how old this is now.

  3. #3
    Join Date
    Mar 2017
    Posts
    4
    Mentioned
    0 Post(s)
    Quoted
    3 Post(s)

    Default

    Using a new map now based on the surface map you linked me to, thanks by the way. Still having troubles. Here's the new path and map. I am now thinking it is a different issue. The time it takes to get the position of my player takes a really long time, but I'm not sure how to solve that. My debugger read as follows:

    ---- Path exists (C:\Simba\Includes\SPS\img\runescape_other\Real.pn g)
    ---- Setup area "Real" in 4294967327ms
    -- sps.init()
    -- sps.getPlayerPos(): result = {X = 361, Y = 130}, took 4294967562 ms

    procedure toBank();
    var
    path: TPointArray;
    begin
    path := [[361, 130], [331, 147], [308, 163], [290, 194], [261, 212], [240, 235],
    [229, 277], [221, 308], [194, 342], [185, 367], [185, 393], [174, 418]];


    if not sps.walkPath(path) then
    begin
    writeLn('walkPath() failed, trying blindWalk()');
    sps.blindWalk(path[high(path)]);
    end;

    end;

    Real.png
    Last edited by sparkman1337; 04-10-2017 at 01:56 AM.

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

    Default

    Quote Originally Posted by sparkman1337 View Post
    Using a new map now based on the surface map you linked me to, thanks by the way. Still having troubles. Here's the new path and map. I am now thinking it is a different issue. The time it takes to get the position of my player takes a really long time, but I'm not sure how to solve that. My debugger read as follows:

    ---- Path exists (C:\Simba\Includes\SPS\img\runescape_other\Real.pn g)
    ---- Setup area "Real" in 4294967327ms
    -- sps.init()
    -- sps.getPlayerPos(): result = {X = 361, Y = 130}, took 4294967562 ms

    procedure toBank();
    var
    path: TPointArray;
    begin
    path := [[361, 130], [331, 147], [308, 163], [290, 194], [261, 212], [240, 235],
    [229, 277], [221, 308], [194, 342], [185, 367], [185, 393], [174, 418]];


    if not sps.walkPath(path) then
    begin
    writeLn('walkPath() failed, trying blindWalk()');
    sps.blindWalk(path[high(path)]);
    end;

    end;

    Real.png
    Yea I suspect something is wrong with your installation or settings, as your path and map work 100% for me. It goes from the clay mine into the bank.

    Simba Code:
    program new;
    {$DEFINE SMART}
    {$I SRL-6/SRL.simba}
    {$I SPS/lib/sps-rs3.simba}

    procedure toBank();
    var
      path: TPointArray;
    begin
      path := [[361, 130], [331, 147], [308, 163], [290, 194], [261, 212], [240, 235],
               [229, 277], [221, 308], [194, 342], [185, 367], [185, 393], [174, 418]];

      if not sps.walkPath(path) then
      begin
        writeLn('walkPath() failed, trying blindWalk()');
        sps.blindWalk(path[high(path)]);
      end;
    end;

    begin
      setupSRL();
      SPS.setup('Real', RUNESCAPE_OTHER);
      toBank();
    end.

    Code:
    ---- Setup area "Real" in 15ms
    -- sps.init()
    -- sps.getPlayerPos(): result = {X = 350, Y = 130}, took 141 ms
    -- sps.getPlayerPos(): result = {X = 298, Y = 182}, took 156 ms
    -- sps.getPlayerPos(): result = {X = 246, Y = 234}, took 157 ms
    -- sps.getPlayerPos(): result = {X = 226, Y = 294}, took 156 ms
    -- sps.getPlayerPos(): result = {X = 186, Y = 358}, took 172 ms
    ---- Waiting while the player is moving...
    -- sps.walkPath(): result = True
    -- Succesfully freed SMART[8948]
    Successfully executed.

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
  •