SRL Archive - Bugs

[Bug] Simba Vs Smart.


Brandon

2012-01-18 22:38:27

In simba, with out smart, this code returns true 100% of the time.. even with a very high tolerance..

program new;
{$I SRL/SRL.Simba}
{$I SRL/SRL/Misc/Debug.Simba}

var
X, Y, cols: Integer;
begin
ColorToleranceSpeed(2);
SetColorSpeed2Modifiers(0.00, 0.03);
writeln(FindColoredAreaTolerance(X, Y, 6382182, MSX1, MSY1, MSX2, MSY2, 900, 1));
ActivateClient;
MouseSpeed:= 500;
MMouse(X, Y + 10, 0, 0);
cols:= CountcolorTolerance(6382182, MSX1, MSY1, MSX2, MSY2, 1);
writeln(cols);
end.


In Simba with smart enabled, that same code above will return false every single time even with a tolerance of 50+

program new;
{$Define Smart}
{$I SRL/SRL.Simba}
{$I SRL/SRL/Misc/Debug.Simba}

var
X, Y, cols: Integer;
begin
Smart_Server := 72;
Smart_Members := True;
Smart_Signed := True;
Smart_SuperDetail := False;
SetupSRL;
ColorToleranceSpeed(2);
SetColorSpeed2Modifiers(0.00, 0.03);
writeln(FindColoredAreaTolerance(X, Y, 6382182, MSX1, MSY1, MSX2, MSY2, 900, 1));
ActivateClient;
MouseSpeed:= 500;
MMouse(X, Y + 10, 0, 0);
cols:= CountcolorTolerance(6382182, MSX1, MSY1, MSX2, MSY2, 1);
writeln(cols);
end.

Why is this happening?

legoace

2012-01-19 01:18:05

Can you take screenshots of the different situations? Of course black out your name and character/ etc. Posting the debug you got (i.e. the count of colors) would also be helpful.

One thought that comes to mind is that I've always been told to reset ColorToleranceSpeed back to it's original value at the end of the script… but I don't think that's the issue.

Brandon

2012-01-19 01:23:21

Its two different scripts though.. The debug for the first one is 1111 colours found.. whereas the second one returns absolutely nothing.. just a plain zero.. which is why I posted it here because I am soo puzzled as to why this happens.

Screenshots would be:

For the first one.. I coloured in the area that is found.. I've tested it with a TPA and used DebugTPA(TPA, '') and thats coloured perfectly fine.. whereas with smart it just looks exactly like this:


KingKong

2012-01-19 01:55:26

I don't have a problem with it, perhaps try restarting SMART or something?

Home

2012-01-19 01:57:03

Take out ActivateClient and try again.


~Home

Brandon

2012-01-19 16:18:55

From: Home
Take out ActivateClient and try again.


~Home


Didn't work :S I seriously have no clue what is going on.. I tried restarting smart.. It just seems to be finding a totally different colour than without.. All my settings are correct too.

Wizzup?

2012-01-20 16:50:39

Sounds like http://bugs.villavu.com/view.php?id=381

I can't imagine why this would happen though.

Wizzup?

2012-04-19 18:16:18

Any idea if this is still present? I could not reproduce the above bug last time I tried.

Brandon

2012-04-19 18:23:44

I'll get back to you on this one and the only bug I know of currently is the bitmap painting in Simba 0.99rc3 which may be fixed in rc4 I'll get back to you on both or report it and let you know.

EDIT: Iunno what you did but in Simba 0.99rc4, this is fixed. In Simba 0.99rc3 and below, this is a problem so I guess the 0.99rc4 is a good thing. Thanx a lot Wizz. You accidentally fixed it or maybe purposely but it is fixed only in that version 0.99rc4.

Wizzup?

2012-04-20 19:50:04

That sounds good, although I'm not sure what may have fixed it. ;)