Results 1 to 17 of 17

Thread: Do any SPS functions make the compass N for you?

  1. #1
    Join Date
    Feb 2006
    Location
    Tracy/Davis, California
    Posts
    12,631
    Mentioned
    135 Post(s)
    Quoted
    418 Post(s)

    Default Do any SPS functions make the compass N for you?

    Trying to keep compass south, using an 'upside down' SPS map I made, and made the path with it.
    I have

    Simba Code:
    begin
      ClearDebug;
      SetUpSRL;
      DeclarePlayers;
      SPS_Setup(RUNESCAPE_OTHER, ['XXXX_UpsideDown']);
      MakeCompass('S');
      WalkToGuy;

    Simba Code:
    Function WalkToGuy:Boolean;
    var
      ToSeer: TPointArray;
    begin
      ToSeer := [Point(265,265),Point(290,241),Point(297,226)];
      if SPS_WalkPath(ToGuy) then
      begin
        result:= True;
        exit;
      end
      else
      begin
        Logout;
        TerminateScript;
      end;
    end;

    Yet this is making turning my compass NORTH.
    What code/lines etc are causing this/how do I stop it?
    Why is this happening?


    Edit:
    Compass no longer a problem.
    I guess SPS_AnyAngle := True; fixed it?
    But now it's just not working
    The map/walk works when N (using appropriate path/map).
    But when turned upside down and path is remade, it does not work, any clue why not?
    Maybe SPS_AnyAngle := True; no workie for me?

    Which function specifically makes the compass turn north in SPS?
    Last edited by YoHoJo; 03-11-2013 at 04:20 PM.

  2. #2
    Join Date
    Oct 2012
    Posts
    758
    Mentioned
    6 Post(s)
    Quoted
    282 Post(s)

    Default

    SPS only works for compass angle 'N'. (Because all SPS maps were created with the angle facing north)
    Making a custom SPS map with compass angle 'S' might solve your problem.

  3. #3
    Join Date
    Feb 2006
    Location
    Tracy/Davis, California
    Posts
    12,631
    Mentioned
    135 Post(s)
    Quoted
    418 Post(s)

    Default

    Quote Originally Posted by Runehack123 View Post
    SPS only works for compass angle 'N'. (Because all SPS maps were created with the angle facing north)
    Making a custom SPS map with compass angle 'S' might solve your problem.
    Quote Originally Posted by YoHoJo View Post
    Using an 'upside down' SPS map, and made the path with it.
    <3hi

  4. #4
    Join Date
    Jul 2011
    Location
    /home/litoris
    Posts
    2,226
    Mentioned
    0 Post(s)
    Quoted
    159 Post(s)

    Default

    Quote Originally Posted by Runehack123 View Post
    SPS only works for compass angle 'N'. (Because all SPS maps were created with the angle facing north)
    Making a custom SPS map with compass angle 'S' might solve your problem.
    Wrong...

    SPS works at any angle, you just have to set

    Simba Code:
    SPS_AnyAngle := True;

    My crafter works facing south.
    Miner & Urn Crafter & 07 Chicken Killer
    SPS BlindWalk Tutorial

    Working on: Nothing

    teacher in every art, brought the fire that hath proved to mortals a means to mighty ends

  5. #5
    Join Date
    Oct 2012
    Posts
    758
    Mentioned
    6 Post(s)
    Quoted
    282 Post(s)

    Default

    Quote Originally Posted by litoris View Post
    Wrong...

    SPS works at any angle, you just have to set

    Simba Code:
    SPS_AnyAngle := True;

    My crafter works facing south.
    My bad ...I didn't know that
    Thanks for sharing litoris and sorry for bad advice

  6. #6
    Join Date
    Mar 2006
    Location
    Belgium
    Posts
    3,564
    Mentioned
    111 Post(s)
    Quoted
    1475 Post(s)

    Default

    Maybe a line in SPS_WalkPath ? Check the function pancake!

    EDIT: yeah sps_anyangle , try that. Never works for me though lol

    Creds to DannyRS for this wonderful sig!

  7. #7
    Join Date
    Feb 2006
    Location
    Tracy/Davis, California
    Posts
    12,631
    Mentioned
    135 Post(s)
    Quoted
    418 Post(s)

    Default

    See OP, edited.

  8. #8
    Join Date
    Feb 2006
    Location
    Tracy/Davis, California
    Posts
    12,631
    Mentioned
    135 Post(s)
    Quoted
    418 Post(s)

    Default

    Any way to just make it NOT move the compass instead of use AnyAngle? (As in can someone tell me which line makes it move the compass?)
    Any angle will probably take up more time/resources for the script, I'd like for it to just work at a S angle.

  9. #9
    Join Date
    Jul 2011
    Location
    /home/litoris
    Posts
    2,226
    Mentioned
    0 Post(s)
    Quoted
    159 Post(s)

    Default

    Quote Originally Posted by YoHoJo View Post
    Any way to just make it NOT move the compass instead of use AnyAngle? (As in can someone tell me which line makes it move the compass?)
    Any angle will probably take up more time/resources for the script, I'd like for it to just work at a S angle.
    Go through the SPS file...
    Miner & Urn Crafter & 07 Chicken Killer
    SPS BlindWalk Tutorial

    Working on: Nothing

    teacher in every art, brought the fire that hath proved to mortals a means to mighty ends

  10. #10
    Join Date
    Sep 2010
    Location
    Finland
    Posts
    299
    Mentioned
    8 Post(s)
    Quoted
    37 Post(s)

    Default

    Quote Originally Posted by YoHoJo View Post
    Any way to just make it NOT move the compass instead of use AnyAngle? (As in can someone tell me which line makes it move the compass?)
    SPS_GetMyPos moves the compass (lines 351-358)

    Simba Code:
    //from SPS.simba
      if (SPS_AnyAngle) and (inRange(a, 10, 350)) then
        Minimap := SPS_RotateMinimap()
      else begin
        if (inRange(a, 10, 350)) then
          if (SPS_ClickNorth) then
            ClickNorth(SRL_ANGLE_HIGH)
          else
            MakeCompass('N');

        Minimap := SPS_GatherMinimap();
      end;
    Rusting away

  11. #11
    Join Date
    Nov 2011
    Location
    England
    Posts
    3,072
    Mentioned
    296 Post(s)
    Quoted
    1094 Post(s)

    Default

    sps_anyangle probs adds about... 16-32ms to the result but north is hardcoded into sps you would have to remove it yourself from sps.simba

  12. #12
    Join Date
    Feb 2006
    Location
    Tracy/Davis, California
    Posts
    12,631
    Mentioned
    135 Post(s)
    Quoted
    418 Post(s)

    Default

    AnyAngle is walking to wrong spots.

    Removed the MakeCompass('N'); from sps.simba
    Removed AnyAngle from script.

    Now it walks even worse.

    I'm just mad now wtf.


    AnyAngle makes it too tolerable and just clicks wrong places.
    Removing AnyAngle and removing the MakeCompass('N') is even worse.


    I just want to use a S facing map and have SPS work, wtf.

  13. #13
    Join Date
    Nov 2011
    Location
    England
    Posts
    3,072
    Mentioned
    296 Post(s)
    Quoted
    1094 Post(s)

    Default

    What rs are you using this in?

  14. #14
    Join Date
    Jul 2011
    Location
    /home/litoris
    Posts
    2,226
    Mentioned
    0 Post(s)
    Quoted
    159 Post(s)

    Default

    Try changing the tolerance and such? I think there were 2 parameters you could change to adjust SPS' accuracy. I tried changing them before with some success in the wilderness.
    Miner & Urn Crafter & 07 Chicken Killer
    SPS BlindWalk Tutorial

    Working on: Nothing

    teacher in every art, brought the fire that hath proved to mortals a means to mighty ends

  15. #15
    Join Date
    Feb 2006
    Location
    Tracy/Davis, California
    Posts
    12,631
    Mentioned
    135 Post(s)
    Quoted
    418 Post(s)

    Default

    Quote Originally Posted by Ollybest View Post
    What rs are you using this in?
    RS07 Custom SPS file via JJ.

    Quote Originally Posted by litoris View Post
    Try changing the tolerance and such? I think there were 2 parameters you could change to adjust SPS' accuracy. I tried changing them before with some success in the wilderness.
    I'll give it a shot later, thanks.

  16. #16
    Join Date
    Nov 2011
    Location
    England
    Posts
    3,072
    Mentioned
    296 Post(s)
    Quoted
    1094 Post(s)

    Default

    your problem is most likely sps in oldschool rs, ive said it many times before it just wont work like it does in the new rs.

  17. #17
    Join Date
    Feb 2006
    Location
    Tracy/Davis, California
    Posts
    12,631
    Mentioned
    135 Post(s)
    Quoted
    418 Post(s)

    Default

    Quote Originally Posted by Ollybest View Post
    your problem is most likely sps in oldschool rs, ive said it many times before it just wont work like it does in the new rs.
    Using the sps file I have I've got a solid working path, script runs 5 hours + no problems.
    I'm just having a hard time (different location) having it work at S angle D:
    Focusing on other parts of the script so I can cool down for a bit.

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
  •