Results 1 to 11 of 11

Thread: SPS walking error

  1. #1
    Join Date
    Nov 2011
    Location
    Australia
    Posts
    418
    Mentioned
    2 Post(s)
    Quoted
    86 Post(s)

    Default SPS walking problems/Reflection maybe?

    Simba Code:
    program test_walker;
    {$i SRL-OSR/SRL.Simba}
    {$i SPS/SPS-OSR.simba}
    procedure WalkToBank;
    var
      myPath:TPointArray;
     begin
     SPS_Setup(runescape_surface, ['13_12']);
     myPath := [Point(328, 274), Point(331, 255), Point(357, 265), Point(363, 290),
     Point(362, 314), Point(365, 335), Point(345, 341), Point(254, 399), Point(74, 219),
     Point(196, 90), Point(397, 98), Point(448, 209), Point(430, 347), Point(346, 341)];
     SPS_WalkPath (myPath);
    end;
    begin
    SetupSRL;
    SPS_Debug := True;
     SPS_AnyAngle := True;
     SetAngle (SRL_ANGLE_HIGH);
    SPS_GetMyPos;
    WalkToBank;
    end.

    In the Debug I get;
    SPS ERROR: SPS_Setup was never called
    I did call it though, or did I incorrectly?

    Could you guys suggest me a reflection tutorial, almost given up on SPS for now.
    Last edited by Syntax; 08-11-2013 at 11:05 AM. Reason: Edit title

  2. #2
    Join Date
    Dec 2011
    Location
    Hyrule
    Posts
    8,662
    Mentioned
    179 Post(s)
    Quoted
    1870 Post(s)

  3. #3
    Join Date
    Feb 2013
    Posts
    103
    Mentioned
    0 Post(s)
    Quoted
    32 Post(s)

    Default

    Try SetupSPS;
    Really though I would use Reflection and SMART 8.2 for walking.

  4. #4
    Join Date
    Nov 2011
    Location
    Australia
    Posts
    418
    Mentioned
    2 Post(s)
    Quoted
    86 Post(s)

    Default

    Quote Originally Posted by Ashaman88 View Post
    Need to call setup sps before calling get my pos. or just remove that get my pos call
    Before or after I call it, it won't work. If I call it afterwards I get the above error, or if I do it. If I do it after it doesn't get my location:
    [SPS] SPS_Setup() took 32 ms. Areas: ['13_12']
    SPS_GetMyPos: Finished in 2839 ms. Result = (-1, -1)
    SPS_GetMyPos: Finished in 2824 ms. Result = (-1, -1)
    SPS_GetMyPos: Finished in 2839 ms. Result = (-1, -1)
    Successfully executed.

  5. #5
    Join Date
    Sep 2012
    Location
    Here.
    Posts
    2,007
    Mentioned
    88 Post(s)
    Quoted
    1014 Post(s)

    Default

    Quote Originally Posted by Blakebn2011 View Post
    Before or after I call it, it won't work. If I call it afterwards I get the above error, or if I do it. If I do it after it doesn't get my location:
    [SPS] SPS_Setup() took 32 ms. Areas: ['13_12']
    SPS_GetMyPos: Finished in 2839 ms. Result = (-1, -1)
    SPS_GetMyPos: Finished in 2824 ms. Result = (-1, -1)
    SPS_GetMyPos: Finished in 2839 ms. Result = (-1, -1)
    Successfully executed.
    Calling SPS_Setup afterwards will ALWAYS error, no exception.

    The result of (-1, -1) when calling it prior is because it could not find you in the given area '13_12'. I will admit, it seems odd that your entire check area is within a single one of the smaller maps, are you absolutely sure you're not supposed to be using a larger amount of mini maps for your setup?

  6. #6
    Join Date
    Nov 2011
    Location
    Australia
    Posts
    418
    Mentioned
    2 Post(s)
    Quoted
    86 Post(s)

    Default

    The place I am travelling to is within two houses of the bank.
    Not sure if that is reasonable, but it should still do something that return null results?
    @Kevin

  7. #7
    Join Date
    Nov 2011
    Location
    Australia
    Posts
    418
    Mentioned
    2 Post(s)
    Quoted
    86 Post(s)

    Default

    Quote Originally Posted by Kevin View Post
    Calling SPS_Setup afterwards will ALWAYS error, no exception.

    The result of (-1, -1) when calling it prior is because it could not find you in the given area '13_12'. I will admit, it seems odd that your entire check area is within a single one of the smaller maps, are you absolutely sure you're not supposed to be using a larger amount of mini maps for your setup?
    Yeah I only need the one map the house i am travelling too is right next door to the building that is next to the bank :P

  8. #8
    Join Date
    Nov 2011
    Location
    Australia
    Posts
    418
    Mentioned
    2 Post(s)
    Quoted
    86 Post(s)

    Default

    Hmm.. I have followed almost every tutorial to do with sps with no luck.
    Should I try reflection instead? I haven't been able to find a good tutorial for it though.
    Thank you.

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

    Default

    Perhaps you could post a picture of where you are walking to and from.

    Until reflection has an updater and a dedicated include... its one of those things you will have to do on your own. i believe brandon posted a walking func as well as Flight has one in his nature crafting script that you could copy/use/etc.

  10. #10
    Join Date
    Sep 2012
    Location
    Netherlands
    Posts
    2,752
    Mentioned
    193 Post(s)
    Quoted
    1468 Post(s)

    Default

    Use reflection, @flight made a walking function + blindwalk (not sure)
    For me it's so far 100% stable.

  11. #11
    Join Date
    Nov 2011
    Location
    Australia
    Posts
    418
    Mentioned
    2 Post(s)
    Quoted
    86 Post(s)

    Default

    Sounds good I will look into it Thanks guys.

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
  •