SRL Archive - SRL Bugs

DIB Handler error with ChooseOptionMultiEx


Cigue

2010-01-11 23:14:18

Everytime I call ChooseOptionMultiEx (or any of its related functions) in my function, It gives me a DIB Handler error on line 513 of Text.scar.

  B.X1 := 0;
B.Y1 := 0;

FindColorsTolerance(TPA, 4016722, B.X1, B.Y1, B.X2, B.Y2, 0);//Line 513
If Length(TPA) < 10 Then
Exit;

What makes this peculiar is, I used a script yesterday night that heavily relies on WaitOptionMulti, which calls ChooseOptionMultiEx at some point.

Here is the part in my script where I use ChooseOption :

        Mouse(GhostPoint.x, GhostPoint.y, 5, 5, False);
Wait(50 + Random(100));
ChooseOption('Bank');
Wait(150+Random(100));

edit: it works if I add the following line before line 513 :

Writeln(IntToStr(B.X2) + ', ' + IntToStr(B.Y2));

edit: it doesn't works anymore but returns the following client dimensions :

1310064, 2089935987

YoHoJo

2010-01-11 23:54:42

Scar>
Client (Tab) > Reset Specified Window > ReDrag Crosshair again.

Or

Just restart SCAR

Try those first. Its odd that you are getting ridiculous bounds like that for your x2 y2, but its a common SCAR problem.

Usually doing
Scar>
Client (Tab) > Reset Specified Window > ReDrag Crosshair again.
Works though.

code841

2010-01-12 00:00:18

It's only been happening since 3.22 for me :/

Cigue

2010-01-12 00:15:21

I added a Wait(1500+Random(200)); before ChooseOption and it worked >.< problem was that it couldn't find the options box. Oh well thank you YoHoJo and code841 for feedback :p