Results 1 to 5 of 5

Thread: FindDtmRotated, what's up?

  1. #1
    Join Date
    Mar 2007
    Location
    Mars, I thought all men were from Mars.
    Posts
    513
    Mentioned
    7 Post(s)
    Quoted
    124 Post(s)

    Default FindDtmRotated, what's up?

    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.
    Last edited by bud_wis_er_420; 02-04-2012 at 04:51 AM.

  2. #2
    Join Date
    Dec 2011
    Posts
    353
    Mentioned
    3 Post(s)
    Quoted
    8 Post(s)

    Default

    Try using DTMRotated.

  3. #3
    Join Date
    Oct 2009
    Location
    Stockton, CA
    Posts
    2,040
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Quote Originally Posted by NexPB View Post
    Try using DTMRotated.
    That function does not exist. I believe that was the name it had in SCAR.
    Join the IRC! irc.rizon.net:6667/srl | SQLite (0.99rc3+) | SRL Doc | Simba Doc | Extra Simba Libraries (openSSL & sqlite3)
    Quote Originally Posted by #srl
    10:45 < Toter> daphil when can get sex anyday I want
    10:45 < Toter> he is always on #SRL
    "A programmer is just a tool which converts caffeine into code"

  4. #4
    Join Date
    Nov 2006
    Posts
    2,369
    Mentioned
    4 Post(s)
    Quoted
    78 Post(s)

    Default

    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
    Quote Originally Posted by DeSnob View Post
    ETA's don't exist in SRL like they did in other communities. Want a faster update? Help out with updating, otherwise just gotta wait it out.

  5. #5
    Join Date
    Mar 2007
    Location
    Mars, I thought all men were from Mars.
    Posts
    513
    Mentioned
    7 Post(s)
    Quoted
    124 Post(s)

    Default

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

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •