Results 1 to 9 of 9

Thread: Can't figure out DTM walking!

  1. #1
    Join Date
    Apr 2012
    Posts
    92
    Mentioned
    0 Post(s)
    Quoted
    23 Post(s)

    Default Can't figure out DTM walking!

    Right now I have this code just for testing. I want to know why it doesn't walk to the first point [0]?

    Simba Code:
    program Walker;
    {$i SRL/SRL.simba}
    {$I P07Include.Simba}
    var
      x, y, i: Integer;
      Q: Array [0..4] of Integer;
      aFound: Extended;

    procedure SetDTM;//DTM Defining procedure.
    begin
      Q[0] := DTMFromString('mggAAAHicY2NgYFjJxMCwAYpXQvEiIF4LlFsFxDuAeDkQb2GAiEVWyDHE1iswRNfIgTGIH1oix4ALMOLAEAAAzrUN2A==');
      Q[1] := DTMFromString('mbQAAAHicY2VgYNjNxMCwgwlCbwHis0A8Byg+FYiXA/ESIJ4GxDElcgwJhdJgOhmKsQFGLBgMAF/cC4g=');
      Q[2] := DTMFromString('mbQAAAHicY2VgYHjKxMBwHYg/APF7IH4IxHMZILgfiS4skGZITZFgyCqRYygplmPIKZRmwAYYsWAwAACtowxc');
      Q[3] := DTMFromString('mggAAAHicY2NgYLjHxMBwDYhfAPEtKA0SqwTK1TJA6CIobgDinEJpOC4sgGAQGxdgxIEhAAD1vA4A');
      Q[4] := DTMFromString('mbQAAAHicY2VgYLjOxMBwHorfA/EbIO4Dik8C4g4gbmeA8CvyCxjyMzLAeGJHB0OWsQgDNsCIBYMBANeiDUk=');
    end;


    procedure FrDTM;//DTM Freeing procedure.
    begin
      FreeDTM(Q[0]);
      FreeDTM(Q[1]);
      FreeDTM(Q[2]);
      FreeDTM(Q[3]);
      FreeDTM(Q[4]);
    end;



    begin
      SetupP07Include;
      P07_MakeCompassNorth;
      MouseSpeed := 18;
       if FindDTMRotated(Q[0], x, y, MMX1, MMY1, MMX2, MMY2, -Pi/4, Pi/4, Pi/60, aFound) then
      begin
        MMouse(x, y, 3, 3);
        ClickMouse2(mouse_left);
        FFlag(6);
      end;
    end.

  2. #2
    Join Date
    Dec 2011
    Location
    United States
    Posts
    960
    Mentioned
    21 Post(s)
    Quoted
    504 Post(s)

    Default

    Your coordinates are off.

  3. #3
    Join Date
    Dec 2012
    Posts
    115
    Mentioned
    0 Post(s)
    Quoted
    25 Post(s)

    Default

    Coords have to be P07_MMX1, P07_MMY1, etc.

  4. #4
    Join Date
    Apr 2012
    Posts
    92
    Mentioned
    0 Post(s)
    Quoted
    23 Post(s)

    Default

    Quote Originally Posted by Wetish View Post
    Your coordinates are off.
    What you mean with off?

  5. #5
    Join Date
    Apr 2012
    Posts
    92
    Mentioned
    0 Post(s)
    Quoted
    23 Post(s)

    Default

    Quote Originally Posted by mcbain View Post
    Coords have to be P07_MMX1, P07_MMY1, etc.
    Still doesn't work

  6. #6
    Join Date
    Mar 2006
    Location
    Belgium
    Posts
    3,564
    Mentioned
    111 Post(s)
    Quoted
    1475 Post(s)

    Default

    Quote Originally Posted by juunhoad View Post
    Still doesn't work
    Use DDTM's

    Creds to DannyRS for this wonderful sig!

  7. #7
    Join Date
    Apr 2012
    Posts
    92
    Mentioned
    0 Post(s)
    Quoted
    23 Post(s)

    Default

    Quote Originally Posted by Sjoekeloe View Post
    Use DDTM's
    you mean this ?http://villavu.com/forum/showthread....21#post1182921

  8. #8
    Join Date
    Mar 2006
    Location
    Belgium
    Posts
    3,564
    Mentioned
    111 Post(s)
    Quoted
    1475 Post(s)

    Default

    Quote Originally Posted by juunhoad View Post
    That's the one If it clicks on wrong spots make betters Dtm's points.

    Creds to DannyRS for this wonderful sig!

  9. #9
    Join Date
    Dec 2012
    Posts
    115
    Mentioned
    0 Post(s)
    Quoted
    25 Post(s)

    Default

    Quote Originally Posted by juunhoad View Post
    Still doesn't work
    could be your DTMs have really low tolerance, RS changes colors very frequently so if you have lower tolerance on your DTMs, your DTMs will never work right. Also like Sjoekeloe said, DDTMs are awesome, using them will most likely solve your problem.

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
  •