Page 2 of 2 FirstFirst 12
Results 26 to 45 of 45

Thread: DDTM Walking With Your Own TPAs

  1. #26
    Join Date
    Dec 2011
    Posts
    733
    Mentioned
    2 Post(s)
    Quoted
    7 Post(s)

    Default

    Which is what i was explaining right? a script created dtm.

  2. #27
    Join Date
    Jun 2006
    Posts
    694
    Mentioned
    0 Post(s)
    Quoted
    31 Post(s)

    Default

    Quote Originally Posted by m34tcode View Post
    Oh, I believe DDTMs are DTMs you create in run-time. Not before you run the script.

    So DDTMs are created on-the-fly. Does that make sense?

    You can create a DTM, have the script search for it, then have the script create its own dtm(DDTM), and search for this new DDTM
    ....

    The point of op is....? I don't know why you're trying to explain it again.

  3. #28
    Join Date
    Dec 2011
    Posts
    733
    Mentioned
    2 Post(s)
    Quoted
    7 Post(s)

    Default

    What? If you mean me explaining after asking whether I make sense, it was because it seemed like I needed to explain more.

  4. #29
    Join Date
    Dec 2006
    Location
    Program TEXAS home of AUTOERS
    Posts
    7,934
    Mentioned
    26 Post(s)
    Quoted
    237 Post(s)

    Default

    SIMBA does not support the DDTM editor , or does it? if not where can I find it mate?

  5. #30
    Join Date
    Jan 2007
    Posts
    8,876
    Mentioned
    123 Post(s)
    Quoted
    327 Post(s)

    Default

    Quote Originally Posted by P1nky View Post
    SIMBA does not support the DDTM editor , or does it? if not where can I find it mate?
    the extension DDTM editor. Turn it on

  6. #31
    Join Date
    Dec 2006
    Location
    Program TEXAS home of AUTOERS
    Posts
    7,934
    Mentioned
    26 Post(s)
    Quoted
    237 Post(s)

    Default

    Quote Originally Posted by Zyt3x View Post
    the extension DDTM editor. Turn it on
    Thanks and what about RRW tool ?

    wait DDTM editor associated with DTM editor?

  7. #32
    Join Date
    Oct 2008
    Location
    C:\Simba\Includes\
    Posts
    7,566
    Mentioned
    19 Post(s)
    Quoted
    180 Post(s)

    Default

    In Simba, DTM Editor in Menu == DDTM Editor form.
    Away for awhile, life is keeping me busy. | Want to get my attention in a thread? @Kyle Undefined; me.
    { MSI Phoenix || SRL Stats Sigs || Paste || Scripts || Quotes || Graphics }

    When posting a bug, please post debug! Help us, help you!

    I would love to change the world, but they won't give me the source code. || To be the best, you've got to beat the rest. || Logic never changes, just the syntax.
    If you PM me with a stupid question or one listed in FAQ, or about a script that is not mine, I will NOT respond.


    SRL is a Library of routines made by the SRL community written for the Program Simba. We produce Scripts for the game Runescape.


  8. #33
    Join Date
    Nov 2011
    Location
    England
    Posts
    3,072
    Mentioned
    296 Post(s)
    Quoted
    1094 Post(s)

    Default

    Isn't this outdated? When i make the DTM it comes up with this
    DTM := DTMFromString('mWAAAAHicY2FgYFBkZGDQBGJpIFYG4hgk3A 7EYcG+DH9/fgTjWEN2BnTAiIZBAADdkQmN');

  9. #34
    Join Date
    Oct 2011
    Location
    Canada
    Posts
    192
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by akonowns View Post
    Isn't this outdated? When i make the DTM it comes up with this
    DTM := DTMFromString('mWAAAAHicY2FgYFBkZGDQBGJpIFYG4hgk3A 7EYcG+DH9/fgTjWEN2BnTAiIZBAADdkQmN');
    As do I, I feel as if I've that somewhere. Time to search!

  10. #35
    Join Date
    Oct 2008
    Location
    C:\Simba\Includes\
    Posts
    7,566
    Mentioned
    19 Post(s)
    Quoted
    180 Post(s)

    Default

    No, this isn't outdated. That's the DTM, in a string.
    Away for awhile, life is keeping me busy. | Want to get my attention in a thread? @Kyle Undefined; me.
    { MSI Phoenix || SRL Stats Sigs || Paste || Scripts || Quotes || Graphics }

    When posting a bug, please post debug! Help us, help you!

    I would love to change the world, but they won't give me the source code. || To be the best, you've got to beat the rest. || Logic never changes, just the syntax.
    If you PM me with a stupid question or one listed in FAQ, or about a script that is not mine, I will NOT respond.


    SRL is a Library of routines made by the SRL community written for the Program Simba. We produce Scripts for the game Runescape.


  11. #36
    Join Date
    Oct 2011
    Location
    Canada
    Posts
    192
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Kyle Undefined View Post
    No, this isn't outdated. That's the DTM, in a string.
    So in stead of this
    Simba Code:
    function SetDDTM: Integer;
    var
      dtmMainPoint: TDTMPointDef;
      dtmSubPoints: Array [0..3] of TDTMPointDef;
      TempTDTM: TDTM;
    begin
      dtmMainPoint.x := 743;
      dtmMainPoint.y := 284;
      dtmMainPoint.AreaSize := 0;
      dtmMainPoint.AreaShape := 0;
      dtmMainPoint.Color := 7568507;
      dtmMainPoint.Tolerance := 0;
     
      dtmSubPoints[0].x := 743;
      dtmSubPoints[0].y := 284;
      dtmSubPoints[0].AreaSize := 0;
      dtmSubPoints[0].AreaShape := 0;
      dtmSubPoints[0].Color := 7568507;
      dtmSubPoints[0].Tolerance := 0;
     
      dtmSubPoints[1].x := 725;
      dtmSubPoints[1].y := 280;
      dtmSubPoints[1].AreaSize := 0;
      dtmSubPoints[1].AreaShape := 0;
      dtmSubPoints[1].Color := 15658734;
      dtmSubPoints[1].Tolerance := 0;
     
      dtmSubPoints[2].x := 762;
      dtmSubPoints[2].y := 284;
      dtmSubPoints[2].AreaSize := 0;
      dtmSubPoints[2].AreaShape := 0;
      dtmSubPoints[2].Color := 15658734;
      dtmSubPoints[2].Tolerance := 0;
     
      dtmSubPoints[3].x := 748;
      dtmSubPoints[3].y := 242;
      dtmSubPoints[3].AreaSize := 0;
      dtmSubPoints[3].AreaShape := 0;
      dtmSubPoints[3].Color := 195836;
      dtmSubPoints[3].Tolerance := 0;
     
      TempTDTM.MainPoint := dtmMainPoint;
      TempTDTM.SubPoints := dtmSubPoints;
      Result := AddDTM(TempTDTM);
    end;

    We can use just the string?

  12. #37
    Join Date
    Feb 2009
    Posts
    1,447
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Quote Originally Posted by uz3 View Post
    So in stead of this
    Simba Code:
    function SetDDTM: Integer;
    var
      dtmMainPoint: TDTMPointDef;
      dtmSubPoints: Array [0..3] of TDTMPointDef;
      TempTDTM: TDTM;
    begin
      dtmMainPoint.x := 743;
      dtmMainPoint.y := 284;
      dtmMainPoint.AreaSize := 0;
      dtmMainPoint.AreaShape := 0;
      dtmMainPoint.Color := 7568507;
      dtmMainPoint.Tolerance := 0;
     
      dtmSubPoints[0].x := 743;
      dtmSubPoints[0].y := 284;
      dtmSubPoints[0].AreaSize := 0;
      dtmSubPoints[0].AreaShape := 0;
      dtmSubPoints[0].Color := 7568507;
      dtmSubPoints[0].Tolerance := 0;
     
      dtmSubPoints[1].x := 725;
      dtmSubPoints[1].y := 280;
      dtmSubPoints[1].AreaSize := 0;
      dtmSubPoints[1].AreaShape := 0;
      dtmSubPoints[1].Color := 15658734;
      dtmSubPoints[1].Tolerance := 0;
     
      dtmSubPoints[2].x := 762;
      dtmSubPoints[2].y := 284;
      dtmSubPoints[2].AreaSize := 0;
      dtmSubPoints[2].AreaShape := 0;
      dtmSubPoints[2].Color := 15658734;
      dtmSubPoints[2].Tolerance := 0;
     
      dtmSubPoints[3].x := 748;
      dtmSubPoints[3].y := 242;
      dtmSubPoints[3].AreaSize := 0;
      dtmSubPoints[3].AreaShape := 0;
      dtmSubPoints[3].Color := 195836;
      dtmSubPoints[3].Tolerance := 0;
     
      TempTDTM.MainPoint := dtmMainPoint;
      TempTDTM.SubPoints := dtmSubPoints;
      Result := AddDTM(TempTDTM);
    end;

    We can use just the string?
    Strings are for DTMs, which has a constant strcuture. DDTMs are dynamic, meaning the points in them can change coordinates, size, colour and tolerance.

    For map walking, you should use DDTMs since the colours of the minimap change often.

    PS: With the code above, everything seems to be constant, so it could be translated into a DTM/generated from a string.

  13. #38
    Join Date
    Dec 2011
    Location
    Toronto, Ontario
    Posts
    6,424
    Mentioned
    84 Post(s)
    Quoted
    863 Post(s)

    Default

    Haha i'll probably get a bit confused but i'll try this out in one of my scripts

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

    Default

    Can this be used to make color tolerance 2 DTMs, by adding hue and sat to it?
    Not scripting for RS anymore, sorry. Banned too many times.
    MY SCRIPTS

  15. #40
    Join Date
    Feb 2013
    Posts
    88
    Mentioned
    0 Post(s)
    Quoted
    37 Post(s)

    Default

    Ok, I read through the tutorial and I feel like this is a really bad way to walk. You have to set up a DTM manually for every time you click on the minimap and also set up a function each point and subpoint of every array? Maybe I'm not understanding this?

    Simba Code:
    function SetDDTM(WalkNumber: Integer): Integer;
    var
      dtmMainPoint: TDTMPointDef;
      dtmSubPoints: array[0..2]  of TDTMPointDef;
      MasterTDTM: TDTM;
    begin
      case WalkNumber of
        1:begin
        dtmMainPOint.x := 660;
        dtmMainPOint.y := 21;
        dtmMainPOint.AreaSize := 1;
        dtmMainPOint.AreaShape := 0;
        dtmMainPOint.Color := 4618874;
        dtmMainPOint.Tolerance := 3;

        dtmSubPoints[0].x := 646;
        dtmSubPoints[0].y := 19;
        dtmSubPoints[0].AreaSize := 1;
        dtmSubPoints[0].AreaShape := 0;
        dtmSubPoints[0].Color := 5338726;
        dtmSubPoints[0].Tolerance := 3;

        dtmSubPoints[1].x := 669;
        dtmSubPoints[1].y := 23;
        dtmSubPoints[1].AreaSize := 1;
        dtmSubPoints[1].AreaShape := 0;
        dtmSubPoints[1].Color := 4418677;
        dtmSubPoints[1].Tolerance := 3;

        dtmSubPoints[2].x := 658;
        dtmSubPoints[2].y := 27;
        dtmSubPoints[2].AreaSize := 1;
        dtmSubPoints[2].AreaShape := 0;
        dtmSubPoints[2].Color := 4487024;
        dtmSubPoints[2].Tolerance := 3;

        MasterTDTM.MainPoint := dtmMainPoint;
        MasterTDTM.SubPoints := dtmSubPoints;
        Result := AddDTM(MasterTDTM);
        end;
      end;
    end;

    function FindFloorColor: Integer;
    var
      TPA: TPointArray;
    begin
      if FindColorsTolerance(TPA, 4618874, P07_MMX1, P07_MMY1, P07_MMX2, P07_MMY2, 3) then
        Result:= GetColor(TPA[0].X, TPA[0].y);
    end;

    This is what I've done so far. I have the TPA for my main point of my first minimap walk. Do I really have to make a function for each subpoint as well? This is just my first walking point of maybe 6 o.O.

  16. #41
    Join Date
    Feb 2007
    Location
    PA, USA
    Posts
    5,240
    Mentioned
    36 Post(s)
    Quoted
    496 Post(s)

    Default

    Xeronate,

    Yes, one would have to create a new DDTM for each point he/she would like to walk to.

  17. #42
    Join Date
    Apr 2007
    Posts
    167
    Mentioned
    0 Post(s)
    Quoted
    3 Post(s)

    Default

    how can i do ddtm to text if there isnt the option in dtm editor?

  18. #43
    Join Date
    Jan 2013
    Posts
    11
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    Quote Originally Posted by klinnks View Post
    how can i do ddtm to text if there isnt the option in dtm editor?
    I'd like to know this also.

  19. #44
    Join Date
    Jan 2009
    Location
    Turlock/LA, California
    Posts
    1,494
    Mentioned
    3 Post(s)
    Quoted
    66 Post(s)

    Default

    because we are not talking about DTMs. this guide is on DDTMs. so naturally, a DTM editor wont necessarily help with DDTMs. Download neilsie's DDTM editor if creating a DDTM.

  20. #45
    Join Date
    Dec 2011
    Location
    Holland
    Posts
    455
    Mentioned
    0 Post(s)
    Quoted
    14 Post(s)

    Default

    Great guide, but one question.

    I have around 40 points to autocolor in my total walking procedure.
    Now somewhere in the comments I read that it's possible to create the multiple TPA's in one function.
    I guess it kinda works the same as with the DTMs (for example: GuardDTM[i]).

    Now I'm kinda confused about the Autocolor TPA function (Do I need to add an array?)
    Added the questions in the boxes underneath.

    Simba Code:
    Function GetDaColor: Integer;
    var  
      TPA : TPointArray;  
      I, Col : Integer;
      //I guess here should come something like: TPA: Array .. of Integer; ?????)
    begin  
      if FindColorsTolerance(TPA, 7568507, MMX1, MMY1, MMX2, MMY2, 10) then  
      begin    
        Col := GetColor(TPA[i].X, TPA[i].Y);    
        Result:= Col;  
      end;

      if FindColorsTolerance(TPA, DifferentColor, MMX1, MMY1, MMX2, MMY2, 10) then  
      begin    
        Col := GetColor(TPA[i].X, TPA[i].Y);    
        Result:= Col;  
      end;
    end;

    Now when I call the TPA's in the DDTM how should I add them?
    Like this?

    Simba Code:
    Function LoadWalkToBankDDTMS(WalkNumber: Integer): Integer;
    var
      dtmMainPoint: TDTMPointDef;
      dtmSubPoints: array[0..4] of TDTMPointDef;
      TempTDTM: TDTM;
    begin
      case WalkNumber of
        1: begin
      dtmMainPoint.x := 648;
      dtmMainPoint.y := 153;
      dtmMainPoint.AreaSize := 0;
      dtmMainPoint.AreaShape := 0;
      dtmMainPoint.Color := GetDaColor;
      dtmMainPoint.Tolerance := 40;

      dtmSubPoints[0].x := 648;
      dtmSubPoints[0].y := 153;
      dtmSubPoints[0].AreaSize := 0;
      dtmSubPoints[0].AreaShape := 0;
      dtmSubPoints[0].Color := GetDaColor;
      dtmSubPoints[0].Tolerance := 40;

      dtmSubPoints[1].x := 627;
      dtmSubPoints[1].y := 133;
      dtmSubPoints[1].AreaSize := 4;
      dtmSubPoints[1].AreaShape := 0;
      dtmSubPoints[1].Color := GetDaColor;
      dtmSubPoints[1].Tolerance := 40;

      dtmSubPoints[2].x := 662;
      dtmSubPoints[2].y := 162;
      dtmSubPoints[2].AreaSize := 3;
      dtmSubPoints[2].AreaShape := 0;
      dtmSubPoints[2].Color := GetDaColor;
      dtmSubPoints[2].Tolerance := 40;

      dtmSubPoints[3].x := 628;
      dtmSubPoints[3].y := 201;
      dtmSubPoints[3].AreaSize := 4;
      dtmSubPoints[3].AreaShape := 0;
      dtmSubPoints[3].Color := GetDaColor;
      dtmSubPoints[3].Tolerance := 40;

      TempTDTM.MainPoint := dtmMainPoint;
      TempTDTM.SubPoints := dtmSubPoints;
      Result := AddDTM(TempTDTM);
      end;                          
    end;

    So how far off am I?
    07Scripter
    I mostly write private scripts

Page 2 of 2 FirstFirst 12

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
  •