SRL Archive - Bugs & Improvements S.M.A.R.T.

FindBox always True?


Sumilion

2007-09-05 09:28:49

It seems that (only in smart) FindBox always returns true… even when i was logged out.

For your lazyness here is FindBox :

function FindBox: Boolean;
var
xb, yb: Integer;
begin //color from the bitmap NewBox
if (FindColorTolerance(xb, yb, 6776687, MIX1, MIY1, MIX2, MIY2, 40)) then
begin
if (FindBitmapToleranceIn(Box, xb, yb, MIX1, MIY1, MIX2, MIY2, 40)) then
begin
Players[CurrentPlayer].Rand := 'New Box';
//Players[CurrentPlayer].loc := 'New Box';
Result := True;
end;
end;
end;

Suggestions ?

nielsie95

2007-09-05 10:49:15

Lower tol OR/AND 2 colors OR black pixel count?

Sumilion

2007-09-05 10:56:44

From: Sumilion
It seems that (only in smart) FindBox always returns true…


Explain :)

Lorax

2007-09-07 21:54:52

it also calls fake boxes on regular, just lower the tolerances..

Sumilion

2007-09-08 05:26:25

From: Lorax
it also calls fake boxes on regular, just lower the tolerances..


Oh really ….


Shall we just use a bitmap mask for the detecting then (and color first for speed, but with lowered tolerance) ?

When anyone gets a box, let me know please.

Pyro

2007-09-13 20:37:58

From: Sumilion
Oh really ….


Shall we just use a bitmap mask for the detecting then (and color first for speed, but with lowered tolerance) ?

When anyone gets a box, let me know please.


We have a pretty good box solver sum. I doubt we will ever give you a box :p. Just make your script logout when it finds a box i guess then do it. yes im all for bitmap mask. Will be much more efficient.

Wizzup?

2007-09-14 03:29:19

Lorax and Sumilion, please tell me when it gives false positives, on what items, etc.

I've never seen it click anything else.
I know lorax already lowered tol a bit, I just hope it still works, Box colors differ ALOT.

Sumilion

2007-09-14 09:42:44

It was on the inventory itself, and on the logged out screen too … im not sure if it still happens now.