Results 1 to 2 of 2

Thread: MakeCompass

  1. #1
    Join Date
    Dec 2011
    Posts
    164
    Mentioned
    4 Post(s)
    Quoted
    23 Post(s)

    Default MakeCompass

    I've attempted to use
    P07_MakeCompassNorth;
    P07_MakeCompassDegree(0);
    to make the map point north, so I create a custom SPS map. Sadly, the map continues spinning endlessly with both commands.

    Even using a very simple script like:
    Simba Code:
    program new;
    {$DEFINE SMART}
    {$i SRL\SRL.simba}
    {$I P07Include.Simba}
    Procedure North;
    begin
    P07_MakeCompassNorth;
    end;


    begin
    SetupSRL;
    SRL_SixHourFix := True;
    SMART_FixSpeed := True;
    North;
    end.

    The spinning will not stop. This spinning is for all directions, and all degrees

    Additionally, I attempted to just test out the CurAngle:=P07_GetCompassAngle; part of the function itself, and using that command by itself, and having it writeln, it will always result in 0.

    I don't know what the problem is, or if there is another way of making the compass north (Clicking the compass doesn't work )

    Thanks!

  2. #2
    Join Date
    Mar 2013
    Posts
    224
    Mentioned
    1 Post(s)
    Quoted
    127 Post(s)

    Default

    Code:
    program new;
    {$DEFINE SMART}
    {$i SRL\SRL.simba}
    {$I P07Include.Simba}
    
    
    begin
    SetupSRL;
    SRL_SixHourFix := True;
    SMART_FixSpeed := True;
    P07_MakeCompassNorth;
    P07_MakeCompassDegree(360);
    end.
    Why not just put them in there?

    I put 2 because they're the same thing, as with MakeCompassDegree(0);

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
  •