SRL Archive - SRL Archives

[FIXED] Frog.scar


JuKKa

2008-05-26 05:17:18

I just got a frog and it didnt solve the cave so i thought… why not look at it.. so i found this..


function DetectFrogCave: Boolean;
var
tcts: Integer;
arPoolPoints: TPointArray;
begin
tcts := GetColorToleranceSpeed;
ColorToleranceSpeed(2);
SetColorspeed2Modifiers(0.2, 10.0);
FindColorsTolerance(arPoolPoints, 6189364, MMX1, MMY1, MMX2, MMY2, 50);
ColorToleranceSpeed(tcts);
Result := (GetArrayLength(arPoolPoints) > 1000)and
(CountColor(0, MMX1, MMY1, MMX2, MMY2) > 1000);
SetColorspeed2Modifiers(0.2, 0.2);
end;

now this line (CountColor(0, MMX1, MMY1, MMX2, MMY2) > 1000);

should be

(CountColorTolerance(0, MMX1, MMY1, MMX2, MMY2, 1) > 1000);

n3ss3s

2008-05-26 05:48:14

Why should it have the 1 tolerance? Minimap's black = 0.

JuKKa

2008-05-26 05:57:18

From: n3ss3s
Why should it have the 1 tolerance? Minimap's black = 0.

isnt the color (cant reme the number only rgb)
R 0
G 0
B 1

well if not.. then u guys got a bigger problem, fixing the whole frog random.

ZephyrsFury

2008-05-26 06:19:49

Yup the black is now 63556 or something.

EDIT: But no matter cos DetectFrogCave has been completely rewritten. :)

Closed.

n3ss3s

2008-05-26 07:09:36

Oh, I thought loading screen black, which is 0, is the same as the general black minimap black…

Btw the other black is 65536… I don't understand these 655 -colors, 65535 is yellow :(