Results 1 to 14 of 14

Thread: MakeCompass Problem

  1. #1
    Join Date
    Mar 2010
    Posts
    17
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default MakeCompass Problem

    Hi

    I need to incorporate MakeCompass into a few of my scripts as they depend on the way the active screen is aligned when it starts but I just can't seem to get a reaction out of the MakeCompass procedure.

    If I strip out everything else but MakeCompass (see below) I still get no change of the compass/screen angle. The script compiles ok and executes but with no change of angle direction.

    Have I missed the point of what the procedure is supposed to do or have a I got something else simple wrong?

    PS Am running the lastest version of Scar (3.22) and all the includes are updated on a daily basis with SVN.

    Thanks for any advice.

    Code:
    Program MoveScreen1;
    {.include SRL\SRL.Scar}
    
    begin
      SetUpSRL;
      ActivateClient;
      MakeCompass('w')
    end.

  2. #2
    Join Date
    Oct 2009
    Location
    Stockton, CA
    Posts
    2,040
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Try using SCAR 3.23. Checkout http://freddy1990.com/svn/scarprerelease.
    Join the IRC! irc.rizon.net:6667/srl | SQLite (0.99rc3+) | SRL Doc | Simba Doc | Extra Simba Libraries (openSSL & sqlite3)
    Quote Originally Posted by #srl
    10:45 < Toter> daphil when can get sex anyday I want
    10:45 < Toter> he is always on #SRL
    "A programmer is just a tool which converts caffeine into code"

  3. #3
    Join Date
    Mar 2010
    Posts
    17
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Actually sorry am using 3.23. Had the problem on 3.22 but have been using the beta release for about a week.

    Thx.

  4. #4
    Join Date
    Oct 2006
    Posts
    371
    Mentioned
    0 Post(s)
    Quoted
    5 Post(s)

    Default

    Try this:

    Code:
    Program MoveScreen1;
    {.include SRL\SRL.Scar}
    
    begin
      SetUpSRL;
      ActivateClient;
      Wait(2000); // Before doing anything, lets make sure it did activate the client.
      MakeCompass('W'); // Made it a capital W, not sure if that changes it.
    end.

  5. #5
    Join Date
    Feb 2009
    Posts
    2,155
    Mentioned
    4 Post(s)
    Quoted
    42 Post(s)

    Default

    yay you need a wait time before makecompass I had this same problem a little while back

  6. #6
    Join Date
    Jan 2010
    Posts
    5,227
    Mentioned
    6 Post(s)
    Quoted
    60 Post(s)

    Default

    If that doesn't work, try MakeCompass(270);.

  7. #7
    Join Date
    Mar 2010
    Posts
    17
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Ok thanks for the suggestions.

    Added the wait and also tried settling the angle by degrees as an alternative.

    Still no error message - so is obviously recognizing the command but still getting no rotation either. Commands before and after the MakeCompass command will work fine.

    Any other ideas??

    Thx.

  8. #8
    Join Date
    Oct 2006
    Posts
    371
    Mentioned
    0 Post(s)
    Quoted
    5 Post(s)

    Default

    Are you installed the SRL SVN correctly? And is it updated to the latest version?
    And did you move the plugin files correctly?

  9. #9
    Join Date
    Feb 2009
    Posts
    2,155
    Mentioned
    4 Post(s)
    Quoted
    42 Post(s)

    Default

    did you drag the crosshairs over the client?

  10. #10
    Join Date
    Jan 2010
    Posts
    5,227
    Mentioned
    6 Post(s)
    Quoted
    60 Post(s)

    Default

    Also, try different angles. Make your compass directly north by hand, then run it and make it go south. Should work.

  11. #11
    Join Date
    Mar 2010
    Posts
    17
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Sebo - yes using scar 3.23 and daily updates of SRL thru Tortoise SVN. Followed all installation instructions in the tut including moving the files to the right folders. Downloaded and installed again as a double check. Most other SRL functions are working fine.

    Pizzle - yes correctly selected client window - as evidenced by the rest of the script functioning properly.

    Yewws - had tried it from lots of angles.

    Obviously something at my end given nobody else has a problem with it!

    I have managed a temporary work around by Mouse clicking over the compass itself which resets it to North and then using
    KeyDown(VK_Up); and
    KeyDown(VK_Left); to adjust the direction
    - although is a bit more cumbersome and not as accurate but can live with it....just would have been nice to get the proper functions included.

    Will keep fiddling with it then and see if i can figure it out.

    Cheers.

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

    Default

    I use this code to make it north and up:
    SCAR Code:
    ClickNorth( True );
    SetAngle( True );
    There used to be something meaningful here.

  13. #13
    Join Date
    Apr 2007
    Location
    Perth, Australia
    Posts
    3,926
    Mentioned
    3 Post(s)
    Quoted
    2 Post(s)

    Default

    I'm getting the problem too. MakeCompass only works some of the time. Not sure why yet.

  14. #14
    Join Date
    Jan 2010
    Posts
    5,227
    Mentioned
    6 Post(s)
    Quoted
    60 Post(s)

    Default

    It was happening for me when I was (attempting to) add ivy for Cohen. It seems as though it'd only not move it if the current angle was within the semi circle of the angle you're trying to achieve.

    (In case that's not clear, what seems to have been happening to me was that if I was trying to do MakeCompass('E');, it'd only work if the compass was currently set to 271-359 degrees. If it was anywhere between north and south on the east side of the compass, it wouldn't work.)

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
  •