SRL Archive - Outdated Tutorials

The Universal Power of DTM's!


King of Knives

2007-10-10 16:14:28

THIS TUTORIAL WILL NOT TEACH YOU HOW TO MAKE A DTM!
Before reading this tutorial, I strongly advice to read a tutorial about
making DTM's. I learned DTM's from YoHoJo's tutorial, but it's your
choice what you use.

This brief tutorial took me about 20 mininutes to make, so don't complain about it not being perfect.

-Intro-
Many people believe that DTM's are to be used in the inventory alone.
That is actually wrong.
To prove this, I have brought examples from my Draynor-Netter and
Fishing Guild Fisher with me here.

-Using DTM's in the minimap-
(Here, I will refer to material from my Draynor-Netter - Link in sig)

As everybody knows, DTM's are made by choosing static points (Non-moving
points)
Static points also exist on the minimap. Take a look at this:
and this:

Notice the formation of the NPC-dots (Bankers), and the trees?
You could go in any world, and find them in that exact formation, just
rotated according to your MiniMap-angle and MiniMap-angle-randomness.
Also, no players can walk in over the minimap signs of either the
bankers or the trees.

Luckily, there is a function to find rotated DTM's!
All you would need to do is set a subpoint on each of the bankers (or
trees), with a color randomness of 10-20, and then find it with a
rotated angle of -30 to 30 (ALWAYS: Anglestep 0.01 for best results)

-Using DTM's on the RS-Main-Screen-
This is what is normally considered impossible - WRONG!
(Here I will refer to my Fishing Guild Lobster Fisher - Link in sig)
Take a look at this picture of a bank-booth (From the Fishing Guild, but
could be virtually anyone).
This is where it gets hard.

What I chose to make a DTM of here, was the stony part of the bankbooth,
and some of the surrounding wood-like parts. Then I used FindDTMRotated
(again), with the usual -30 to 30 degree search, and it has always found
it.

—–

Thanks for reading my brief tutorial on enhancing your use of DTM's.
if there was anything I didn't make clear, or something you want to know, just post it here.

-Knives

ZephyrsFury

2007-10-10 21:12:27

I suggest that you talk about the actual functions (FindDTMRotated) used to find DTMs and what parameters you need, etc. Also with one of your examples (the bankers one), don't the yellow dots on the minimap move a lot. I mean if you look at that pic you have up there, two dots are almost on top of each other (or are they always like that?).

King of Knives

2007-10-11 06:19:12

They're always like that :D Or maybe a pixel removed, but that's no difference when you have tolerance in your DTM

-Knives

ZephyrsFury

2007-10-11 07:31:31

From: King of Knives
They're always like that :D Or maybe a pixel removed, but that's no difference when you have tolerance in your DTM

-Knives


Lol ok. Shows you how much I actually play RS. ;). And by tolerance do you mean the size of the point? If you make the size of the point bigger, the DTM is still detected if the dots move a couple of pixels.

ShowerThoughts

2007-10-11 07:35:11

if you use the middle of the yellow dots(bankers) then you dont need find dtm rotated because it works always for me!\

nice i always used it like this

ZephyrsFury

2007-10-11 07:41:27

What do you mean by the middle… as in find the dots and get the avg x and y coords (the middle of them)? If so theres a problem if there's another npc somewhere on the screen.

ShowerThoughts

2007-10-11 07:50:27

with bankers if they dont move its not wrong

just like the varrock bank

mainpoint on the most in the middle banker(lol:p) and the subpoints on the otehr bankers and even the mm moves it stil finds :)

ZephyrsFury

2007-10-11 08:28:35

Yea I've made a DTM for the bankers in my RM Runner. Varrock is easy because the bankers move a max of like 2 pixels. :)

King of Knives

2007-10-11 15:29:05

The yellow color changes very little when the bankers move 1 pixel, so that's no problem. BTW, I meant COLOR-tolerance :D

-Knives

The Claw

2007-10-27 21:37:23

Nah the bankers and trees do change position, just by a couple of pixels or so. They dont actually move on the minimap, just the image gets deformed, stretched or squashed sorta thing. It's usually not enough to be noticed, but it does happen and can mess up a DTM that you've made. So to fix this, since they never move by more than a few pixels, I just put AreaSize to something like 3 for bankers, and 4-5 for trees. This just enlarges the point size, so its searching in a larger area for the presence of that colour ;) Works great.

stranker1

2008-10-31 21:53:14

oooooooo, thanks a bunch dude, i'll try to read up on this in more detail tomarrow because this is going to help me!