Results 1 to 7 of 7

Thread: Problem with SPS path creator

  1. #1
    Join Date
    Jun 2007
    Posts
    117
    Mentioned
    0 Post(s)
    Quoted
    16 Post(s)

    Default Problem with SPS path creator

    I am getting no errors from the script but i cannot get walking when i use the surface 7_7 but when i use 6_7, and 6_6 it works (walks) fine until it gets to the area of the map where 7_7 is and then stops and gives me this after waiting a good 10 seconds

    (i'm making a simple flax picker)


    Code:
    The following DTMs were not freed: [SRL - Lamp bitmap, 1]
    The following bitmaps were not freed: [SRL - Mod bitmap, SRL - Admin bitmap, SRL - Flag bitmap, 6]

    Code:
    Procedure walktofield;
        begin;
      If (not LoggedIn) Then
        Exit;
        FindNormalRandoms;
        SetAngle(SRL_ANGLE_HIGH);
        MakeCompass('n');
      SetupSRL;
       Writeln('Walking to Field')
        SPS_Setup(RUNESCAPE_SURFACE, ['7_7','6_7','6_6','7_6']);
         myPath := [Point(2737, 2677), Point(2737, 2689), Point(2737, 2700),
         Point(2740, 2715), Point(2741, 2731),
          Point(2741, 2748), Point(2741, 2768), Point(2742, 2782), Point(2746, 2800),
           Point(2747, 2820), Point(2753, 2842), Point(2756, 2858),
            Point(2767, 2884), Point(2802, 2871)];
     SPS_WalkPath(mypath);
     Writeln('Arrived at the field')
      Wait(5000);
           end;

  2. #2
    Join Date
    Feb 2011
    Location
    The Future.
    Posts
    5,600
    Mentioned
    396 Post(s)
    Quoted
    1598 Post(s)

    Default

    Try making the path manually rather than using the path creator. Usually fixes the problem for me. Not sure that the path creator works for SPS 2.x+
    I am Ggzz..
    Hackintosher

  3. #3
    Join Date
    Jun 2007
    Posts
    117
    Mentioned
    0 Post(s)
    Quoted
    16 Post(s)

    Default

    okay i will try that thanks, i think it may be a problem with the map because when i take out 7_7 it works fine until it gets to that point like i previously stated

  4. #4
    Join Date
    Feb 2011
    Location
    The Future.
    Posts
    5,600
    Mentioned
    396 Post(s)
    Quoted
    1598 Post(s)

    Default

    You do not need to setup sps in every function. Do it once at the very start and that's it. Otherwise you're going to find yourself lagging from loading the same bitmaps over and over:

    Simba Code:
    Procedure WalkToField;
    begin
      if (not LoggedIn) then
        Exit;
      FindNormalRandoms;
      Writeln('Walking to Field');
      myPath := [Point(2737, 2677), Point(2737, 2689), Point(2737, 2700), Point(2740, 2715), Point(2741, 2731), Point(2741, 2748), Point(2741, 2768), Point(2742, 2782), Point(2746, 2800), Point(2747, 2820), Point(2753, 2842), Point(2756, 2858), Point(2767, 2884), Point(2802, 2871)];
      SPS_WalkPath(mypath);
      Writeln('Arrived at the field') Wait(5000);
    end;

    begin
      SetupSRL;
      SPS_Setup(RUNESCAPE_SURFACE, ['7_7', '6_7', '6_6', '7_6']);

      SetAngle(SRL_ANGLE_HIGH);
      MakeCompass('n');

      WalkToField;
    end.
    I am Ggzz..
    Hackintosher

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

    Default

    Simba Code:
    SetAngle(SRL_ANGLE_HIGH);
      MakeCompass('n');
    in stead of that
    use
    Simba Code:
    ClickNorth(SRL_Angle_High);
    Mat



    ^^

  6. #6
    Join Date
    Jun 2007
    Posts
    117
    Mentioned
    0 Post(s)
    Quoted
    16 Post(s)

    Default

    Quote Originally Posted by Brandon View Post
    You do not need to setup sps in every function. Do it once at the very start and that's it. Otherwise you're going to find yourself lagging from loading the same bitmaps over and over:

    Simba Code:
    Procedure WalkToField;
    begin
      if (not LoggedIn) then
        Exit;
      FindNormalRandoms;
      Writeln('Walking to Field');
      myPath := [Point(2737, 2677), Point(2737, 2689), Point(2737, 2700), Point(2740, 2715), Point(2741, 2731), Point(2741, 2748), Point(2741, 2768), Point(2742, 2782), Point(2746, 2800), Point(2747, 2820), Point(2753, 2842), Point(2756, 2858), Point(2767, 2884), Point(2802, 2871)];
      SPS_WalkPath(mypath);
      Writeln('Arrived at the field') Wait(5000);
    end;

    begin
      SetupSRL;
      SPS_Setup(RUNESCAPE_SURFACE, ['7_7', '6_7', '6_6', '7_6']);

      SetAngle(SRL_ANGLE_HIGH);
      MakeCompass('n');

      WalkToField;
    end.
    Ok thanks for that tip i added it and it still wont work and now im getting this
    Code:
    The following bitmaps were not freed: [3]

    Quote Originally Posted by Mat View Post
    Simba Code:
    SetAngle(SRL_ANGLE_HIGH);
      MakeCompass('n');
    in stead of that
    use
    Simba Code:
    ClickNorth(SRL_Angle_High);
    Mat
    Thanks for that i added it but it still won't work, it works without 7_7 and 7_6 but only goes halfway till it gets into the 7_7 area. Ive been trying to get this to work for over an hour :\ its my first script and i really want to get better at scripting so any help is greatly appreciated!
    Last edited by jman1208; 07-07-2012 at 01:38 AM.

  7. #7
    Join Date
    Jul 2008
    Location
    NSW, Australia
    Posts
    881
    Mentioned
    0 Post(s)
    Quoted
    3 Post(s)

    Default

    Btw you can open the maps in paint and use the coordinates it displays on the bottom left of the window, since they are actually the coordinates Sps will be using that's what I done when making the map for soul wars.. it just takes a little longer it's better than grabbing your coordinates in game and writeln();'ing them.

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
  •