Results 1 to 15 of 15

Thread: mining.scar?

  1. #1
    Join Date
    May 2008
    Location
    California
    Posts
    41
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    mining.scar?

    I'm working on a mining script, but when I try to include mining.scar from the srl, I get this when compiling.
    SCAR Code:
    Line 28: [Error] (28:25): Unknown type 'TAutoColorInfo' in script I:\SCAR\Includes\SRL\SRL\skill\Mining.scar
    Line 28: [Error] (28:25): Unknown identifier '' in script I:\SCAR\Includes\SRL\SRL\skill\Mining.scar

    I updated my includes, and I still get the error. Is mining.scar out of date, or did I miss something?

  2. #2
    Join Date
    Oct 2007
    Location
    http://ushort.us/oqmd65
    Posts
    2,605
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Are you updating includes by subversion? If not, then search for 'subversion' on these forums.
    I do visit every 2-6 months

  3. #3
    Join Date
    Sep 2007
    Posts
    638
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    SCAR Code:
    var
      arRockRecords: array of TAutoColorInfo;

    I believe those are the lines. May help somebody help you...?

  4. #4
    Join Date
    May 2008
    Location
    California
    Posts
    41
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Aser View Post
    SCAR Code:
    var
      arRockRecords: array of TAutoColorInfo;

    I believe those are the lines. May help somebody help you...?
    That's the same lines I have. Try compiling the script, and see if it gives errors?

    Quote Originally Posted by zasz View Post
    Are you updating includes by subversion? If not, then search for 'subversion' on these forums.
    I'll try that.

  5. #5
    Join Date
    Sep 2007
    Posts
    638
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Line 28: [Error] (28:25): Unknown type 'TAutoColorInfo' in script X:\Tools\SCAR 3.15\Includes\SRL\SRL\skill\Mining.scar
    Line 28: [Error] (28:25): Unknown identifier '' in script X:\Tools\SCAR 3.15\Includes\SRL\SRL\skill\Mining.scar
    I get it too...but I'm not sure I'm on the most recent rev... + I only do the manual revs because my dial-up dislikes svn.

  6. #6
    Join Date
    May 2008
    Location
    California
    Posts
    41
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Aser View Post
    I get it too...but I'm not sure I'm on the most recent rev... + I only do the manual revs because my dial-up dislikes svn.
    I just downloaded the latest SRL through SVN but I still get the error. Can somebody confirm that the latest SVN has this error?

  7. #7
    Join Date
    Oct 2006
    Location
    ithurtsithurtsithurtsithurts
    Posts
    2,930
    Mentioned
    7 Post(s)
    Quoted
    135 Post(s)

    Default

    Well, mine doesn't have this problem. And judging from the error (saying that TAutoColorInfo isn't a known type) your problem isn't actually with Mining.scar, but rather with Object.scar in the core folder of SRL.

  8. #8
    Join Date
    May 2008
    Location
    California
    Posts
    41
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by senrath View Post
    Well, mine doesn't have this problem. And judging from the error (saying that TAutoColorInfo isn't a known type) your problem isn't actually with Mining.scar, but rather with Object.scar in the core folder of SRL.
    I deleted the whole SRL folder, and re-downloaded it via Svn.

    Do I need to include object.scar in my script? If I do, then that gives me an error... What should I try now?

  9. #9
    Join Date
    Oct 2006
    Location
    ithurtsithurtsithurtsithurts
    Posts
    2,930
    Mentioned
    7 Post(s)
    Quoted
    135 Post(s)

    Default

    You shouldn't need to include object.scar. Dunno what's going wrong, though.

  10. #10
    Join Date
    Oct 2007
    Location
    http://ushort.us/oqmd65
    Posts
    2,605
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    post the script you are using.
    I do visit every 2-6 months

  11. #11
    Join Date
    Nov 2007
    Location
    Chile
    Posts
    1,901
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Include SRL.


  12. #12
    Join Date
    May 2008
    Location
    California
    Posts
    41
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Well, I re-downloaded SCAR and re-downloaded SRL, but I still get the error. Here's the script that I'm trying to run (I know there are errors, but the compiler won't get past line 2).

    SCAR Code:
    program PowerMiner;
    {.include SRL\SRL\SKILL\MINING.SCAR}
    {.include SRL\SRL\MISC\SMART.SCAR}
    {.include SRL\SRL.SCAR}

    var
    WaitTime : Integer;
    Mining : string;
    Place : string;
    ore : string;

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

      Players[0].Name := '99wcing 4eva'; //your runescape account
      Players[0].Pass := 'wassup'; // your runescape password of your account
      Players[0].Nick := 'cing'; // 2-4 letters to use for antirandoms
      Players[0].Active := True; // use this character?
      Mining := copper; //What to mine? Choice of: Clay, Copper, Tin, Iron, Coal, Gold, Mithril, Adamant
      Place := rimmington; //Where to mine? Choice of: rimmington, lumbridge or varrock
      ore := place+' '+mining


    end;

    Procedure Login;
    begin
      LoginPlayer;
    end;

    Procedure AntiBan;
    begin
      if(not(LoggedIn))then Exit;
      case Random(25) of
        0: begin
             HoverSkill('Mining', false);
             wait(2453+Random(432));
           end;
        1: begin
             pickupmouse;
           end;
        2: begin
             MakeCompass('N');
             MakeCompass(IntToStr(Random(360)));
             wait(500+random(500));
           end;
        3: begin
             GameTab(1 + Random(12));
             wait(800 + random(500));
             GameTab(4);
           end;
        4: begin
             BoredHuman;
           end;
        5: begin
             case Random(3) of
               0: Typesend('Lagg');
             end;
           end;
        6: begin
            MMouse(Random(750), Random(750), Random(100), Random(100));
           end;
        7: begin
            case Random(5) of
            0: begin If(LoggedIn)then Logout;
               WaitTime := 120000+(random(60000));
                     Wait(WaitTime);
                     WriteLn('Taking a break for: '+inttostr(WaitTime));
               end;
            1: begin If(LoggedIn)then Logout;
               WaitTime := 600000+(random(120000));
                     Wait(WaitTime);
                     WriteLn('Taking a break for: '+inttostr(WaitTime));
               end;
            end;
           end;
        8: begin
             wait(10000+random(5000));
           end;
      end;
    end;

    Procedure AntiRandom;
    Begin
      If(FindFight)then
        RunAway('N', True,1,15000);
      FindNormalRandoms;
      FindLamp('Mining');
    end;

    Procedure getOre;
    begin
      SetupMining;
      if(not(findpick)) then Logout;
      if(findgas) then
      begin
        PrintLn('Gas was found, waiting...');
        Wait(3000+random(50000));
      end;
      if(not(findgas)and(

    end;

    begin
      Disguise('iTunes');
      DeclarePlayers;
      SMARTSetUpEX(55, False, True, False);
      SetTargetDC(SMARTGetDC);
      SetupSRL;
      ActivateClient;
      Login;
        if(Logged in)then Repeat
          AntiBan;
          AntiRandom;
          getOre;
        Until(not(Logged in));
    end.

  13. #13
    Join Date
    Oct 2006
    Location
    ithurtsithurtsithurtsithurts
    Posts
    2,930
    Mentioned
    7 Post(s)
    Quoted
    135 Post(s)

    Default

    Put the {.include srl/srl.scar} above the other includes.

  14. #14
    Join Date
    Nov 2007
    Location
    Chile
    Posts
    1,901
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by senrath View Post
    Put the {.include srl/srl.scar} above the other includes.
    It would give compiling errors since he uses SMART. Include SRL after SMART, but smart goes first. Capricci?


  15. #15
    Join Date
    May 2008
    Location
    California
    Posts
    41
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Cazax View Post
    It would give compiling errors since he uses SMART. Include SRL after SMART, but smart goes first. Capricci?
    You both got it

    I needed to put SRL.SCAR before Mining.scar, but not at the very top or SMART would give me errors. Thanks to both of you!

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Mining.scar problem...
    By Drakan in forum OSR Help
    Replies: 7
    Last Post: 05-18-2008, 09:37 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
  •