SRL Archive - Help

FindDTMRotated error


Imagine

2012-04-14 10:22:24

Warning! You passed wrong values to a finder function: ys > ye (515,337). Swapping the values for now.
Warning! You passed a wrong ye to a finder function: 515. The client has a height of 503, thus the ye is out of bounds. Setting the value to 502 (h-1) for now.

^ That's the debug box.

if FindDTMRotated(DoorDTM, x, y, MSX1, MSX2, MSY1, MSY2, -Pi/4, Pi/4, Pi/60, aFound) then 
That's my line which it's giving an error for. In addition, it'll never find the DTM it's looking for :/


EDIT: Also, lower mouse speed means faster right?

Abu

2012-04-14 10:27:14

You got your co-ordinates wrong way round :p

Its: MSX1, MSY1, MSX2, MSY2

Imagine

2012-04-14 10:29:48

Oh yeah ._. thanks

Abu

2012-04-14 10:30:57

From: Imagine
Oh yeah ._. thanks


No worries, happens to me all the time :duh:

Joe

2012-04-14 10:34:30

From: abu_jwka
No worries, happens to me all the time :duh:


I always have what I call "Base files" I have mouse commands in one file that I open up, find the correct one, and paste it in… works faster

Imagine

2012-04-14 11:16:53

I need help making a DTM now, for some reason it'll never find it in real time although it has plenty of matches on the DTM Editor.

Abu

2012-04-14 11:20:15

Have you tried a normal FindDTM function against FindDTMRotated?

Also, if you're getting lots of matches on the DTM Editor but not realtime, make sure you're putting the correct values in the brackets. I know I always tend to put the x and y co-ordinates where the DTM should be. Later on I find out that the DTM goes before the x and y co-ordinates within the brackets :p

Imagine

2012-04-14 12:24:32

I'm sure the terms are in the correct places, but wouldn't FindDTM make it harder to find the door since it's more restricted?

Abu

2012-04-14 13:05:13

From: Imagine
I'm sure the terms are in the correct places, but wouldn't FindDTM make it harder to find the door since it's more restricted?


Yes it would, by there's no harm in trying :p

punkd

2012-04-15 04:41:06

Imagine, when making the dtm make sure the color of the outline is not 0. My dtm editor sets it to 0 when the color it should be is 131072. Edit your dtm and make sure.

Gucci

2012-04-15 11:14:20

All I can say is make sure your doing it from high angle and compass at north also use less points so the door is very highlighted

Sir Ducksworthy

2012-04-15 13:12:10

Or use a TPA.. lol

Imagine

2012-04-15 21:09:44

^ I can't use a TPA because there are two essentially identical doors next to each other.

Le Jingle

2012-04-15 21:19:16

In response to your edit in the original post,

MouseSpeed := RandomRange(1,2147483648);

Higher the number, the faster mouse speed returned.