+ Reply to Thread
Results 1 to 7 of 7

Thread: Closing square bracket (']') expected at line 638

  1. #1
    Join Date
    Feb 2009
    Location
    Irvine, CA
    Posts
    2,873
    Mentioned
    8 Post(s)
    Quoted
    138 Post(s)

    Default Closing square bracket (']') expected at line 638

    So I was trying to get my AK_MINER to work in MSI, (turns out i had ROCK_ instead of ORE_ in a lot of places) and when i fixed everything i thought was wrong, i compiled, and got this error:
    Progress Report:
    [Error] C:\Simba\Includes\MSI/Scripts.simba(639:49): Closing square bracket (']') expected at line 638

    so, to check it wasn't my modifications, i checked out a fresh MSI to a new folder, compiled runme.simba, and got the same exact error.

    is anyone else having this problem?

  2. #2
    Join Date
    Sep 2006
    Location
    Texas
    Posts
    1,349
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Hmm nope.

    Sure your running the new Runme.simba and not the old one from the old folder?

  3. #3
    Join Date
    Feb 2009
    Location
    Irvine, CA
    Posts
    2,873
    Mentioned
    8 Post(s)
    Quoted
    138 Post(s)

    Default

    yes, 100% positive.

    E: Got a fresh checkout of MSI AND SRL AND Reflection, and it worked ...

    E2: with a fresh install of reflection, srl, and MSI, i re-integrated my fisher first, worked like a charm
    then i attempted to re-integrate the AK Miner, but it didn't work... However the error line is in one of the rimmington scripts, which i didn't write. Perhaps it's one of those?

    E3: did some tedious searching with N++ and found 2 missing brackets (well 1 extra [ and 1 missing ])... but now i'm getting a syntax error

    Progress Report:
    [Error] C:\Simba\Includes\MSI/Scripts.simba(599:13): Syntax error at line 598
    [Error] C:\Simba\Includes\MSI/Scripts.simba(599:13): Syntax error at line 598
    Compiling failed.


    line 598: (in SCRIPT_RM_IRON_1)
    Simba Code:
    SCRIPT_RM_IRON_1:
          with MSI_Scripts[whichScript] do
          begin                        // line 558
            Name          := 'Rimmington Iron Miner 1';
            Constant      := SCRIPT_RM_IRON_1;
            Tools         := [TOOL_PICKAXE];
            SkillName     := 'Mining';
            SkillConstant := SKILL_MINING;
            Objects       := [ROCK_IRON];
            Items         := [[ORE_IRON]];
            BankType      := DBox;
            WhichBank     := DBOX_PS;
            CompassAng    := -1;
            AutoObjects   := @MSI_MineInvFull;

            with PathInfo do
            begin
              StartLoc := LOC_PS_DBOX;
              EndLoc   := LOC_RM_IRON_1;

              Reflection := [
                              Point(3047, 3234), Point(3033, 3234),
                              Point(3021, 3233), Point(3008, 3231),
                              Point(2996, 3231), Point(2983, 3233)
                            ];

              // ObstaclePoints := [];
              // Obstacles      := [];
              // DoObstacles    := [];
            end;
          end;
    Last edited by TomTuff; 09-26-2010 at 05:30 PM.

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

    Default

    Put all your edited folders in a different folder, then Commit to head revision of MSI and see if you still have errors.

  5. #5
    Join Date
    Sep 2006
    Location
    Texas
    Posts
    1,349
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I think he did that NC, but he is trying to put his AK Miner to work with MSI

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

    Default

    I get no compiling errors with the current MSI.

    Running the lumbridge west swamp miner as we speak actually.

  7. #7
    Join Date
    Apr 2008
    Location
    Marquette, MI
    Posts
    15,252
    Mentioned
    138 Post(s)
    Quoted
    680 Post(s)

    Default

    Tom, the only thing you should have to add is the script record and locations (plus their constants). MSI already supports all the rocks. Can you post your Miner record?

    Since you've added other scripts, I'm assuming this has been resolved.
    Last edited by Coh3n; 10-08-2010 at 09:16 PM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

Posting Permissions

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