SRL Archive - News and General

One answer: DDTM or RadialWalkTolerance


Heavenguard

2009-12-06 11:50:19

Thats it, Im giving DDTM ONE last try. I wanted to script the "right" way and use DDTM-RadialWalkTolerance-Then Symbol finding as a final fail safe. If it does not work out, I may as well quit learning it and stop wasting my time.

Just one question: DDTM or RadialWalkTolerance? You dont need post which is faster, shorter, or whatever. Although knowing how accurate each one is comparared to each other at this time would help.

Awkwardsaw

2009-12-06 12:03:38

DDTM is used mostly for building tbh. :) id go for radial walk tolerance, then ddtms

Naum

2009-12-06 12:04:45

I have never used DDTM's for walking, EVER. Its radial walk or symbol walk all-the-way :)

MylesMadness

2009-12-06 12:09:17

I use DDTM's to see if we are in the right spot.

Blumblebee

2009-12-06 12:09:30

DDTM's are the most accurate way of walking in cases with unique shapes and/or colors. I prefer TPA walking for pretty much everything :)

FEAR

2009-12-06 12:11:04

DDTM is mostly (if not only) for road walking in my opinion. There ins't a range where it searches for the color and it could click anywhere in the MM where similar colors are. Just forget about DDTMs. I told you use RadialWalkTolerance.

Heavenguard

2009-12-06 12:19:12

Last try, same result. Scar clicked north on the compass, Which set my Result := True.

program WalkOutOfVarrock;
{.include SRL/SRL.scar}

var
DDTMTolerance : Integer;

function SetDDTM: Integer;
var
dtmMainPoint: TDTMPointDef;
dtmSubPoints: Array [0..3] of TDTMPointDef;
TempTDTM: TDTM;
RoadColor : Integer;
begin
RoadColor := FindVarrockRoadColor;
dtmMainPoint.x := 905;
dtmMainPoint.y := 241;
dtmMainPoint.AreaSize := 1;
dtmMainPoint.AreaShape := 0;
dtmMainPoint.Color := RoadColor;
dtmMainPoint.Tolerance := 0;

dtmSubPoints[0].x := 905;
dtmSubPoints[0].y := 241;
dtmSubPoints[0].AreaSize := 1;
dtmSubPoints[0].AreaShape := 0;
dtmSubPoints[0].Color := RoadColor;
dtmSubPoints[0].Tolerance := 0;

dtmSubPoints[1].x := 905;
dtmSubPoints[1].y := 230;
dtmSubPoints[1].AreaSize := 1;
dtmSubPoints[1].AreaShape := 0;
dtmSubPoints[1].Color := RoadColor;
dtmSubPoints[1].Tolerance := 0;

dtmSubPoints[2].x := 905;
dtmSubPoints[2].y := 250;
dtmSubPoints[2].AreaSize := 1;
dtmSubPoints[2].AreaShape := 0;
dtmSubPoints[2].Color := RoadColor;
dtmSubPoints[2].Tolerance := 0;

dtmSubPoints[3].x := 901;
dtmSubPoints[3].y := 239;
dtmSubPoints[3].AreaSize := 1;
dtmSubPoints[3].AreaShape := 0;
dtmSubPoints[3].Color := RoadColor;
dtmSubPoints[3].Tolerance := 0;

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

Function WalkOutOfBank : Boolean;
var
x, y, DDTM : Integer;
begin
if not LoggedIn then Exit;
SetRun(True);
DDTM := SetDDTM
DDTMTolerance := 5
repeat
if not DTMRotated(DDTM, x, y, MMX1, MMY1, MMX2, MMY2) then
begin
IncEx(DDTM, 5);
Writeln('DDTM Tolerance Increased by 5, It is now ... '+IntToStr(DDTMTolerance));
FreeDTM(DDTM);
DDTM := SetDDTM;
end else
begin
Mouse(x, y, 4, 4, true);
Writeln('Found DDTM clicking on Point now');
Result := True;
Wait(500);
Break;
end;
until DDTMTolerance >= 50;
DDTM := SetDDTM;
DDTMTolerance := 5;
end;

begin
SetupSRL;
ClearDebug;
ActivateClient;
Wait(100+Random(1000));
MakeCompass('w');
if WalkOutOfBank then
Writeln('Walked out of bank')
else
Writeln('I give up GG');
end.
I didn't put much effort into it as I would, but no mistakes were made to my knowledge in making it. GG. DDTM := Not used for me.

begin
RadialWalkTolerance := 100;
DDTM := -100;
if (RadialWalkTolerance > DDTM) then
Writeln('RadialWalkTolerance Wins')
else
Writeln('H@x');
end.

MylesMadness

2009-12-06 12:20:30

From: Blumblebee
DDTM's are the most accurate way of walking in cases with unique shapes and/or colors. I prefer TPA walking for pretty much everything :)
Kinda like FindColorsTol(…) FilterPointPie(…) MiddleTpa(…) sorta?

Blumblebee

2009-12-06 12:25:19

From: MylesMadness
Kinda like FindColorsTol(…) FilterPointPie(…) MiddleTpa(…) sorta?


you got it. I'm actually not a big fan of FilterpointsPie anymore, you can sort the colors just fine without skipping areas, FindColorSkipBox works just fine. TPA walking just gives your more flexibility than that of RadialWalk imo, and realistically its not that much more difficult.

Heavenguard

2009-12-06 12:43:57

This is a simple RadialWalkTolerance function I used not too long ago, Made it in less then 3 minutes.
program New;
{.include SRL/SRL.scar}

Function WalkOutOfVarrockBank : Boolean;
var
x, y : Integer;
begin
MakeCompass('w');
if RadialWalkTolerance(FindVarrockRoadColor, 326, 346, 48, 1, 1, 15) then
begin
Writeln('Found RadialWalkTolerance Area') ;
Result := True;
end else
Writeln('Did Not Find RadialWalkTolerance Area');
end;

begin
SetupSRL;
ClearDebug;
ActivateClient;
begin
Wait(100+Random(1000));
if WalkOutOfVarrockBank then
Writeln('Walked out of Bank')
else
Writeln('Did not Walk out of Bank');
end;
end.

Didn't take my time on it, but it worked perfectly and much better / easier / shorter then DDTM. Ill go with RadialWalkTolerance for now on then DDTM.

marpis

2009-12-06 12:47:13

RadialWalkTolerance
  • + Easy to use
  • + Fast
  • - Might walk to wrong place if not walking along a road

DDTM
  • + The most accurate way to find a certain location
  • - Depending on how many subpoints you're using, can be quite slow
  • - Takes time and practice to learn how to pick good points, areas and tolerances

Symbol clicking
  • + Easy to use
  • + Quite reliable in non-crowded places with SymbolAccuracy >0.7
  • - Players might hide the symbol
  • - SymbolAccuracy 0.6> will easily click the wrong symbol
  • - Symbols more randomly from place to place, and clicking it might not take you exactly where you wanted

There isn't one best way to walk. The best walking function is one that uses all methods available. If you're trying to find a bank radialwalk is probably not the way to go. If you're trying to walk straight down along a road you might want to think twice before using DDTMs.

Heavenguard

2009-12-06 12:50:21


There isn't one best way to walk. The best walking function is one that uses all methods available. If you're trying to find a bank radialwalk is probably not the way to go. If you're trying to walk straight down along a road you might want to think twice before using DDTMs.


But if I want to go hide in a random corner on the edge of the MM and point my compass North Id use DDTM :D

noidea

2009-12-06 13:25:05

From: Naum
I have never used DDTM's for walking, EVER. Its radial walk or symbol walk all-the-way :)


+1. DDTM's are so slow when walking.
Make an Autocolour :) I dont like the idea of tolerance when radialWalking

Dervish

2009-12-06 13:34:34

I used that on my apply :

-Try with DDTM
-If fail then try RW
-If fail FindSymbol
-If fail approximate click

When you can use something simple, use it, don't go for anything complicated ;).

Good luck.

FEAR

2009-12-06 13:45:18

From: noidea
+1. DDTM's are so slow when walking.
Make an Autocolour :) I dont like the idea of tolerance when radialWalking


Why not? In my opinion Radial Walk with Tolerance is better than Radial Walk. With Radial Walk I couldn't make a nice walking procedure as the colors kept changing after logging out. RadialWalkTolerance solved that problem easily.

YoHoJo

2009-12-06 13:58:45

You sure your autocoloring with DDTMS is correct? That is one big problem.
Have the script Writeln(IntToStr(RoadColorHere)) to check if its even getting the correct color.

IMO its RRW first, then DDTMs to either check/or for tricky places.
I'm almost done with walk from Varrock east mine to Varrock east bank, its all RRW, a few symbols finds to check where I am, and I might add one DDTM to check where I am/maybe click once.

Don't give up! Walking is a bi*ch!

Heavenguard

2009-12-06 14:01:24

Fine I wont give up, I wasn't anyway XD.

noidea

2009-12-06 17:16:43

From: FEAR
Why not? In my opinion Radial Walk with Tolerance is better than Radial Walk. With Radial Walk I couldn't make a nice walking procedure as the colors kept changing after logging out. RadialWalkTolerance solved that problem easily.


Hence why I said "Make an Autocolour "

marpis

2009-12-06 18:33:41

From: noidea
+1. DDTM's are so slow when walking.

Wrong. They can be quite fast if you have used time to think the subpoint properties right.

From: noidea

Make an Autocolour :) I dont like the idea of tolerance when radialWalking

After RuneTek5 there are way too many colors in the MM. There can be 10+ road colors. The colors also vary more than they used to. Tolerance works just fine when you use it in the right place.

noidea

2009-12-06 18:39:38

From: marpis
After RuneTek5 there are way too many colors in the MM. There can be 10+ road colors. The colors also vary more than they used to. Tolerance works just fine when you use it in the right place.


FindTreeColor still works. I made that before the RuneTek5 update. If people would work more and think of more than just rgbhslxyz than we would have autocolors. Blumblebee worked on them, but he tells me no one took notice of his work.

Coh3n

2009-12-06 19:53:00

From: noidea
FindTreeColor still works. I made that before the RuneTek5 update. If people would work more and think of more than just rgbhslxyz than we would have autocolors. Blumblebee worked on them, but he tells me no one took notice of his work.

I also made a new thread about a new AutoColor from functions Nava made for me, and no one but him seemed to have an opinion.

Heavenguard

2009-12-06 20:20:37

Omg its Coh3n. Its an Honor to see you post in my thread. God bless you.
-Bows-

Coh3n

2009-12-06 20:22:01

From: Heavenguard
Omg its Coh3n. Its an Honor to see you post in my thread. God bless you.
-Bows-

Haha, I've never had anyone say that to me, nor bow. :tongue:

Heavenguard

2009-12-09 10:27:26

Wow, Surprisingly today, I was just trying DDTM's again, and it works perfectly xD, I wrote the whole script without looking at anything about DDTM's This whole entire week. Everything just made sense! I wonder why, Also, I dont even errors anymore whenever I run scripts, I think my scripting skills are getting up there. DDTM's Are really not that hard XD, as a matter of fact I think its less work then RadialWalking. Its good for those tight spaces as well.

Coh3n

2009-12-09 11:36:26

From: Heavenguard
Wow, Surprisingly today, I was just trying DDTM's again, and it works perfectly xD, I wrote the whole script without looking at anything about DDTM's This whole entire week. Everything just made sense! I wonder why, Also, I dont even errors anymore whenever I run scripts, I think my scripting skills are getting up there. DDTM's Are really not that hard XD, as a matter of fact I think its less work then RadialWalking. Its good for those tight spaces as well.

Haha, there's always a point where something just hits you, and you begin to understand things perfectly. Looks like it hit you. ;)

Gu3st...

2009-12-09 15:18:34

From: Heavenguard
Omg its Coh3n. Its an Honor to see you post in my thread. God bless you.
-Bows-
Hmm.. Never seen such posts aimed at other people that the Fawk and JuKKa.. You're famous Coh3n! ;)

HeavenGuard: Good to hear that you finally got it working! Walking is the one of the hardest things to do in runescape! I haven't actually ever learned DDTMs..

Coh3n

2009-12-09 15:24:54

From: Zyt3x
Hmm.. Never seen such posts aimed at other people that the Fawk and JuKKa.. You're famous Coh3n! ;)

Haha, it would appear so. :p

MylesMadness

2009-12-09 17:21:32

Coh3n is epic sauce!