Originally Posted by
The Mayor
From what I understand there isn't a difference between SRL5 and SRL6. Your script will only terminate if you try to
draw something on the SMART canvas which is out of bounds (which is why I asked you before). If you are simple searching for a color within a box that is out of bounds, it will adjust your coordinates, just like srl5 (so I don't know what you are trying to do?). Output from SRL6:
Code:
Warning! You passed a wrong xs to a finder function: -20. That is below 0, thus out of bounds. Setting the value to 0 for now.
Noooooooooo, Sorry, 'draw' wasn't even nearly the correct word. I don't know what to say, to be honest. FindColorTolerance, for example, finds colors inside a box, defined by the given coordinates. Those are the boxes I'm doing. Well, sorry for causing this confusion. I'll reproduce my problem in a simple script:
Simba Code:
program new;
{$I SRL-6/SRL.simba}
var
x, y: integer;
begin
FindColorTolerance(x, y, 1234, 1593, 274, 1720, 449, 5);
end.
Progress Report:
Compiled successfully in 1061 ms.
Exception in Script: Runtime error: "You passed a wrong xe to a finder function: 1720. The client has a width of 1602, thus the xe is out of bounds." at line 8, column 21
The following bitmaps were not freed: [Minimap Mask]
So, an example in my script:
Simba Code:
if FindColorsSpiralTolerance(960, 515, WispTPA, 7234624, MMSX1, MMSY1, MMSX2, MMSY2, 10) or
FindColorsSpiralTolerance(960, 515, WispTPA, 7234624, MMSX1, MMSY1, MMSX2, MMSY2, 10) then
begin
WispTPAA := TPAToATPAEx(WispTPA, 32, 32);
SortATPASize(WispTPAA, True);
MiddleTPAEx(WispTPAA[0], WispX, WispY);
MouseSpeed := RandomRange(40, 46);
Mouse(WispX, WispY, 1, 1);
MouseSpeed := 25; //Move Mouse to the coordinates found
T.start();
repeat
FindBitmapToleranceIn(bmpWispSkyBoxBitMap, x, y, WispX, WispY, WispX+300, WispY+300, 5); //THIS IS THE PROBLEM!!!!!!!!!!!!!!!!!!!
The problem in this script of mine comes when the Divination Wisp is found near the edge of the screen, and then WispX+300, WispY+300 goes out of bounds, returning the same report as above.