Results 1 to 6 of 6

Thread: ACA not working

  1. #1
    Join Date
    Apr 2007
    Posts
    71
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default ACA not working

    Hi,

    Recently I bumped into YoHoJo's tutorial on ACA. I instantly was like "Why the hell didn't I use this before".
    So I went ahead, downloaded it and started messing with it.
    Now the problem is, I'm following exactly what the tutorials says, but still I get this error atleast 95% of the times: "AutoColor failed in finding the color."
    Which is called here:
    if (i = arL + 1) then
    Writeln('AutoColor failed in finding the color.');

    Does anyone know what I am doing wrong?
    (My CTS is set to 2)

    Example function I used (and failed):
    Code:
    function AutoColor: Integer;
    var
      arP: TPointArray;
      arC: TIntegerArray;
      tmpCTS, i, arL: Integer;
      X, Y, Z: Extended;
    begin
      tmpCTS := GetColorToleranceSpeed;
      ColorToleranceSpeed(2);
      SetColorSpeed2Modifiers(4.17, 0.05);
    
      FindColorsSpiralTolerance(MMCX, MMCY, arP, 6249310, MMX1, MMY1, MMX2, MMY2, 1);
      if (Length(arP) = 0) then
      begin
        Writeln('Failed to find the color, no result.');
        ColorToleranceSpeed(tmpCTS);
        SetColorSpeed2Modifiers(0.2, 0.2);
        Exit;
      end;
    
      arC := GetColors(arP);
      ClearSameIntegers(arC);
      arL := High(arC);
    
      for i := 0 to arL do
      begin
        ColorToXYZ(arC[i], X, Y, Z);
    
        if (X >= 9.94) and (X <= 10.92) and (Y >= 10.19) and (Y <= 11.20) and (Z >= 11.78) and (Z <= 12.91) then
        begin
          Result := arC[i];
          Writeln('AutoColor = ' + IntToStr(arC[i]));
          Break;
        end;
      end;
    
      ColorToleranceSpeed(tmpCTS);
      SetColorSpeed2Modifiers(0.2, 0.2);
    
      if (i = arL + 1) then
        Writeln('AutoColor failed in finding the color.');
    end;
    Last edited by maigel; 01-15-2012 at 12:42 PM.

  2. #2
    Join Date
    Oct 2007
    Location
    The deep web
    Posts
    2,496
    Mentioned
    1 Post(s)
    Quoted
    3 Post(s)

    Default

    If it didnt find the colour, pick a different one, make sure youre using the latest version.

    And next time post on the thread, dont make a new one.

    Good luck
    Did someone say GDK?

  3. #3
    Join Date
    Nov 2011
    Posts
    132
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    umm you don't have a procedure?


    function AutoColor: Integer;

    then during a procedure you could have

    findcolorSpiralTolerance(x,y,AutoColor,MSX1, MSY1, MSX2, MSY2,tolerance)


    Also colors change a lot I noticed it couldn't find the demon in my stunner script after an hours of casting. I just used the autocoloraid again and opened up my saved file of the demon colors noticed it couldn't detect the colours on the demon so then added the new colors on top of the old ones, reran the function and copy and pasted it over to my script, and its working again.

  4. #4
    Join Date
    Oct 2007
    Location
    The deep web
    Posts
    2,496
    Mentioned
    1 Post(s)
    Quoted
    3 Post(s)

    Default

    Quote Originally Posted by loser69 View Post
    umm you don't have a procedure?


    function AutoColor: Integer;

    then during a procedure you could have

    findcolorSpiralTolerance(x,y,AutoColor,MSX1, MSY1, MSX2, MSY2,tolerance)


    Also colors change a lot I noticed it couldn't find the demon in my stunner script after an hours of casting. I just used the autocoloraid again and opened up my saved file of the demon colors noticed it couldn't detect the colours on the demon so then added the new colors on top of the old ones, reran the function and copy and pasted it over to my script, and its working again.
    the colours are dynamic so change a little. As yohojo said in his video, try walking up and down stairs, the colours should reload, and add those to the list!
    Did someone say GDK?

  5. #5
    Join Date
    Apr 2007
    Posts
    71
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Turns out I ticked "minimap" instead of "mainscreen" in the autocolor function creator window. Obviously it couldn't find the color .... I feel so retarded now lol >.>

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

    Default

    Quote Originally Posted by maigel View Post
    Turns out I ticked "minimap" instead of "mainscreen" in the autocolor function creator window. Obviously it couldn't find the color .... I feel so retarded now lol >.>
    1) Just us looking at the code wouldn't really help ACA is something we need to see/do ourselves.

    2) Don't feel retarded at all! I've done that SO MANY times before, and still do it every now and then to this day! We all make mistakes .

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
  •