SRL Archive - Help and Support

Finding a door.


Junior

2007-04-13 17:01:32

Ok, I made a procedure to open up a door, but it doesnt see to be working, it never finds the bitmap I provided. I used FindBitmapToleranceIn. I was looking at FindDTMRotated, and I thought about making a DTM. Now what do you think is better, a bitmap or a DTM for this kinda procedure? The bitmap I used consisted of just the top of the door, but not the whole thing, a little slice of it. For the DTM I was thinking about using 2 points, one for the left side of the door and the other for the right, both points are going to be from the top of the door. Ill show you the picture, and the procedure and how I used it.


if (FindDTMRotated(DoorDTM, x, y, MSx1, MSy1, MSx2, MSy2, - 2.0, 2.0, 1, AngleVar)) then

Boreas

2007-04-13 17:25:30

Bitmap slice should work, as long as you find a good one with a good tolerance, vague enough to always work and specific enough to not get the table etc.

Or use DoorProfiles and uptext

Ejjman

2007-04-13 18:38:00

Heh, AND if DoorProfiles looks confusing, LEARN IT. Its soooo sweetness!

Thick As Blood

2007-04-13 22:41:32

maybe change the screen angle? and look for it that way. i have one that works like that :)

Ejjman

2007-04-13 23:09:56

From: Thick As Blood
maybe change the screen angle? and look for it that way. i have one that works like that :)


Heh, wiat, I got confused what he was doing.


Yes, try something along the lines of using maybe TPoints and scan the middle area? :)

Boreas

2007-04-14 05:39:28

That's what my second link does (by bramble)