Results 1 to 10 of 10

Thread: Runtime Error

  1. #1
    Join Date
    Jul 2008
    Location
    Canada
    Posts
    1,612
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Runtime Error

    Ok i have this part of the script where it is supposed to select the option 'chop' for it to chop down the willow..
    SCAR Code:
    Mouse(x,y,0,0,false);
           if(IsUpText('Chop'))then
             Wait(5000 + (random(150)));
             ChooseOption('Chop')

    like that.

    But i get this ugly runtime error before it clicks chop!
    It says...[Runtime Error] : Exception: Access violation at address 006D3B83 in module 'scar.exe'. Read of address 00000000 in line 302 in script C:\Users\owner\Desktop\SRL/SRL/Core/Text.scar

    Line 302 of Text.scar is ...
    SCAR Code:
    S := CreateBitmapMaskFromText(txt, font);
    I don't see what is wrong, do you?

  2. #2
    Join Date
    Jan 2008
    Location
    NC, USA.
    Posts
    4,429
    Mentioned
    0 Post(s)
    Quoted
    4 Post(s)

    Default

    Scar 3.2?
    Quote Originally Posted by irc
    [00:55:29] < Guest3097> I lol at how BenLand100 has become noidea
    [01:07:40] <@BenLand100> i'm not noidea i'm
    [01:07:44] -!- BenLand100 is now known as BenLand42-
    [01:07:46] <@BenLand42-> shit
    [01:07:49] -!- BenLand42- is now known as BenLand420
    [01:07:50] <@BenLand420> YEA

  3. #3
    Join Date
    May 2008
    Posts
    1,345
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    SCAR Code:
    if(IsUpText('hop'))then
      Mouse(x,y,0,0,false);
      Wait(750 + (random(150)));
      ChooseOption('hop');

    Try something like that.

    ~Sandstorm

  4. #4
    Join Date
    Oct 2007
    Location
    #srl
    Posts
    6,102
    Mentioned
    39 Post(s)
    Quoted
    62 Post(s)

    Default

    Quote Originally Posted by Sandstorm View Post
    SCAR Code:
    if(IsUpText('hop'))then
      Mouse(x,y,0,0,false);
      Wait(750 + (random(150)));
      ChooseOption('hop');
    I dont think it would be that if its a Runtime Error.

    Make sure you have updated scar and SRL

  5. #5
    Join Date
    May 2008
    Posts
    1,345
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by N C D S View Post
    I dont think it would be that if its a Runtime Error.

    Make sure you have updated scar and SRL
    Your probably right, I just figured that would be better then what he has now lol :/.

    ~Sandstorm

  6. #6
    Join Date
    Oct 2007
    Location
    #srl
    Posts
    6,102
    Mentioned
    39 Post(s)
    Quoted
    62 Post(s)

    Default

    Quote Originally Posted by Sandstorm View Post
    Your probably right, I just figured that would be better then what he has now lol :/.

    ~Sandstorm
    well you were right about that, if not the whole thing

  7. #7
    Join Date
    Jan 2008
    Location
    NC, USA.
    Posts
    4,429
    Mentioned
    0 Post(s)
    Quoted
    4 Post(s)

    Default

    I thought there was a problem with chooseoption multi in when using SCAR 3.2. Zypher explained it to me.
    Quote Originally Posted by irc
    [00:55:29] < Guest3097> I lol at how BenLand100 has become noidea
    [01:07:40] <@BenLand100> i'm not noidea i'm
    [01:07:44] -!- BenLand100 is now known as BenLand42-
    [01:07:46] <@BenLand42-> shit
    [01:07:49] -!- BenLand42- is now known as BenLand420
    [01:07:50] <@BenLand420> YEA

  8. #8
    Join Date
    Jan 2008
    Location
    NC, USA.
    Posts
    4,429
    Mentioned
    0 Post(s)
    Quoted
    4 Post(s)

    Default

    I thought there was a problem with chooseoption multi in when using SCAR 3.2. It couldnt find the bitmaps of the menu. Zypher explained it to me.
    Quote Originally Posted by irc
    [00:55:29] < Guest3097> I lol at how BenLand100 has become noidea
    [01:07:40] <@BenLand100> i'm not noidea i'm
    [01:07:44] -!- BenLand100 is now known as BenLand42-
    [01:07:46] <@BenLand42-> shit
    [01:07:49] -!- BenLand42- is now known as BenLand420
    [01:07:50] <@BenLand420> YEA

  9. #9
    Join Date
    Dec 2008
    Posts
    2,813
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    yeah there is a chooseoption bug.. >.>

    downgrade to 3.15b

  10. #10
    Join Date
    Jul 2008
    Location
    Canada
    Posts
    1,612
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    meh... anyways i have to like delete SCAR and do it alll again my includes are messed up

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [Runtime Error] : Exception: buffer error
    By GasMan in forum OSR Help
    Replies: 11
    Last Post: 05-13-2007, 02:07 PM
  2. Runtime Error
    By CamHart in forum OSR Help
    Replies: 2
    Last Post: 11-23-2006, 05:21 AM
  3. Runtime error
    By sk8ter in forum OSR Help
    Replies: 3
    Last Post: 10-30-2006, 01:55 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
  •