SRL Archive - OSR Help

FindDtmRotated, what's up?


bud_wis_er_420

2012-02-03 23:49:36

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.

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.

NexPB

2012-02-04 07:58:00

Try using DTMRotated.

Sex

2012-02-04 08:41:43

From: NexPB
Try using DTMRotated.


That function does not exist. I believe that was the name it had in SCAR.

weequ

2012-02-04 08:52:35

Correct me if i'm wrong but you are checking 4*Pi radians = 720 degrees?


try
if(FindDtmRotated(DTM, x, y, 25, 25, 500, 325, 0, PI*2, Pi/30,
Ang))then

bud_wis_er_420

2012-02-05 01:40:17

I had to reinstall simba, to fix the problem. Must of been a corrupt file or something.