Results 1 to 4 of 4

Thread: DTM unreliable?

  1. #1
    Join Date
    Oct 2007
    Location
    Atlantis with u'r girlfriend
    Posts
    251
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default DTM unreliable?

    are DTM as unreliable as im finding them to be. yesterday at 1 am i was doing some code, mainly DTMs. now at 6am at least the first 2 DTMs (the beginning DTM and a bak up) stopped working. earlier at 1 am i had tested both DTMs cross world at different camera angles and they worked perfectly. now its like i never did anything. it simply cant find it.

    if you feel like it go to varrocks general store and try this script
    BTW:apart from being tested like 6 times each without failure yesterday. they have a
    tolerance of 30!

    this is part of my walking code
    SCAR Code:
    program bank;
    {.include SRL\SRL.scar}
    var
    //the place where it stores the loc if found
    x,y:integer;
    //DTMs
    m1:Integer;
    m1b:Integer;
    //this stores the found angle in the end of the or something
    trash:extended;

    //these are the dtms
    procedure loadDTMs;
    begin
    m1 := DTMFromString('78DA63CC606260306340015565850C72409A1' +
           '188FF03016302504D146E3520C0980754134240CD44A01A63026A' +
           '40EE2920A0A612A8C61E554D84BB218A1A009ACB10EC');

    m1b := DTMFromString('78DA6334666060506740015565850C72409A1' +
           '188FF03016324906180AA26C2DD10AE0604183D80843E01352640' +
           'C217B75D60357640C296803949404205BF3900216C0E2C');
    end;

    begin
    // * * * * * * * * * * * * * * * * * * * * * * * *
    // * *           Shop to Varrock center          *
    // * * * * * * * * * * * * * * * * * * * * * * * *
    // * * * * * * * * * * * * * * * * * * * * * * * *
     setupSRL;
    PerfectNorth;
    //load the DTMs
     loadDTMs;
    //Primary FindDTM
     if(FindDTMRotated(m1,x,y, 518, 0, 763, 165, -1,1, 0.001,trash)) then
      begin
      writeln('road found');
      Mouse(x,y,0,0,true);
      end else
    //Secondary FindDTM
      if(FindDTMRotated(m1b,x,y, 518, 0, 763, 165, -1,1, 0.001,trash)) then
       begin
       writeln('road found by backup');
       Mouse(x,y,0,0,true);
       end else
       begin
       writeln('End of the line for you, my friend. give it another try');
       Exit;
      end;
    //makes it wait until it reaches the flag
    CountFlag(0);
    end.

  2. #2
    Join Date
    Sep 2006
    Location
    New Jersey, USA
    Posts
    5,347
    Mentioned
    1 Post(s)
    Quoted
    3 Post(s)

    Default

    Because of changing colors and tolerances, DTM's are unreliable for mainscreen object finding and are usually reserved for inventory items (get 4-6 points of the item's black outline and the dtm should work perfectly). If you want to find monsters, I'd recommend that you use some sort of color check (findcolortolerance, etc.).
    Interested in C# and Electrical Engineering? This might interest you.

  3. #3
    Join Date
    Feb 2006
    Location
    Amsterdam
    Posts
    6,136
    Mentioned
    28 Post(s)
    Quoted
    17 Post(s)

    Default

    What object do these DTM's represents?

    • All Colors in runescape vary, both in Mainscreen as well as in Minimap. Most colors "stableize" after one LPW (Loading Please Wait...) Screen.
    • There is a huge tolerance difference however in the configuration of the rsclients colorstate.
    • Better use DDTM's, dynamic DTM's. You can input colorvariables runtime in a DDTM.
    SRL is a Library of routines made by the SRL community written for the Program Simba.
    We produce Scripts for the game Runescape.

  4. #4
    Join Date
    Oct 2007
    Location
    Atlantis with u'r girlfriend
    Posts
    251
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    will, use DDTMs aldo what is a good tolerance for DTMs in minimaps, i used to think 30 was an extreme.

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
  •