Results 1 to 3 of 3

Thread: Wtf error :S

  1. #1
    Join Date
    Feb 2007
    Location
    Access Violation at 0x00000000
    Posts
    2,865
    Mentioned
    3 Post(s)
    Quoted
    18 Post(s)

    Default Wtf error :S

    My script has been running absolutely fine, until a few mins ago. It kept giving this error:
    Code:
    [Runtime Error] : Exception: Canvas does not allow drawing in line 741 in script C:\Program Files\SCAR 3.15\Scripts\RazorSharp.scar
    Line 741:
    SCAR Code:
    Until((Not FindColorTolerance(x, y, WillowColor, B.x1, B.y1, B.x2, B.y2, 8)) Or InvFull);

    First I tried restarting Firefox; didn't work. Then I restarted SCAR; didn't work. Then I ran my script with SMART; didn't work. Then I restarted my whole PC; DIDN'T WORK >:@

    Halp? Never had it before

    EDIT:
    I undid all the changes I made since it was working; still it didn't work.
    Ce ne sont que des gueux


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

    Default

    It usually means your bounds aren't correct (ie. X2 < X1 or Y2 < Y1, etc.). I think it also happens if your bounds are outside the specified client area.

  3. #3
    Join Date
    Feb 2007
    Location
    Access Violation at 0x00000000
    Posts
    2,865
    Mentioned
    3 Post(s)
    Quoted
    18 Post(s)

    Default

    Ah thanks! It was in this function:
    SCAR Code:
    Function BoxAround(Point : TPoint; w, h : Integer): TBox;
    Begin
      Result.x1 := (Point.x - w);
      Result.y1 := (Point.y - h);
      Result.x2 := (Point.x + w);
      Result.y2 := (Point.y + h);
    End;

    I messed up the subtracting and adding >.<
    Ce ne sont que des gueux


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
  •