Everything was working fine last night. I get home from work and open simba and the script I'm working on. When I push play it does absolutely nothing. It is like the script is running but stuck in a endless loop doing nothing. After a little bit I narrowed it down to the FindDtmRotated function. I opened my FindDtmRotated testing script and it too is hanging up. I try I new DTM and all of a sudden it works. Go back to the main DTM and it hangs again. So it is the DTM, but what I'm confused about is why is it just not returning false? Why is it hanging up at all? And this DTM has been working fine for the last week since I made it. Why all of a sudden it's acting up now?
Here is my testing script with the dtm. The dtm is used to open the northern most bank booth in edge. I used auto color aid to help make it.
Simba Code:
program new;
//{$DEFINE SMART} //
{$i srl/srl.scar}
var Ang: Extended;
begin
ClearDebug();
//Smart_Server := 44;
SetupSRL();
DTM := DTMFromString('78DA636461646038C48001FEC36820606405A' +
'A790BE1F341C56525B419C480342394CFF812489C86B059A16269' +
'89FE0C4CC86A1480AC5304D4E80159E709A8B9C64058CD3920718' +
'2801A6B46C26A7481ACED04D4DC6520AC8699B0390098141C64');
if(FindDtmRotated(DTM, x, y, 25, 25, 500, 325, -PI*2, PI*2, Pi/30,
Ang))then
begin
writeln('Spot found');
MMouse(x, y,0,0)
end else writeln('Spot not found');
end.