Page 4 of 6 FirstFirst ... 23456 LastLast
Results 76 to 100 of 129

Thread: ACA[AutocolorAid] remake

  1. #76
    Join Date
    May 2012
    Location
    Moscow, Russia
    Posts
    661
    Mentioned
    35 Post(s)
    Quoted
    102 Post(s)

    Default

    On Windows 7 x64 I also do not see any of this behavior.
    Per aspera ad Astra!
    ----------------------------------------
    Slow and steady wins the race.

  2. #77
    Join Date
    Oct 2012
    Posts
    8
    Mentioned
    0 Post(s)
    Quoted
    4 Post(s)

    Default

    I restructured the GUI and sent a pull request. With my changes, the program window is now resizable and the widgets are aligned & scaled correctly no matter what size it is.

  3. #78
    Join Date
    Jan 2013
    Posts
    294
    Mentioned
    1 Post(s)
    Quoted
    121 Post(s)

    Default

    Quote Originally Posted by revon View Post
    I restructured the GUI and sent a pull request. With my changes, the program window is now resizable and the widgets are aligned & scaled correctly no matter what size it is.
    hopefully this will solve my problem. i tried downloading lazarus and tried compiling it on my own without success...i guess its hard for newbies.

  4. #79
    Join Date
    Oct 2012
    Posts
    8
    Mentioned
    0 Post(s)
    Quoted
    4 Post(s)

    Default

    It could. I had trouble compiling it too; I had to change a few lines of code to get it to compile. Those changes are included in the pull request.

  5. #80
    Join Date
    May 2012
    Location
    Moscow, Russia
    Posts
    661
    Mentioned
    35 Post(s)
    Quoted
    102 Post(s)

    Default

    Quote Originally Posted by revon View Post
    It could. I had trouble compiling it too; I had to change a few lines of code to get it to compile. Those changes are included in the pull request.
    Yea, I saw it. Really good work. I've tested and merged it. Thank you for your contribution.

    Exe updated.
    Per aspera ad Astra!
    ----------------------------------------
    Slow and steady wins the race.

  6. #81
    Join Date
    Jan 2013
    Posts
    294
    Mentioned
    1 Post(s)
    Quoted
    121 Post(s)

    Default

    i dont know what is wrong haha, i got this working on win8 64bit on another laptop, but my main laptop still doesnt work.

  7. #82
    Join Date
    Sep 2008
    Posts
    754
    Mentioned
    8 Post(s)
    Quoted
    275 Post(s)

    Default

    I know CTS3 is better than CTS2 but it still doesn't give me much difference in game, also i don't like the create a profile option :O

    overall its great, but i still use the original AcA

  8. #83
    Join Date
    Feb 2012
    Location
    Canada
    Posts
    1,164
    Mentioned
    26 Post(s)
    Quoted
    433 Post(s)

  9. #84
    Join Date
    Feb 2006
    Location
    Helsinki, Finland
    Posts
    1,395
    Mentioned
    30 Post(s)
    Quoted
    107 Post(s)

    Default

    Having a little problem: I can't pick colors with it, well, except the first one for 1st profile only. After that, it just wont let me pick any colors (I keep clicking the image, but any clicks aren't registered). :\
    Anyone else having this problem? I am using Windows 7 64-bit Home Premium.

    I must say, I like the way there's profiles - that makes it easy to create color records for multiple objects (at the same time) quickly!
    Neat idea Cynic.

    Also here is a little suggestion for the future: Please add possibility to change the color with which you can debug the matched points, because right now it's always 255? With 255 you can't see the result for matched red points (if you are dealing with red colors for your object[s]).
    This is a feature that should have been added in already for ACA v1.

    ..and another suggestion: Add color picker, with which you could pick colors even outside the image area.

    Right-click menu is missing these options: "Add Color", "Delete Color" and "Clear List" (I have found these extremely useful in ACA v2).

    Keep up the good work, CynicRus!

  10. #85
    Join Date
    May 2012
    Location
    Moscow, Russia
    Posts
    661
    Mentioned
    35 Post(s)
    Quoted
    102 Post(s)

    Default

    Quote Originally Posted by Janilabo View Post
    Having a little problem: I can't pick colors with it, well, except the first one for 1st profile only. After that, it just wont let me pick any colors (I keep clicking the image, but any clicks aren't registered). :\
    Anyone else having this problem? I am using Windows 7 64-bit Home Premium.
    How I can reproduce that? I do not see such problems in the main Win 7 x64 pro. I develop this app on this system. And on the proposals - I think it will implement in the near future. Just now, I'm busy working on Simba. Ty for using!

    Cheers,
    Cynic.
    Per aspera ad Astra!
    ----------------------------------------
    Slow and steady wins the race.

  11. #86
    Join Date
    Feb 2013
    Location
    Narnia
    Posts
    615
    Mentioned
    8 Post(s)
    Quoted
    252 Post(s)

    Default

    is there a tut on how to use this? im new and havent used the orginal. how many similar colors do i need to pick in an area for a good hue and sat?

    i often get this error/warning when moving off the aca's client window, it's a rather annoying and frustrating notification and i dont understand it.

    ACA.jpg

    Many thanks!

    View my OSR Script Repository!


    Botted to max
    Guides: How to Report Bugs to the Scripter
    ~~~~ Moved to Java. Currently Lurking ~~~~

  12. #87
    Join Date
    Jan 2013
    Posts
    294
    Mentioned
    1 Post(s)
    Quoted
    121 Post(s)

    Default

    Quote Originally Posted by Janilabo View Post
    Having a little problem: I can't pick colors with it, well, except the first one for 1st profile only. After that, it just wont let me pick any colors (I keep clicking the image, but any clicks aren't registered). :\
    Anyone else having this problem? I am using Windows 7 64-bit Home Premium.

    I must say, I like the way there's profiles - that makes it easy to create color records for multiple objects (at the same time) quickly!
    Neat idea Cynic.

    Also here is a little suggestion for the future: Please add possibility to change the color with which you can debug the matched points, because right now it's always 255? With 255 you can't see the result for matched red points (if you are dealing with red colors for your object[s]).
    This is a feature that should have been added in already for ACA v1.

    ..and another suggestion: Add color picker, with which you could pick colors even outside the image area.

    Right-click menu is missing these options: "Add Color", "Delete Color" and "Clear List" (I have found these extremely useful in ACA v2).

    Keep up the good work, CynicRus!
    i have the same problem. i guess it just doesnt work on win7 64bit home premium because i got it working on win8.

  13. #88
    Join Date
    May 2012
    Location
    Moscow, Russia
    Posts
    661
    Mentioned
    35 Post(s)
    Quoted
    102 Post(s)

    Default

    Quote Originally Posted by ibot_dung11 View Post
    is there a tut on how to use this? im new and havent used the orginal. how many similar colors do i need to pick in an area for a good hue and sat?

    i often get this error/warning when moving off the aca's client window, it's a rather annoying and frustrating notification and i dont understand it.

    ACA.jpg

    Many thanks!
    Fixed. Ty for you feedback!

    Cheers,
    Cynic.
    Per aspera ad Astra!
    ----------------------------------------
    Slow and steady wins the race.

  14. #89
    Join Date
    May 2013
    Posts
    4
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Nice, is it more accurate?

  15. #90
    Join Date
    Feb 2012
    Location
    Canada
    Posts
    1,164
    Mentioned
    26 Post(s)
    Quoted
    433 Post(s)

    Default

    When I attempt to use it and click the Show Best Color button, it doesnt do anything. Nothing shades with red or any other colour. The screen is the exact same with no changes.

  16. #91
    Join Date
    May 2012
    Location
    Moscow, Russia
    Posts
    661
    Mentioned
    35 Post(s)
    Quoted
    102 Post(s)

    Default

    Weird. Gimme more info?
    Per aspera ad Astra!
    ----------------------------------------
    Slow and steady wins the race.

  17. #92
    Join Date
    May 2012
    Location
    Wisconsin, USA
    Posts
    105
    Mentioned
    1 Post(s)
    Quoted
    47 Post(s)

    Default

    Thank you CynicRus for this program. However, I have an issue. When I create an "AutoColor" function using CTS3, I get an error: Unknown identifier 'SetColorSpeed3Modifiers'. A code search does not reveal this function. Is there another include that I do not have? I've forced an update of Simba, but no joy.

  18. #93
    Join Date
    Sep 2010
    Posts
    5,762
    Mentioned
    136 Post(s)
    Quoted
    2739 Post(s)

    Default

    Quote Originally Posted by loragnor View Post
    Thank you CynicRus for this program. However, I have an issue. When I create an "AutoColor" function using CTS3, I get an error: Unknown identifier 'SetColorSpeed3Modifiers'. A code search does not reveal this function. Is there another include that I do not have? I've forced an update of Simba, but no joy.
    Did you include SRL?

  19. #94
    Join Date
    May 2012
    Location
    Wisconsin, USA
    Posts
    105
    Mentioned
    1 Post(s)
    Quoted
    47 Post(s)

    Default

    Quote Originally Posted by Officer Barbrady View Post
    Did you include SRL?
    Yes. First thing I checked. Standard SetupSRL call in the loop too.

  20. #95
    Join Date
    Sep 2010
    Posts
    5,762
    Mentioned
    136 Post(s)
    Quoted
    2739 Post(s)

    Default

    Quote Originally Posted by loragnor View Post
    Yes. First thing I checked. Standard SetupSRL call in the loop too.
    I gotta go now, but can you post the generated code to when I come back I can test it?

  21. #96
    Join Date
    May 2012
    Location
    Wisconsin, USA
    Posts
    105
    Mentioned
    1 Post(s)
    Quoted
    47 Post(s)

    Default

    Quote Originally Posted by Officer Barbrady View Post
    I gotta go now, but can you post the generated code to when I come back I can test it?
    Sure, and thanks. Did not even change the func name.

    The SRL include.

    Simba Code:
    {$DEFINE SMART8}
      {$i SRL/SRL.simba}

    The generated function.

    Simba Code:
    function  AutoColor: Integer;
    var
      arP: TPointArray;
      arC: TIntegerArray;
      tmpCTS, i, arL: Integer;
      H, S, L: Extended;
    begin
      tmpCTS := GetColorToleranceSpeed;
      ColorToleranceSpeed(3);
      SetColorSpeed3Modifiers(1.5);

      FindColorsSpiralTolerance(382, 276, arP, 5527372, 0, 0, 765, 553, 15);
      if (Length(arP) = 0) then
      begin
        Writeln('Failed to find the color, no result.');
        ColorToleranceSpeed(tmpCTS);
        Exit;
      end;

      arC := GetColors(arP);
      ClearSameIntegers(arC);
      arL := High(arC);

      for i := 0 to arL do
      begin
        ColorToHSL(arC[i], H, S, L);

        if (H >= 33.31) and (H <= 55.58) and (S >= 7.08) and (S <= 14.73) and (L >= 13.31) and (L <= 53.35) then
        begin
          Result := arC[i];
          Writeln('AutoColor = ' + IntToStr(arC[i]));
          Break;
        end;
      end;

      ColorToleranceSpeed(tmpCTS);

      if (i = arL + 1) then
        Writeln('AutoColor failed in finding the color.');
    end;

    The call in my MainLoop.

    Simba Code:
    index = AutoColor;
      writeln('we found '+tostr(index)+' matches');

  22. #97
    Join Date
    Sep 2010
    Posts
    5,762
    Mentioned
    136 Post(s)
    Quoted
    2739 Post(s)

    Default

    Sorry mang, I looked for about 20 minutes for CTS3 examples, found 1 and it didn't set the modifiers. @CynicRus may be able to help

  23. #98
    Join Date
    Aug 2007
    Location
    Colorado
    Posts
    7,421
    Mentioned
    268 Post(s)
    Quoted
    1442 Post(s)

    Default

    Quote Originally Posted by Officer Barbrady View Post
    Sorry mang, I looked for about 20 minutes for CTS3 examples, found 1 and it didn't set the modifiers. @CynicRus may be able to help
    Masterbb gives a pretty good explanation of all color tolerance speeds, as well as CTS3, which you can read about here:
    http://villavu.com/forum/showthread....691#post964691

    Current projects:
    [ AeroGuardians (GotR minigame), Motherlode Miner, Blast furnace ]

    "I won't fall in your gravity. Open your eyes,
    you're the Earth and I'm the sky..."


  24. #99
    Join Date
    May 2012
    Location
    Moscow, Russia
    Posts
    661
    Mentioned
    35 Post(s)
    Quoted
    102 Post(s)

    Default

    Well, this is weird. Because a function SetColorSpeed3Modifiers I saw in Simba's exported function list. As soon as I have time I'll look more deeply at this.

    PS: Oh, and of course it is already in the Simba. After all, I am using functional classes of Simba in the program. Perhaps this function forgot to export.

    Yep, as I said:

    Simba Code:
    3:
            begin
              DefaultCTS3Mod:=CTS3Mod.Value;
             TempClient.MFinder.SetToleranceSpeed(3);
             TempClient.MFinder.SetToleranceSpeed3Modifier(DefaultCTS3Mod);
             TempClient.MFinder.FindColorsTolerance(TPA,aColor,SearchArea.Left,SearchArea.Right,SearchArea.Bottom,SearchArea.Top,Tolerance);
             BMPBuffer.DrawTPA(TPA,clRed);
             end;
    - from my sources
    Simba Code:
    AddFunction(@ps_SetToleranceSpeed3Modifier, 'procedure SetToleranceSpeed3Modifier(Modifier: Extended);');
    AddFunction(@ps_GetToleranceSpeed3Modifier, 'function GetToleranceSpeed3Modifier: Extended;');
    - from simba sources.

    Guys, this is not a bug. This is just mistake in the codegen - just replace SetToleranceSpeed3Modifiers to SetToleranceSpeed3Modifier.

    Fixed, exe updated

    Sorry:P

    Cheers,
    Cynic.
    Last edited by CynicRus; 07-04-2013 at 08:27 AM.
    Per aspera ad Astra!
    ----------------------------------------
    Slow and steady wins the race.

  25. #100
    Join Date
    May 2012
    Location
    Wisconsin, USA
    Posts
    105
    Mentioned
    1 Post(s)
    Quoted
    47 Post(s)

    Default

    Quote Originally Posted by Officer Barbrady View Post
    Sorry mang, I looked for about 20 minutes for CTS3 examples, found 1 and it didn't set the modifiers. @CynicRus may be able to help
    NP, and thanks for the efforts.

    Quote Originally Posted by Flight View Post
    Masterbb gives a pretty good explanation of all color tolerance speeds, as well as CTS3, which you can read about here:
    http://villavu.com/forum/showthread....691#post964691
    Thanks. I'll have to take about a week to absorb some of that information.

    Quote Originally Posted by CynicRus View Post
    Guys, this is not a bug. This is just mistake in the codegen - just replace SetToleranceSpeed3Modifiers to SetToleranceSpeed3Modifier.
    Thank God !! Thought I was crazy or something.
    Last edited by loragnor; 07-04-2013 at 08:49 AM. Reason: Do NOT Double post !!!

Page 4 of 6 FirstFirst ... 23456 LastLast

Thread Information

Users Browsing this Thread

There are currently 2 users browsing this thread. (0 members and 2 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
  •