Results 1 to 7 of 7

Thread: Out of range in Text.scar

  1. #1
    Join Date
    Oct 2006
    Posts
    468
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Out of range in Text.scar

    Getting an error when using FindText from text.scar. Which is this if you don't feel like opening it up

    Code:
    function FindText(var cx, cy: Integer; txt: string; font, xs, ys, xe, ye:
      Integer): Boolean; //by Stupid3ooo
    var
      S: Integer;
    begin
      S := CreateBitmapMaskFromText(txt, font);
      if (xs < 0) then xs := 0;
      if (ys < 0) then ys := 0;
      Result := FindBitmapMaskTolerance(S, cx, cy, xs, ys, xe, ye, 30, 30);
      FreeBitmap(S);
    end;
    Line 305 is where is says the error is so

    Code:
      Result := FindBitmapMaskTolerance(S, cx, cy, xs, ys, xe, ye, 30, 30);
    That's the line and the error is
    "[Runtime Error] : Exception: Canvas does not allow drawing in line 305 in script C:\Program Files\SCAR 3.15\includes\SRL/SRL/Core/Text.scar"
    Any help would be appreciated, thanks.

  2. #2
    Join Date
    Oct 2006
    Location
    United States
    Posts
    672
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

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

    Default

    It seems rather that you aren't using FindText for RuneScape but for something else?
    Do you?
    Because not all clients support these BitMap things.

    [offtopic]D1zl3 gratz on srl member :P[/offtopic]
    Ce ne sont que des gueux


  4. #4
    Join Date
    Oct 2006
    Location
    United States
    Posts
    672
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Floor66 View Post
    [offtopic]D1zl3 gratz on srl member :P[/offtopic]
    haha thanks alot :P

  5. #5
    Join Date
    Mar 2007
    Posts
    4,810
    Mentioned
    3 Post(s)
    Quoted
    3 Post(s)

    Default

    Hmmm? By any chance you wouldn't be using SMART would you???

  6. #6
    Join Date
    Oct 2006
    Posts
    468
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I would be using Smart, is that a problem?

    QUOTE=Floor66;517830]It seems rather that you aren't using FindText for RuneScape but for something else?
    Do you?
    Because not all clients support these BitMap things.
    [/QUOTE]

    Nope, for runescape.

    Quote Originally Posted by D1zl3 View Post
    Do you have the right rev #?
    SRL is rev 30, and reflection is rev 150.

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

    Default

    Try running the same script, removing SMART. See if the error still holds on.
    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)

Similar Threads

  1. First script: Wired357's Range Guild.scar
    By wired357 in forum First Scripts
    Replies: 11
    Last Post: 12-18-2008, 04:55 PM
  2. out of range in AntiRandoms.scar HuH?
    By kor in forum OSR Help
    Replies: 5
    Last Post: 05-21-2008, 11:24 AM

Posting Permissions

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