SRL Archive - Research & Development Lounge

Perfect Compass Aligning from Wall's?


Sir Ducksworthy

2012-05-29 04:22:33

K so I've recently been thinking about how I'm going to update the Compass Angle Making/Correcting Functions since Clicking the compass north no longer actually Set's the Map Angle directly north and is always off a bit.

I also would like to have the function use the Mouse Scroll Button Clicking + Mouse Movement method of changing Compass angles incorporated for humanization of the method.

What I came up with to get a perfect North was somewhat different to how the current method does it.

I figured by comparing Wall Points or even using trees and stuff I think wed be able to make a perfect north Possible.


Thoughts?

Brandon

2012-05-29 04:31:10

It's not possible.. You have to hold the keys down for it to change angle. The compass always moves a certain amount no matter how long you hold it.

Example: (2 degrees * Length of time held) or something like that. It will never move that precise. Try it with your fingers and see. I've always tried pressing it as fast as I can to get it perfectly north but it never works. You'd end up rotating the compass a couple hundred times before it actually gets to perfect north.

Sir Ducksworthy

2012-05-29 04:37:09

Yeah but it work's when you hold in the mouse scroll button and move the mouse 2 do it ;)
Edit: You just reminded me of trying to do it manually a few times lol it took ages ay with the key's

masterBB

2012-05-29 04:43:39

It is possible to get a close to perfect angle from walls. Did it before. This only works some situations where there are a enough walls and not too many people on the minimap.

Sir Ducksworthy

2012-05-29 04:51:01

Awesome Dude^
Yeah that's the only problem 2 many people that's why we can use DTM's of trees and stuff/Angles between 2 Different DTM's.
Edit: All so now that I think about it we can get around that 2 many people thing by just Filtering TPA Cluster Width since the Players Icon is wider than a wall.

Gu3st...

2012-05-29 05:03:25

You can check how Naum (NaumanAkhlaQ) did it when he made the maze solver

masterBB

2012-05-29 05:05:19

From: leetsxc
Awesome Dude^
Yeah that's the only problem 2 many people that's why we can use DTM's of trees and stuff/Angles between 2 Different DTM's.
Edit: All so now that I think about it we can get around that 2 many people thing by just Filtering TPA Cluster Width since the Players Icon is wider than a wall.


Yes, you need to do that. But when I made that code falador bank for example was full of players selling stuff, you only had small pieces of wall to work with.