Results 1 to 4 of 4

Thread: Best way to set up inventory to be detected?

  1. #1
    Join Date
    Jul 2013
    Location
    An horse
    Posts
    300
    Mentioned
    9 Post(s)
    Quoted
    120 Post(s)

    Default Best way to set up inventory to be detected?
    -
    This post was made as an issue

    I installed SRL6 correctly with the right options and settings. Scripts compile and it detects colors but I am having trouble correctly setting up the inventory position to where it is reliably detected.

    I run this when my inventory is in the bottom right

    Simba Code:
    program new;
    {$DEFINE SMART}
    {$i srl-6/srl.simba}
    begin
      ClearDebug();
      smartClientWidth := 1024;
      smartClientHeight := 768;
      SetupSRL();
      setlength(players, 1);
      with Players[0] do
      begin
        LoginName := '';
        Password  := '';
        isActive  := True;
      end;
      wait(2000);
      players[0].login();
      wait(2000);
      writeln(tabBackpack.count());
    end.

    I get this error after it logs in and attempts to count the items in the backpack (this also applies to the tabBackpack.open function too):

    -- WARNING: TRSGameTabs._getActiveTabBox(): There's only a single tab open, failed to identify
    Exception in Script: Runtime error: "You passed a wrong ye to a finder function: 1020. The client has a height of 1000, thus the ye is out of bounds." at line 171, column 32 in file "C:\Simba\Includes\srl-6\lib\utilities\wrappers.simba"
    File[C:\Simba\Includes\SRL-6/logs/SRL log (03-10-13 at 09.17.15 PM).txt] has not been freed in the script, freeing it now.

    Tried moving the inventory around and using different client dimensions, but kept on getting the same issue.

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

    Default

    @HardcorBoter;

    I have spoken to Olly about this issue. He is now aware of it and the SRL Developers will make a patch and push it in the include. If you want to keep scripting, I suggest you use the default client size.

    Simba Code:
    smartClientWidth = 960;
    smartClientHeight = 640;

    Please let me know if you have the same issue with the default size.

    Thanks

    Justin

    Forum account issues? Please send me a PM

  3. #3
    Join Date
    Jul 2013
    Location
    An horse
    Posts
    300
    Mentioned
    9 Post(s)
    Quoted
    120 Post(s)

    Default

    Thanks for the info, default size works

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

    Default

    Quote Originally Posted by HardcorBoter View Post
    Thanks for the info, default size works
    I have imported your post into the Bug tracker. If you wish to follow the progress on this issue, please visit: http://villavu.com/forum/issue.php?issueid=129

    Thanks

    Justin.

    Forum account issues? Please send me a PM

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
  •