Results 1 to 5 of 5

Thread: probs with dtmrotated

  1. #1
    Join Date
    Oct 2007
    Location
    medway.england
    Posts
    66
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default probs with dtmrotated

    hi, im having some trouble with the dtmrotated function, what iv got is
    Code:
    procedure bank2shopwalk;
    var walls:integer;
    begin
    walls := DTMFromString('78DA63AC6262606865400119B521609A11CA6' +
           '76C04AAA94555F3E9C33754359D44A8E900AAE94355539DE18E69' +
           'CE645435C5E8EE69C07433BA5D00E1AF1282');
    if DTMRotated (walls,x,y,615, 115,660, 149) then
    begin
    mouse(x,y,0,0,true)
    writeln('wallfound')
    wait(20000);
    flag;
    end;
    end;
    im not quite shure how the dtmrotated function works but from what i read in the srl manual it checks for dtm then if it dosent find it the cammera is rotated untill its found. but it dosent do any rotating, and it NEVER finds any dtm even when the cam souldent need to be rotated. have i just done something realy nooby wrong? thx in advance for any help

  2. #2
    Join Date
    Feb 2007
    Location
    Het ademt zwaar en moedeloos vannacht.
    Posts
    7,211
    Mentioned
    26 Post(s)
    Quoted
    72 Post(s)

    Default

    Maybe your dtm isn't made correctly? What are the tols etc. ?
    I made a new script, check it out!.

  3. #3
    Join Date
    Aug 2007
    Posts
    1,404
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    Enable codehints. You're missing a lot of parametres such as AngleStep, StartAngle,EndAngle and more

    If you still need help just ask me - I'm also the King of DTM's I use them all the time.

    -Knives

  4. #4
    Join Date
    Mar 2007
    Posts
    3,042
    Mentioned
    1 Post(s)
    Quoted
    14 Post(s)

    Default

    Quote Originally Posted by King of Knives View Post
    Enable codehints. You're missing a lot of parametres such as AngleStep, StartAngle,EndAngle and more

    If you still need help just ask me - I'm also the King of DTM's I use them all the time.

    -Knives
    That's actually FindDTMRotated. He's just using DTMRotated.

    As for your problem, it's probably something to do with your DTM and tolerance, because my script uses the same function and I can find my DTM.
    :-)

  5. #5
    Join Date
    Aug 2007
    Posts
    1,404
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    Didn't notice that. I use FindDTMRotated instead usually. It's more specifiable. I like that.

    -Knives

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Acces Violation with DTMRotated!!!
    By stampede10343 in forum OSR Help
    Replies: 4
    Last Post: 02-28-2008, 12:35 AM
  2. DTMRotated
    By Jackrawl in forum OSR Help
    Replies: 4
    Last Post: 12-20-2007, 11:35 PM
  3. DTMRotated Not Working.
    By chwiggy in forum News and General
    Replies: 3
    Last Post: 04-30-2007, 10:04 AM

Posting Permissions

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