Log in

View Full Version : FindDTMRotated error



Imagine
04-14-2012, 02:22 PM
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
04-14-2012, 02:27 PM
You got your co-ordinates wrong way round :p

Its: MSX1, MSY1, MSX2, MSY2

Imagine
04-14-2012, 02:29 PM
Oh yeah ._. thanks

Abu
04-14-2012, 02:30 PM
Oh yeah ._. thanks

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

Joe
04-14-2012, 02:34 PM
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
04-14-2012, 03:16 PM
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
04-14-2012, 03:20 PM
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
04-14-2012, 04:24 PM
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
04-14-2012, 05:05 PM
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
04-15-2012, 08:41 AM
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
04-15-2012, 03:14 PM
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
04-15-2012, 05:12 PM
Or use a TPA.. lol

Imagine
04-16-2012, 01:09 AM
^ I can't use a TPA because there are two essentially identical doors next to each other.

Le Jingle
04-16-2012, 01:19 AM
In response to your edit in the original post,

MouseSpeed := RandomRange(1,2147483648);

Higher the number, the faster mouse speed returned.