Page 1 of 6 123 ... LastLast
Results 1 to 25 of 142

Thread: SPS Walking Guide (The Basics) By Aligndude

  1. #1
    Join Date
    Nov 2011
    Posts
    1,589
    Mentioned
    9 Post(s)
    Quoted
    17 Post(s)

    Post SPS Walking Guide (The Basics) By Aligndude

    Hey
    SPS, stands for SRL POSITIONING SYSTEM.
    SPS is a way of making a script walk.(... Yea).
    Lets Start.
    The Includes This has to be located at the Top of the Script.
    Simba Code:
    {$i srl/srl.simba}
    {$i sps/sps.simba}

    To set SPS up. You always have to do this before you start SPS.
    Simba Code:
    SPS_Setup(RUNESCAPE_SURFACE,['3_1']);
    You can see RUNESCAP_SURFACE. This is saying that you want to walk on the Main Map of RS. If you want to Walk in Different area's you can find them by going: C:\Simba\Includes\SPS\img\
    You should see a list of folders like this:

    These are the different RS Area.

    Next you can see this:
    Simba Code:
    , [3_1]]);

    There are two ways to get these the '3_1' (There are loads not just that).
    To get these and make the Path I use a Program Called "Path Creator" you can download this Here:http://villavu.com/forum/showthread....t=path+creator

    Once you have Downloaded it Open it up.
    Should Look like this.


    Next you Click on New Image and it should Show Something like this:


    Find The File Runescape_Surface.PNG and Open it.
    It should load and it looks like it hasn't becuase all you can see is blue, but it is there :P to find Locations you can either scroll along the map or use the pre made locations I'm going to use that to go to Varrock for this Tutorial.


    Then you should be able to see Varrock, if you Click on the Map You'll Be able to see a Blue square with a Blue Ring Around it like in the image below.

    This is a TPoint (Spot where the Bot will Walk to). The blue ring is the MiniMap (So its what the MiniMap can See).

    To make your Path
    Click in the blue ring in the direction you want to go to, Like this:


    Once made your Path if you look to the bottom of the Program you should be able to see this:


    Click Generate path in the larger Box, and then it will look like this:

    This is your Path.
    Copy that and Paste it in to Simba: (Also Included SRL and Put SetupSRL; Before everything (My Bad :P))

    If you Notice I have nothing in the
    Simba Code:
    SPS_Setup's {[]}
    this is because I haven't copied it(the SPS Area) from the Path Creator.

    Before that I always do this before I copy it, I click in a huge square around my path as you can see in the image below (The red shaped things to show you my extra points):

    I do this because a lot of the time it fails to walk even though the Path is Correct and the Areas are what the Path Creators says.
    Before More Points:
    Simba Code:
    SPS_Setup(RUNESCAPE_SURFACE,['11_7','11_6']);
    After More Points:
    Simba Code:
    SPS_Setup(RUNESCAPE_SURFACE,['11_7','11_6','10_6','10_7','12_7','12_6']);
    I found adding more works better but if you don't want to it may work with out.

    Ow I almost Forgot, The Vars.
    The Path Name can be Anything you want it doesn't matter, but thr Var has to be the same.
    Simba Code:
    Var
      MyPath:TPointArray;
    If its only one point it will be:
    Simba Code:
    Var
      MyPath:TPoint;
    This will be if you only have to walk to one point say at CW Bank, after you've teleported there.

    Making it Walk
    Once you Have everything made the Path and the Area, Now you can make it walk.
    There are Two Commands One for a path walking and one for a single position walking.
    Simba Code:
    SPS_WalkPath();
    Path Walking
    Simba Code:
    SPS_WalkToPos();
    Walking to a Position.

    All In
    With every thing in your Script should look similar to this:
    Simba Code:
    program SPSTut;
    {$i srl/srl.simba}
    {$i sps/sps.simba}
    Var
      myPath:TPointArray;
    begin
      SetupSRL;
      SPS_Setup(RUNESCAPE_SURFACE,['11_7','11_6','10_6','10_7','12_7','12_6']);//SPS Areas
      myPath := [Point(4684, 2963), Point(4675, 2957), Point(4667, 2947),
      Point(4662, 2936), Point(4644, 2936), Point(4638, 2927), Point(4628, 2918),
      Point(4628, 2905), Point(4622, 2891), Point(4619, 2872), Point(4619, 2863),
      Point(4597, 2851), Point(4580, 2840), Point(4557, 2841), Point(4534, 2837),
      Point(4517, 2831), Point(4510, 2816), Point(4503, 2804), Point(4502, 2792),
      Point(4500, 2778), Point(4509, 2773), Point(4526, 2776), Point(4543, 2774),
      Point(4550, 2766), Point(4553, 2756), Point(4564, 2748)];//Path
      SPS_WalkPath(myPath);
    end.
    SUCCESS! If you have Followed my Tutorial your Script should be able to walk to any Location.
    There are Some things you may want to know SPS isn't the Best in the Deserts or Snowy area, but Hopefully SPS 2 should improve this!
    Hope this Has Helped Some People
    Mat
    Last edited by Mat; 01-11-2012 at 10:35 PM.



    ^^

  2. #2
    Join Date
    Dec 2011
    Posts
    195
    Mentioned
    2 Post(s)
    Quoted
    17 Post(s)

    Default

    Nice!
    The writing is a bit sloppy, but the guide is still easy to understand so it's not a problem.
    I'm gonna try this on now!

  3. #3
    Join Date
    Nov 2011
    Posts
    1,589
    Mentioned
    9 Post(s)
    Quoted
    17 Post(s)

    Default

    Yea my Grammar and English is terrible Even tho I am English
    Mat



    ^^

  4. #4
    Join Date
    Dec 2011
    Location
    United States
    Posts
    960
    Mentioned
    21 Post(s)
    Quoted
    504 Post(s)

    Default

    Im going to try this out.

    Edit:
    Nope... SPS still doesnt work well for me. It missclicks and gets suck halfway through my path.
    Last edited by Wetish; 01-08-2012 at 06:45 PM.

  5. #5
    Join Date
    Nov 2011
    Posts
    46
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Very helpful guide. Was wondering why it wasn't working in Al-Kharid but then I remembered it didn't work very well in the desert
    Last edited by Failedpure; 01-11-2012 at 11:18 PM.

  6. #6
    Join Date
    Nov 2011
    Posts
    1,589
    Mentioned
    9 Post(s)
    Quoted
    17 Post(s)

    Default

    Quote Originally Posted by Siel View Post
    Im going to try this out.

    Edit:
    Nope... SPS still doesnt work well for me. It missclicks and gets suck halfway through my path.
    Try making your path points closer together it, might not seem they are needed as it clicks the furthest one away.
    Try that.
    Mat



    ^^

  7. #7
    Join Date
    Jan 2012
    Posts
    23
    Mentioned
    0 Post(s)
    Quoted
    10 Post(s)

    Default

    thanks this helped alot im trying to learn how to code a bot to help the community out!

  8. #8
    Join Date
    Oct 2011
    Location
    UK
    Posts
    1,322
    Mentioned
    2 Post(s)
    Quoted
    1 Post(s)

    Default

    Good guide, you should add things like more of the SPS functions and what they can be used for

  9. #9
    Join Date
    Aug 2008
    Location
    Finland
    Posts
    2,851
    Mentioned
    3 Post(s)
    Quoted
    2 Post(s)

    Default

    SPS stands for SRL Positioning System.

    EDIT: Nice guide, thanks!
    Last edited by marpis; 01-10-2012 at 09:37 AM.

  10. #10
    Join Date
    Dec 2011
    Posts
    392
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Great guide, this has been needed. Hero helps me with this awhile ago, it was actually one of your scripts that got me interested in it. It is a fantastic walking method (usually).

  11. #11
    Join Date
    Oct 2007
    Location
    If (Online) then Loc := ('On comp') else Loc := ('Somewhere else!');
    Posts
    2,020
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I cant get it to add the area? why>?

  12. #12
    Join Date
    Nov 2011
    Posts
    1,589
    Mentioned
    9 Post(s)
    Quoted
    17 Post(s)

    Default

    By that you mean?
    Simba Code:
    SPS_Setup(RUNESCAPE_SURFACE,['12_1','11_1']);
    That part?
    Mat



    ^^

  13. #13
    Join Date
    Jan 2007
    Posts
    94
    Mentioned
    0 Post(s)
    Quoted
    6 Post(s)

    Default

    Helped a lot to understand the basics. Thanks

  14. #14
    Join Date
    May 2007
    Location
    Waterloo, Ontario, Canada
    Posts
    1,008
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    This actually helped me... and I thought I knew enough about SPS as it is... apparently there's more to know, lol. Awesome guide dude.



  15. #15
    Join Date
    Jan 2012
    Location
    Minneapolis, Mn
    Posts
    185
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Nice guide, I plan on testing this out soon!

  16. #16
    Join Date
    Nov 2011
    Posts
    67
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    WOW thank you so much that help me so much !!!!

  17. #17
    Join Date
    Jan 2012
    Location
    Under your bed.
    Posts
    414
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Thanks alot! I can start making my scrips walking now!

  18. #18
    Join Date
    Dec 2011
    Location
    florida
    Posts
    72
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    NVM hope this work if it does my first script made ^^
    Last edited by lol305; 01-21-2012 at 09:24 PM.

  19. #19
    Join Date
    Dec 2011
    Location
    florida
    Posts
    72
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Simba Code:
    program rockfishwalker;
    {$i srl/srl.simba}
    {$i sps/sps.simba}
     Var
      myPath:TPointArray;
    begin
      SPS_Setup(living_rock_caverns,[0_1]);//SPS Area
    myPath := [Point(159, 167), Point(159, 167), Point(166, 167),
    Point(166, 167), Point(171, 166), Point(171, 166), Point(173, 172),
    Point(173, 172), Point(175, 181), Point(175, 181), Point(174, 193),
    Point(174, 193), Point(175, 201), Point(175, 201), Point(173, 212),
    Point(173, 212), Point(169, 219), Point(169, 219), Point(163, 225),
    Point(163, 225), Point(156, 238), Point(156, 238), Point(153, 243),
    Point(153, 243), Point(152, 246), Point(151, 250)];
    end

    Okay so tryed to test it but keep saying this
    [Error] (8:13): Unknown identifier 'living_rock_caverns' at line 7
    Compiling failed.

  20. #20
    Join Date
    Dec 2011
    Location
    New York, USA
    Posts
    1,242
    Mentioned
    12 Post(s)
    Quoted
    193 Post(s)

    Default

    Wow this is a really great tutorial. I wish you made it sooner, it was hard for me to figure out SPS.

  21. #21
    Join Date
    Nov 2011
    Posts
    1,589
    Mentioned
    9 Post(s)
    Quoted
    17 Post(s)

    Default

    Quote Originally Posted by lol305 View Post
    Simba Code:
    program rockfishwalker;
    {$i srl/srl.simba}
    {$i sps/sps.simba}
     Var
      myPath:TPointArray;
    begin
      SPS_Setup(living_rock_caverns,[0_1]);//SPS Area
    myPath := [Point(159, 167), Point(159, 167), Point(166, 167),
    Point(166, 167), Point(171, 166), Point(171, 166), Point(173, 172),
    Point(173, 172), Point(175, 181), Point(175, 181), Point(174, 193),
    Point(174, 193), Point(175, 201), Point(175, 201), Point(173, 212),
    Point(173, 212), Point(169, 219), Point(169, 219), Point(163, 225),
    Point(163, 225), Point(156, 238), Point(156, 238), Point(153, 243),
    Point(153, 243), Point(152, 246), Point(151, 250)];
    end

    Okay so tryed to test it but keep saying this
    [Error] (8:13): Unknown identifier 'living_rock_caverns' at line 7
    Compiling failed.
    Hey Man its saying that the RS Area is there meaning the folder isn't there for the Living Rock Caverns you'd have to create your Own Map.
    Mat



    ^^

  22. #22
    Join Date
    Nov 2007
    Posts
    236
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

  23. #23
    Join Date
    Dec 2011
    Location
    Toronto, Ontario
    Posts
    6,424
    Mentioned
    84 Post(s)
    Quoted
    863 Post(s)

    Default

    Simba Code:
    SPS_Areas := ['0_0','0_1'];
      myPath := [Point(361, 318), Point(360, 377), Point(365, 397), Point(363, 429), Point(323, 439), Point(293, 417), Point(254, 409), Point(234, 415)];

    I get an error -
    Simba Code:
    [SPS] SPS_Setup() took 156 ms. Loaded 1 areas.
    Error: Exception: Access violation at line 146

    at line 146
    Simba Code:
    SmallMap := SPS_BitmapToMap(Minimap, 5);

    Pl0x help :c
    I'm trying to walk through Taverly Dungeon btw :0

  24. #24
    Join Date
    Nov 2011
    Posts
    1,589
    Mentioned
    9 Post(s)
    Quoted
    17 Post(s)

    Default

    Sps 1.5?
    If So I couldn't get it to work as I always got that no matter what I tried to do.
    Sorry
    Mat



    ^^

  25. #25
    Join Date
    Nov 2011
    Posts
    23
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    program SPSTut;
    {$i srl/srl.simba}
    {$i sps/sps.simba}
    Var
    myPath:TPointArray;
    begin
    SetupSRL;
    SPS_Setup(RUNESCAPE_SURFACE,['11_7','11_6','10_6','10_7','12_7','12_6']);//SPS Areas
    myPath := [Point(4684, 2963), Point(4675, 2957), Point(4667, 2947),
    Point(4662, 2936), Point(4644, 2936), Point(4638, 2927), Point(4628, 2918),
    Point(4628, 2905), Point(4622, 2891), Point(4619, 2872), Point(4619, 2863),
    Point(4597, 2851), Point(4580, 2840), Point(4557, 2841), Point(4534, 2837),
    Point(4517, 2831), Point(4510, 2816), Point(4503, 2804), Point(4502, 2792),
    Point(4500, 2778), Point(4509, 2773), Point(4526, 2776), Point(4543, 2774),
    Point(4550, 2766), Point(4553, 2756), Point(4564, 2748)];//Path
    SPS_WalkPath(myPath);
    end.

    On Your code i get an error Exception in Script: Unable to find file 'sps/sps.simba' used from ''

Page 1 of 6 123 ... LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •