Results 1 to 18 of 18

Thread: GameTab runtime error:

  1. #1
    Join Date
    Jan 2009
    Location
    Belgium
    Posts
    175
    Mentioned
    0 Post(s)
    Quoted
    14 Post(s)

    Exclamation GameTab runtime error:

    i was using a guildfisher from [R] and then after some loads i get a new tab with GameTab.scar and an runtime error:

    [Runtime Error] : Could not call proc in line 321 in script C:\Program Files\SCAR 3.21\includes\SRL\SRL\Core\GameTab.scar

    ScriptFunction:

    Code:
    function SkillCoords(Row, Column: Integer): TPoint;
    var
      RowArr: array [1..3] of Integer;
      ColArr: array [1..8] of Integer;
    begin
      Result := Point(-1, -1);
      if (not InRange(Row, 1, 8)) then
      begin
        srl_Warn('SkillCoords', 'Row #' + IntToStr(Row) + ' is an invalid row', warn_Warning);
        Exit;
      end;
      if (not InRange(Column, 1, 3)) then
      begin
        srl_Warn('SkillCoords', 'Column #' + IntToStr(Column) + ' is an invalid column', warn_Warning);
        Exit;
      end;
      ColArr := [577, 631, 687];
      RowArr := [228, 260, 293, 324, 356, 388, 420, 419];
      Result := Point(ColArr[Column], RowArr[Row]);
    end;
    Any help?

  2. #2
    Join Date
    Feb 2009
    Location
    Hungary (GMT + 1)
    Posts
    1,774
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I think it's fixed in the latest dev repository. So if you don't using that then switch to it.

  3. #3
    Join Date
    Jan 2009
    Location
    Belgium
    Posts
    175
    Mentioned
    0 Post(s)
    Quoted
    14 Post(s)

    Default

    thanks

  4. #4
    Join Date
    Jan 2009
    Location
    Belgium
    Posts
    175
    Mentioned
    0 Post(s)
    Quoted
    14 Post(s)

    Default

    hmm i updated SRL but it's still the same,
    and can u give me the link for the dev repo. ??(svn link)

  5. #5
    Join Date
    Feb 2007
    Posts
    3,616
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Yush Dragon View Post
    hmm i updated SRL but it's still the same,
    and can u give me the link for the dev repo. ??(svn link)
    Baked0420 has a short tutorial on how to switch to the developers version:

    http://www.villavu.com/forum/showthread.php?t=47993

  6. #6
    Join Date
    Jan 2009
    Location
    Belgium
    Posts
    175
    Mentioned
    0 Post(s)
    Quoted
    14 Post(s)

    Default

    thy

  7. #7
    Join Date
    Jan 2009
    Location
    Belgium
    Posts
    175
    Mentioned
    0 Post(s)
    Quoted
    14 Post(s)

    Default

    huh, it's still not solved:S

  8. #8
    Join Date
    Apr 2007
    Location
    The Netherlands
    Posts
    5,553
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Remove the whole folder then create a new one and then right click 'Checkout Revision'; insert the SRL Developer Revision URL.(I don't have it nearby atm, sorry)
    ~Hermen

  9. #9
    Join Date
    Jan 2009
    Location
    Belgium
    Posts
    175
    Mentioned
    0 Post(s)
    Quoted
    14 Post(s)

    Default

    hermen, im gona talk dutch now,
    ik heb die url geopend die die gast me door gestuurt had en toen had ik alles gedaan
    en nog steeds die error:/

  10. #10
    Join Date
    Sep 2007
    Location
    Pennsylvania
    Posts
    3,396
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I'm getting this too, running My/Cnr Sport's EssMiner Never happened before, so it's not the script.

    (I just updated to latest Dev Revision)

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

    Default

    See if replacing that, with this and see if it works:

    SCAR Code:
    Function SkillCoords(Row, Column : ShortInt): TPoint;
    Begin
      Result := Point(577 + (55 * (Column-1)), 228 + (32 * (Row-1)));
      If Row = 8 Then Result.y := 419;
    End;
    Last edited by Naum; 08-15-2009 at 03:24 AM.

  12. #12
    Join Date
    May 2007
    Location
    UK
    Posts
    4,007
    Mentioned
    1 Post(s)
    Quoted
    12 Post(s)

    Default

    Quote Originally Posted by NaumanAkhlaQ View Post
    See if replacing that, with this and see if it works:

    SCAR Code:
    Function SkillCoords(Row, Column : ShortInt): TPoint;
    Begin
      Result := Point(577 + (55 * (Column-1)), 228 + (32 * (Row-1)));
      If Row = 8 Then Result.y := 419;
    End;
    Tested and worked

    T~M

  13. #13
    Join Date
    May 2008
    Location
    Oregon, USA
    Posts
    154
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I apologize. After looking at that my brain is thinking every which way! That is mostly stuff i do not understand yet. I wish i could help you. sorry

  14. #14
    Join Date
    Jun 2009
    Posts
    147
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I tried switching it with what Nauman recommended, I don't get runtime errors anymore but now it just scrolls up and down in the skills tab.

    The function seems trivial though, can I remove it all together?

    EDIT: I also heard this was fixed in the latest DEV revision?

  15. #15
    Join Date
    May 2007
    Location
    UK
    Posts
    4,007
    Mentioned
    1 Post(s)
    Quoted
    12 Post(s)

    Default

    final_result, how many times has it done that?
    It did that once for me.

    T~M

  16. #16
    Join Date
    Jun 2009
    Posts
    147
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I am using Trilez's Cow Fighter, and everytime it goes to a gametab it gets a Runtime Error

    Once I updated as suggested it would just go up and down the skill tab endlessly.

    It happened everytime with my script, about 1 minute into the script.

    EDIT: I have REV 209 and it doesn't seem to be fixed

  17. #17
    Join Date
    May 2007
    Location
    UK
    Posts
    4,007
    Mentioned
    1 Post(s)
    Quoted
    12 Post(s)

    Default

    Quote Originally Posted by final_result View Post
    I am using Trilez's Cow Fighter, and everytime it goes to a gametab it gets a Runtime Error

    Once I updated as suggested it would just go up and down the skill tab endlessly.

    It happened everytime with my script, about 1 minute into the script.

    EDIT: I have REV 209 and it doesn't seem to be fixed
    Hmm, yeh it is doing it for me again now
    Any fixes?

    T~M

  18. #18
    Join Date
    Jun 2009
    Posts
    147
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I have no idea, I am not a good scripter, I'm a Hello World! scripter. :O

    I can't find out where the script is using the include, I've been trying to cut it out of the script as it doesn't seem important but I can't find it anywhere.

    EDIT: It's been fixed in latest DEV revision I believe. Back to botting
    Last edited by final_result; 08-18-2009 at 04:57 AM.

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
  •