Results 1 to 10 of 10

Thread: Old time scripter got addicted to it again, need help

  1. #1
    Join Date
    Oct 2006
    Posts
    334
    Mentioned
    0 Post(s)
    Quoted
    18 Post(s)

    Default Old time scripter got addicted to it again, need help

    PHP Code:
    [Runtime Error] : ExceptionCanvas does not allow drawing in line 74 in script \SCAR\includes\SRL\SRL\Core\AntiRandoms\Common.scar 
    PHP Code:
    {*******************************************************************************
    function 
    SRL_GetBlackBackgroundInteger;
    byZephyrsFury
    Description
    Autocolours the black background colourReturns -if not found.
    *******************************************************************************}

    function 
    SRL_GetBlackBackgroundInteger;
    var
      
    CTSIHCCountMaxCInteger;
      
    TPATPointArray;
      
    ColsTIntegerArray;
    begin
      Result 
    := -1;
      if (
    not(LoggedIn)) then Exit;
      
    CTS := GetColorToleranceSpeed;

      
    ColorToleranceSpeed(2);
      
    SetColorSpeed2Modifiers(100100);
      
    FindColorsTolerance(TPAclBlackMMX1MMY1MMX2MMY22);
      
    SetColorSpeed2Modifiers(0.20.2);
      
    ColorToleranceSpeed(CTS);
      if (
    Length(TPA) < 1then Exit;

      
    Cols := GetColors(TPA);
      
    ClearSameIntegers(Cols);

      
    := High(Cols);
      for 
    := 0 to H do
      
    begin
        C 
    := Cols[I];
        
    Count := CountColor(CMMX1MMY1MMX2MMY2);
        if (
    CountColor(CMMX1MMY1MMX2MMY2) > MaxCthen
        begin
          Result 
    := C;
          
    MaxC := Count;
        
    end;
      
    end;

    end
    Line 74: Cols := GetColors(TPA);
    What's the issue here? All its doing is a findobject, but this happens.
    Its in SMART if that makes a difference.

    I'm working on releasing a vial filler, so if you want it help me out .

    edit: it may have just been an issue with the selected client and SMART... I don't really know how smart works though.
    Last edited by stein3; 04-22-2010 at 05:32 PM.

  2. #2
    Join Date
    Oct 2007
    Location
    #srl
    Posts
    6,102
    Mentioned
    39 Post(s)
    Quoted
    62 Post(s)

    Default

    SMART is the client. When you use SMART you do not need to have another RS client open nor do you need to select a client. SMART/SRL does all that for you.

  3. #3
    Join Date
    Oct 2006
    Posts
    334
    Mentioned
    0 Post(s)
    Quoted
    18 Post(s)

    Default

    Alright, that's what I was starting to figure out.

    Another issue: All of the banking routines (built into SRL, I barely have to do anything thanks to you guys ) are failing. They find the booths/bankers, right click it, then just completely ignore the fact that the menu was open. I tried shortening the option string from "uickl" or whatever to "uic" and it still couldn't find it... This is infuriating, it was working perfectly fine not too long ago.

  4. #4
    Join Date
    Nov 2007
    Location
    46696E6C616E64
    Posts
    3,069
    Mentioned
    44 Post(s)
    Quoted
    302 Post(s)

    Default

    Quote Originally Posted by nategr8ns View Post
    Alright, that's what I was starting to figure out.

    Another issue: All of the banking routines (built into SRL, I barely have to do anything thanks to you guys ) are failing. They find the booths/bankers, right click it, then just completely ignore the fact that the menu was open. I tried shortening the option string from "uickl" or whatever to "uic" and it still couldn't find it... This is infuriating, it was working perfectly fine not too long ago.
    You got SCAR prerelease 3.23?

    Heres a good tutorial on setting up scar prerelease + srl
    http://www.villavu.com/forum/showthread.php?t=47714
    Last edited by Frement; 04-22-2010 at 06:26 PM.
    There used to be something meaningful here.

  5. #5
    Join Date
    Mar 2007
    Posts
    478
    Mentioned
    4 Post(s)
    Quoted
    4 Post(s)

    Default

    Quote Originally Posted by nategr8ns View Post
    Alright, that's what I was starting to figure out.

    Another issue: All of the banking routines (built into SRL, I barely have to do anything thanks to you guys ) are failing. They find the booths/bankers, right click it, then just completely ignore the fact that the menu was open. I tried shortening the option string from "uickl" or whatever to "uic" and it still couldn't find it... This is infuriating, it was working perfectly fine not too long ago.
    Another note, make sure you are running it in SMART or else half the time when I started making my log banker it wouldn't bank just right click then zoom off to the right. I believe running it in SMART fixed it.
    Back from the dead.....

  6. #6
    Join Date
    Oct 2007
    Location
    #srl
    Posts
    6,102
    Mentioned
    39 Post(s)
    Quoted
    62 Post(s)

    Default

    Quote Originally Posted by nategr8ns View Post
    Alright, that's what I was starting to figure out.

    Another issue: All of the banking routines (built into SRL, I barely have to do anything thanks to you guys ) are failing. They find the booths/bankers, right click it, then just completely ignore the fact that the menu was open. I tried shortening the option string from "uickl" or whatever to "uic" and it still couldn't find it... This is infuriating, it was working perfectly fine not too long ago.
    Try
    SCAR Code:
    WaitOptionMulti(['uickly', 'ui', 'ck', 'ly'], 2000);

    I often have to search that way for text's as it messes up rather frequently if I don't.

  7. #7
    Join Date
    Oct 2006
    Posts
    334
    Mentioned
    0 Post(s)
    Quoted
    18 Post(s)

    Default

    Quote Originally Posted by Frement View Post
    You got SCAR prerelease 3.23?

    Heres a good tutorial on setting up scar prerelease + srl
    http://www.villavu.com/forum/showthread.php?t=47714
    Already have it set up properly, but thanks.

    Quote Originally Posted by aran armath View Post
    Another note, make sure you are running it in SMART or else half the time when I started making my log banker it wouldn't bank just right click then zoom off to the right. I believe running it in SMART fixed it.
    I've declared the SMART variables I need to, I believe. World, Detail, Signed. What else do I need to do?

    Quote Originally Posted by NCDS View Post
    Try
    SCAR Code:
    WaitOptionMulti(['uickly', 'ui', 'ck', 'ly'], 2000);

    I often have to search that way for text's as it messes up rather frequently if I don't.
    So basically I should write my own banking procedure? Too bad, I was looking forward to just using the premade SRL ones .

  8. #8
    Join Date
    Feb 2007
    Location
    Alberta,Canada
    Posts
    2,358
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I use the premade SRL banking and it works fine. I would suspect that your not using SCAR pre-release like Frement suggested. Beyond that I have no idea.
    “Ignorance, the root and the stem of every evil.”

  9. #9
    Join Date
    Mar 2007
    Posts
    478
    Mentioned
    4 Post(s)
    Quoted
    4 Post(s)

    Default

    http://villavu.com/forum/showthread.php?t=41284

    Thats a tut on putting smart into a script, it works, its what I used. The bank commands seem to work fine in smart, havent had any issues.
    Back from the dead.....

  10. #10
    Join Date
    Oct 2006
    Posts
    334
    Mentioned
    0 Post(s)
    Quoted
    18 Post(s)

    Default

    Quote Originally Posted by aran armath View Post
    http://villavu.com/forum/showthread.php?t=41284

    Thats a tut on putting smart into a script, it works, its what I used. The bank commands seem to work fine in smart, havent had any issues.
    Thanks, reread that and I switched from calling SetupSRL before the smart variables to after, and I added smart_members and it fixed it .

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
  •