Results 1 to 5 of 5

Thread: RunTime Error Problem

  1. #1
    Join Date
    Nov 2007
    Posts
    47
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default RunTime Error Problem

    Hey all, I am using Radial Walk at the falador east bank it goes up to activateing run and finding the road color but i then get this error

    [Runtime Error] : Exception: Canvas does not allow drawing in line 562 in script C:\Program Files\SCAR 3.13\includes\SRL/SRL/Core/Mapwalk.scar

    Heres the script

    SCAR Code:
    program Project1

    procedure DeclarePlayers;
    begin
      HowManyPlayers := 2;
      NumberOfPlayers(HowManyPlayers);
      CurrentPlayer := 0;

      Players[0].Name := 'xxxxxxx';
      Players[0].Pass := 'xxxx';
      Players[0].Nick := 'xxxx';
      Players[0].Active := True;

      Players[1].Name := 'UserName';
      Players[1].Pass := 'Password';
      Players[1].Nick := '3-4 letters of UserName';
      Players[1].Active := False;

    end;

    Var x, y :Integer;
    Var FaladorRoad : Integer;

    Procedure WalkToLoc;
     Begin
      If(Not(LoggedIn)) Then Exit;
      HighestAngle;
      MakeCompass('N');
       wait(25);
       FaladorRoad := FindFallyRoadColor;
       wait(50);
       SetRun(True);
       RadialWalk(FaladorRoad, 190, 67, 185, 1, 1);
       Flag;
    End;

    Procedure SetUp;
    Begin
      SetupSRL;
      ActivateClient;
      If(Not(LoggedIn))Then
       DeclarePlayers;
       LoginPlayer;
       SetScreenName(Players[CurrentPlayer].Nick);
    End;

    SetUp;
     Repeat
      WalkToLoc;
       If Not LoggedIn Then NextPlayer(False);
     Until (False);
    End.

    Im not sure what is wrong with it, So i thought id post here cause i need help

  2. #2
    Join Date
    Nov 2007
    Posts
    326
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    First things first, make sure that you have the latest revision of SRL(download with Subversion). If that doesn't work, wipe out the whole SRL folder and redownload it. Otherwise, you stumped me.

    Check out my Edgeville Smelter!

  3. #3
    Join Date
    Jun 2007
    Posts
    246
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    try Using scar 3.12c that worked for me

  4. #4
    Join Date
    Dec 2007
    Posts
    26
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    course you could just try everythig possible until something works

  5. #5
    Join Date
    Feb 2007
    Location
    EST (US East Coast)
    Posts
    250
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Fairly certain you'd get this error because 185 is far too large a radius and it would look for the road color on a point outside the minimap.

    Try a smaller radius.
    Temporarily inactive.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Runtime error problem
    By Rora in forum OSR Help
    Replies: 2
    Last Post: 12-06-2007, 05:56 PM
  2. Replies: 9
    Last Post: 07-07-2007, 11:44 PM
  3. [Runtime Error] : Exception: buffer error
    By GasMan in forum OSR Help
    Replies: 11
    Last Post: 05-13-2007, 02:07 PM

Posting Permissions

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