SRL Archive - S.M.A.R.T. Questions and Answers.

Autocolor + SMART = not work?


noidea

2009-03-22 00:35:42

function FindRockColor2: Integer;
var
GC, a, l, TestColor, OtherTestColor: integer;
var
P:array of Tpoint;
begin
GC := 4343623;
Flag;
FindColorsSpiralTolerance(MMCX,MMCY, P, GC, MMX1,MMY1,MMX2,MMY2, 100);
DebugTPA(P, 'sdf'); //2960941
l:=GetArrayLength(P);
for a:= 0 to l-1 do
begin
TestColor := GetColor(P[a].x,P[a].y);
OtherTestColor := GetColor(P[a].x-1,P[a].y);
if TestColor - OtherTestColor = 1250837 then
begin
Result := TestColor;
Writeln('Rock Color = ' + IntToStr(TestColor));
Exit;
end;
end;
Writeln('Could not find Rock Color!');
Result := 0;
end;

After awhile of using this, (On SMART) It doesnt seem to work. I used DebugTPA(), and it showed that it wasnt finding the color, even with 80 tolerance! This after 10 - 20 minutes.

Please Help!

NiCbaZ

2009-03-22 00:54:41

Test it on the normal RS Client, and see the results, why would SMART alter the the color finding?

lordsaturn

2009-03-22 00:58:41

SMART has strange problems like this all the time.. Usually it just requires you to restart SCAR.
It seems to occur more often when you minimize/maximize SCAR alot.

obdukt

2009-03-22 01:04:36

Why are so many people pooped with AutoColor.
fine your own colours takes 2 secs even though autocolor is handy

noidea

2009-03-22 01:55:20

It does work on the Real client after testing. I have never had a problem with this until the last few days.

noidea

2009-03-24 17:51:27

Bump, guys, I really need help with this. Does any one else have similar problems, and is there any way to fix this?

Naum

2009-03-24 18:00:44

Yes there is, You have to specify the smart client just as you would for the runescape client, I have experienced it before aswell :)

noidea

2009-03-24 18:29:25

From: NaumanAkhlaQ
Yes there is, You have to specify the smart client just as you would for the runescape client, I have experienced it before aswell :)


So after SMART pops up, stop the script and drag the cross hairs to it then run the script again?

Cazax

2009-03-24 19:02:40

From: noidea
So after SMART pops up, stop the script and drag the cross hairs to it then run the script again?

Not really, use
FindWindow('SMART''S title');
//or...
FindWindowBySize(SMART_W, SMART_H);
Don't know if that would help you…

noidea

2009-03-26 17:18:02

From: Cazax
Not really, use
FindWindow('SMART''S title');
//or...
FindWindowBySize(SMART_W, SMART_H);
Don't know if that would help you…


Well, eigther FindWindow('') didnt work, or I have the name wrong. And I dont know the width or hight of SMART.

Failpailirl

2009-03-26 19:17:03

it worked on the regular client not smart most times :\

noidea

2009-03-26 19:17:46

From: failpailirl
it worked on the regular client not smart most times :\


Patty noob, stop spamming my thread

noidea

2009-03-28 15:43:43

Dammet, it still isnt working for me. The script its messing up for me is in my signature. (FindRockColor2 in the script)

PriSoner

2009-03-28 22:31:40

Rock colour is constant once the client window is opened. It only changes when you start a fresh session i.e. closing the smart window and opening a new one.

All you have to do is use FindRockcolor once as the first point it is needed… Use it to define a variable and then at all other points you would normally call FindRockColor just refer to the variable instead.

noidea

2009-03-28 22:50:15

Ok thx :) Ill try that :)