Results 1 to 5 of 5

Thread: RSPS map orientation

  1. #1
    Join Date
    Mar 2012
    Posts
    5
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default RSPS map orientation

    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.

  2. #2
    Join Date
    Feb 2012
    Posts
    25
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    MakeCompass('N'); is not satisfactory?

  3. #3
    Join Date
    Nov 2007
    Location
    46696E6C616E64
    Posts
    3,069
    Mentioned
    44 Post(s)
    Quoted
    302 Post(s)

    Default

    There is a function like GetMMAngle or GetCompasAngle or something.
    There used to be something meaningful here.

  4. #4
    Join Date
    Mar 2012
    Posts
    5
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Does not work i am afraid.
    different compass to rs

  5. #5
    Join Date
    Feb 2012
    Posts
    25
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Exams View Post
    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

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •