Results 1 to 7 of 7

Thread: Need some help with SPS

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

    Default [resolved] Need some help with SPS

    So i wanted to make a simple utility script to learn about the SPS-system. I wanted to make a script that walks automaticly to the GE. So first i go use the lodestone network to go to varrock, that works and isn't that hard. But then the actual walking part. I followed the mayors guide(https://villavu.com/forum/showthread.php?t=107757),it does the beginning but then it stops randomly in the middle of the path. I'll just post my code, my map and a screenshot of the path it should take. It also doesn't seem that precise, it sometimes clicks in buildings instead of clicking the actual path.

    script:
    Code:
    program GEWalker;
    {$DEFINE SMART}
    {$I SRL-6/SRL.simba}
    {$I SPS/lib/SPS-RS3.Simba}
    procedure TPLodestone();
    begin
     lodestoneScreen.teleportTo(LOCATION_VARROCK);
    end;
    
    procedure WalkToGE();
    var
    pathtoGE: TPointArray;
    begin
     pathtoGE:= [Point(336, 553), Point(322, 554), Point(327, 519), Point(328, 480), Point(326, 444), Point(324, 412), Point(325, 374), Point(302, 349), Point(254, 347), Point(226, 343), Point(223, 311), Point(226, 281), Point(226, 266), Point(194, 270), Point(166, 257), Point(149, 219), Point(149, 183), Point(177, 162)]
      if SPS.walkPath(pathtoGE) then
        minimap.waitPlayerMoving()
    
      else
        writeLn('We failed to walk to the GE');
    end;
    begin
      clearDebug();
      smartEnableDrawing := true;
      setupSRL();
      SPS.setup('Varrock', RUNESCAPE_OTHER);
      SPSanyangle := false;
      minimap.setAngle(MM_DIRECTION_NORTH);
      mainScreen.setAngle(MS_ANGLE_HIGH);
      TPLodestone();
      wait(15000);
      WalkToGE();
    end.
    Image i use as map: Varrock.png
    Screenshot of the SPS program: path.PNG
    Last edited by nicerman1; 07-10-2015 at 12:14 PM.

  2. #2
    Join Date
    Sep 2014
    Posts
    447
    Mentioned
    10 Post(s)
    Quoted
    203 Post(s)

    Default

    There's a lot of information in this thread: https://villavu.com/forum/showthread.php?t=113713

    Also, try not to use the world map as your SPS map.

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

    Default

    Thank you, i will take a look at it tomorrow!

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

    Default

    I dont know where you got this map from, but it looks nothing like the actual minimap. sooo. grab screens from ingame an patch them together. for the best results.

    I ran around and tested this map...
    http://i.imgur.com/tp6GG2I.png

    and noticed no spot on your path that it caused an issue (youll need to make a new one)
    Also, make your points closer, like 3-4 tiles away from the previous spot.

    Simba Code:
    {$DEFINE SMART}
    {$i srl-6/srl.simba}
    {$i sps/lib/sps-rs3.simba}
    begin
      smartShowConsole := false;
      SetupSRL;
      SmartSetEnabled(__smartCurrentTarget, false);
      sps.setup('Varrock2', RUNESCAPE_OTHER);
      while true do
        sps.debugPlayerPos();
    end.
    So use this to test the map.
    So login and another window will popup (like this: http://i.imgur.com/TT8QoOm.png)
    and then you can run around and watch that little 'screen' to see if there are any spots where it has issues detecting your position.

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

    Default

    Thank you very much, it works fine now! So basicly when you use sps you have to screenshot your actual minimap and not the world map?

  6. #6
    Join Date
    Jun 2007
    Location
    The land of the long white cloud.
    Posts
    3,702
    Mentioned
    261 Post(s)
    Quoted
    2006 Post(s)

    Default

    Quote Originally Posted by nicerman1 View Post
    Thank you very much, it works fine now! So basicly when you use sps you have to screenshot your actual minimap and not the world map?
    The world map has different colours than the actual minimap, so SPS finds it hard to match.

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

    Default

    Quote Originally Posted by The Mayor View Post
    The world map has different colours than the actual minimap, so SPS finds it hard to match.
    Ah that explains a lot, didn't know that. Thank you!

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
  •