SRL Archive - Help and Support

aligning Minimap angle correctly.


Sjoe

2013-03-27 13:20:35

Hey, I need your gigantic SRL brains here :)

We know that after awhile the minimap shifts and the compassangle stays the same.


So it would look like this after few minutes
or

Anyone have a decent method to get the MM look like this again?
A nice perfectly straight MM

Olly

2013-03-27 13:32:34

Get the angle from the walls.

Sjoe

2013-03-27 13:33:36

From: Ollybest
Get the angle from the walls.


I don't know how mate :)

any functions I can rely on?

Quick example? :p

The Killer

2013-03-27 13:35:58

My idea was using rotating Bitmaps or dtms :s

cause

2013-03-27 14:10:32

This is an annoying problem. I was under the impression logging out and back in again was the only fix.
EDIT: Do walls always stay the same white colour?

Sjoe

2013-03-27 15:58:41

From: cause
This is an annoying problem. I was under the impression logging out and back in again was the only fix.
EDIT: Do walls always stay the same white colour?


I think they do, so u could use them .

Anyway this is what I did:

Makes a Tbox from the bank dots and calculate the angle


Works for me at the moment, I know the logic is flawed.
But would be great with the bank line and GetAngle.

litoris

2013-03-27 16:18:50

Why do you need perfect north?

rj

2013-03-27 16:20:21

From: litoris
why do you need perfect north?


sps

Sjoe

2013-03-27 17:05:24

From: litoris
Why do you need perfect north?


only works at specific angle on some spots.

Kasi

2013-03-27 17:24:51

Fuck SPS old school.


FindDTMRotated(DTM, X, Y, MMX1, MMY1, MMX2, MMY2, -180, 180, 0.5, THE_ANGLE_THE_DTM_IS_FOUND_AT_OMG)

make a bankers dtm, rotate the compass by THE_ANGLE_THE_DTM_IS_FOUND_AT_OMG

Sjoe

2013-03-27 20:54:45

From: Kasi
Fuck SPS old school.


FindDTMRotated(DTM, X, Y, MMX1, MMY1, MMX2, MMY2, -180, 180, 0.5, THE_ANGLE_THE_DTM_IS_FOUND_AT_OMG)

make a bankers dtm, rotate the compass by THE_ANGLE_THE_DTM_IS_FOUND_AT_OMG


Could u explain : rotate the compass by THE_ANGLE_THE_DTM_IS_FOUND_AT_OMG.

No idea what the aFound:Extended; parameter does in findDTMRotated

How to use Makecompass in combination with THE_ANGLE_THE_DTM_IS_FOUND_AT_OMG ?

litoris

2013-03-28 11:55:19

From: Sjoekeloe
Could u explain : rotate the compass by THE_ANGLE_THE_DTM_IS_FOUND_AT_OMG.

No idea what the aFound:Extended; parameter does in findDTMRotated

How to use Makecompass in combination with THE_ANGLE_THE_DTM_IS_FOUND_AT_OMG ?


var
THE_ANGLE_THE_DTM_IS_FOUND_AT_OMG : Integer;
begin
FindDTMRotated(BankerDTM, X, Y, MMX1, MMY1, MMX2, MMY2, -180, 180, 0.5, THE_ANGLE_THE_DTM_IS_FOUND_AT_OMG);
MakeCompass(THE_ANGLE_THE_DTM_IS_FOUND_AT_OMG);
end;

Setting Anyangle to true worked for me in OSRS BTW.

Sjoe

2013-03-28 14:46:01

From: litoris

var
THE_ANGLE_THE_DTM_IS_FOUND_AT_OMG : Integer;
begin
FindDTMRotated(BankerDTM, X, Y, MMX1, MMY1, MMX2, MMY2, -180, 180, 0.5, THE_ANGLE_THE_DTM_IS_FOUND_AT_OMG);
MakeCompass(THE_ANGLE_THE_DTM_IS_FOUND_AT_OMG);
end;

Setting Anyangle to true worked for me in OSRS BTW.


Thx for explanation.

It's a part at the map which is mostly trees that bugs up.
If u got time, wanna look into it ? :p

The Killer

2013-03-28 14:48:23

From: Sjoekeloe
Thx for explanation.

It's a part at the map which is mostly trees that bugs up.
If u got time, wanna look into it ? :p

I'm going to have a good go now :P

Kasi

2013-03-29 12:54:30

From: Sjoekeloe

No idea what the aFound:Extended; parameter does in findDTMRotated


it returns the angle the dtm is found it. Say your compass is rotated -10 degrees, findDTMRotated will search for the dtm after its found, if it is found; it will store the angle that dtm was found at in aFound (AngleFound)

Sjoe

2013-03-29 12:56:47

From: Kasi
it returns the angle the dtm is found it. Say your compass is rotated -10 degrees, findDTMRotated will search for the dtm after its found, if it is found; it will store the angle that dtm was found at in aFound (AngleFound)


Aha, thanks for explaning!