SRL Archive - OSR Help

RSPS map orientation


Exams

2012-06-18 15:01:54

Ok, so I have been trying to make a script for soul split. However, when I log in the compass is never straight, and you can not just click the compass to make the map straight.
So, I was wondering if it was possible to get simba to search the compass in a box of about 10x10 pixels for a bitmap of the N of the compass which is what it looks like when it is straight.
If it can find the bitmap, then the map is straight, and if it can not find the perfect match, then the map is slightly off. The procedure would then if it can't find the bitmap, move the mini map slightly to the left, or slightly to the right, and see if it fits again. When the bitmap matches the compass N then I know the map is exactly as it was when I first made the script, which will make scripting much easier.

If you could tell me how to do this, some code would be nice (you don't need to find the bitmaps etc).
Many Thanks.

Velvet Glam

2012-06-18 15:04:22

MakeCompass('N'); is not satisfactory?

Frement

2012-06-18 15:04:47

There is a function like GetMMAngle or GetCompasAngle or something.

Exams

2012-06-18 15:04:50

Does not work i am afraid.
different compass to rs

Velvet Glam

2012-06-18 15:09:16

From: Exams
Does not work i am afraid.
different compass to rs


I did not know it was different..

All you have to do is edit/update the color of the function rs_GetCompassAngleRadians which is in flag

Then copy and paste the function MakeCompass from mapwalk, and then edit it to use your new GetCompassAngle