On Windows 7 x64 I also do not see any of this behavior.
Printable View
On Windows 7 x64 I also do not see any of this behavior.
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.
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.
i dont know what is wrong haha, i got this working on win8 64bit on another laptop, but my main laptop still doesnt work.
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
I am going to try this when I get home today! I look forward to it! XD
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. :p
..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!
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.
Attachment 21036
Many thanks!
Nice, is it more accurate?
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.
Weird. Gimme more info?
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.
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');
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
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:
- from my sourcesSimba 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 simba sources.Simba Code:AddFunction(@ps_SetToleranceSpeed3Modifier, 'procedure SetToleranceSpeed3Modifier(Modifier: Extended);');
AddFunction(@ps_GetToleranceSpeed3Modifier, 'function GetToleranceSpeed3Modifier: Extended;');
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.