Results 1 to 8 of 8

Thread: Waiting up to 5 minutes for RS to Load. . .

  1. #1
    Join Date
    Mar 2015
    Posts
    438
    Mentioned
    21 Post(s)
    Quoted
    211 Post(s)

    Default Waiting up to 5 minutes for RS to Load. . .

    So been attempting at a Pest Control script. I have alot more code then posted but I decided to start from scratch as I began to have issues getting it to run. See below for the errors.
    Simba Code:
    program KlutchPC;

    {$DEFINE SMART}              // Always have this to load smart
    {$I SRL-6/SRL.simba}         // To load the SRL include files
    {$I SPS/lib/SPS-RS3.Simba}   // To load the SPS include files

    Var
    x, y, u, i: integer;
    AttackTimer: TTimeMarker;
    TPA: TPointArray;
    ATPA: T2DPointArray;

    procedure declarePlayers();
    begin
      setLength(players, 1);
      with players[0] do
      begin
        loginName := '';
        password := '';
        isActive := true;
        isMember := true;
      end
      currentPlayer := 0;
    end;

    procedure CrossPlank;

    begin
      if not isLoggedIn() then
        exit;
      minimap.setAngle(MM_DIRECTION_SOUTH);
      mainScreen.setAngle(MS_ANGLE_HIGH);
      repeat
      findColorsSpiralTolerance(x, y, TPA, 3432580, mainScreen.getBounds(), 2, colorSetting(4, 0.02, 0.16));

        if (Length(TPA) < 1) then
          exit;

        ATPA := TPA.toATPA(10, 10);
        ATPA.filterBetween(0, 0);
        ATPA.sortFromMidPoint(mainscreen.playerPoint);
        smartImage.debugATPA(ATPA);

        for i := 0 to high(ATPA) do
        begin
          mouse(middleTPA(ATPA[i]), MOUSE_MOVE);
          if isMouseOverText(['ross', 'angplank'], 500) then
          begin
            fastClick(MOUSE_RIGHT);
          if chooseOption.select(['ross', 'angplank'], 500) then
          wait (randomRange(2500,4000));
    end;
    end;
      until false;
    end;

    begin
      clearDebug();
      smartEnableDrawing := true;
      setupSRL();
      declarePlayers();

      if not isLoggedIn() then
      begin
        players[currentPlayer].login();
        exitTreasure();
        minimap.setAngle(MM_DIRECTION_NORTH);
        mainScreen.setAngle(MS_ANGLE_HIGH);
      end;

      CrossPlank;

    end.

    When SMART's already open and account is logged in:
    ---- attempting to spawn smart, attempt #: 1
    ---- initSmart():
    ------ Attempting to pair to a previously spawned client
    ------ smartPairToExistingClient():
    -------- Found 1 free client(s), attempting to pair to one...
    ---------- smartSetAsTarget(): Succesfully set SMART[2432] as Simba's target
    -------- Succesfully paired to a existing client, SMART[2432]
    ------ smartPairToExistingClient(): result = true
    ------ Succesfully initialized via pairing to a previously spawned client
    ---- initSmart()
    ------ smartSetupDrawing(): Succesfully setup SMART drawing
    ---- Waiting up to 5 minutes for RS to load...

    When SMART doesn't exist, it logs in and logs in successfully but then doesn't pick up that it has hit play:
    ------ Succesfully initialized via spawning a new client
    ---- initSmart()
    ------ smartSetupDrawing(): Succesfully setup SMART drawing
    ---- Waiting up to 5 minutes for RS to load...
    ------ __setInputBoxes(): Set username and password boxes
    ---- Client is ready.
    ---- Setup SRL in 20 Seconds
    -- setupSRL(): True
    -- TPlayer.login()
    ---- TPlayer.loginToLobby()
    ------ Attempt 1: removed my e-mail ()
    -------- Entering username...
    -------- Entering password...
    -------- Saving screenshot: IP_address.png
    ---- TPlayer.loginToLobby(): True
    ------ TRSLobbyWorlds.selectRandomWorld(): Random world is 21
    ---- TRSLobby.getCurrentTab(): Current tab is 0
    ---- TRSLobby.getCurrentTab(): Current tab is 0
    ---- TRSLobby.getCurrentTab(): Current tab is 1
    ---- TRSLobby.openTab(): Result = True
    ---- TRSLobby.getCurrentTab(): Current tab is 1
    ---- TRSLobbyWorlds.selectWorld()
    ------ TRSLobby.getCurrentTab(): Current tab is 1
    -------- TRSLobbyWorlds.getCurrentWorld(): Current world is 14
    ------ TRSLobby.getCurrentTab(): Current tab is 1
    ------ Scrolled to and found world 21
    ------ Selected world 21
    ---- TRSLobbyWorlds.selectWorld(): True
    ------ TRSLobby.findPlayButton(): result = True
    ------ TRSLobby.findPlayButton(): result = False
    ------ TRSLobby.findPlayButton(): result = False
    ------ TRSLobby.findPlayButton(): result = False
    ------ TRSLobby.findPlayButton(): result = False
    ------ TRSLobby.findPlayButton(): result = False
    ------ TRSLobby.findPlayButton(): result = False

  2. #2
    Join Date
    Mar 2007
    Posts
    5,125
    Mentioned
    275 Post(s)
    Quoted
    901 Post(s)

    Default

    Can you take a screenshot of your SMART Client while logged in please, make sure to hide your username

    Forum account issues? Please send me a PM

  3. #3
    Join Date
    Mar 2015
    Posts
    438
    Mentioned
    21 Post(s)
    Quoted
    211 Post(s)

    Default

    Quote Originally Posted by Justin View Post
    Can you take a screenshot of your SMART Client while logged in please, make sure to hide your username
    Below is from a LazyFisher, have exact same settings as my other account.
    Untitled.png

    Below is my PC script I am TRYING to work on...this is the one I get the issue posted above.
    Untitled1.jpg
    Last edited by Clutch; 03-28-2015 at 10:58 PM.

  4. #4
    Join Date
    Dec 2011
    Location
    East Coast, USA
    Posts
    4,231
    Mentioned
    112 Post(s)
    Quoted
    1869 Post(s)

    Default

    Quote Originally Posted by Clutch View Post
    Below is from a LazyFisher, have exact same settings as my other account.
    Untitled.png

    Below is my PC script I am TRYING to work on...this is the one I get the issue posted above.
    Untitled1.jpg
    That looks really weird, Slim Headers is supposed to be enabled, but it looks like you've got no headers at all. Check through the interfaces options menus and make sure you haven't accidentally removed headers or something
    GitLab projects | Simba 1.4 | Find me on IRC or Discord | ScapeRune scripts | Come play bot ScapeRune!

    <BenLand100> we're just in the transitional phase where society reclassifies guns as Badâ„¢ before everyone gets laser pistols

  5. #5
    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 Clutch View Post
    Below is from a LazyFisher, have exact same settings as my other account.
    Untitled.png

    Below is my PC script I am TRYING to work on...this is the one I get the issue posted above.
    Untitled1.jpg
    You need to make sure you can see the logout button in the top right corner.

  6. #6
    Join Date
    Mar 2007
    Posts
    5,125
    Mentioned
    275 Post(s)
    Quoted
    901 Post(s)

    Default

    Quote Originally Posted by Clutch View Post
    Below is from a LazyFisher, have exact same settings as my other account.
    Untitled.png

    Below is my PC script I am TRYING to work on...this is the one I get the issue posted above.
    Untitled1.jpg
    Unlock your interface by pushing 'L' or untick the "Hide title bars when locked" in the Interface settings.

    Forum account issues? Please send me a PM

  7. #7
    Join Date
    Dec 2011
    Posts
    2,147
    Mentioned
    221 Post(s)
    Quoted
    1068 Post(s)

  8. #8
    Join Date
    Mar 2015
    Posts
    438
    Mentioned
    21 Post(s)
    Quoted
    211 Post(s)

    Default

    Lol holy crap, of course it was something simple. Hide Title bars when locked was on. Thanks guys! Time to get back to testing my PC script!

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
  •