Results 1 to 11 of 11

Thread: Compiling failed

  1. #1
    Join Date
    Jun 2012
    Posts
    7
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Unhappy Compiling failed

    Hello I am new here and I am trying to use simba but when I click run it says compiling failed like i have no idea where the error is ,it says something like at line this or that.Please help?

  2. #2
    Join Date
    May 2012
    Location
    Texas
    Posts
    365
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    FAQ
    Search Tool (Search for the specific error)
    You can also try this tutorial by abu_jwka
    Common Scripting Errors

    Hope you figure out how to fix your error
    Mostly Inactive, School

  3. #3
    Join Date
    Jun 2012
    Location
    Toronto, CA
    Posts
    24
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    You should copy and paste what comes up in the debug box ( the box at the bottom of the screen ) so we can help There's nothing to run off of so far

  4. #4
    Join Date
    Jun 2012
    Posts
    7
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    this comes at the bottom box Hatchet, Iron Hatchet, Steel Hatchet, Mithril Hatchet, Adamant Hatchet, Rune Hatchet, Dragon Hatchet, Normal Logs, Oak Logs, Willow Logs, Maple Logs, Yew Logs, Magic Logs, Clay Ore, Copper Ore, Tin Ore, Iron Ore, Silver Ore, Coal Ore, Gold Ore, Mithril Ore, Adamantite Ore, Runite Ore, Small Fishing Net, Crayfish Cage, Fishing Rod, Fishing Bait, Fly Fishing Rod, Harpoon, Barb-Tail Harpoon, Lobster Pot, Raw Shrimps, Raw Crayfish, Raw Sardines, Raw Anchovies, Raw Herring, Raw Trout, Raw Pike, Raw Salmon, Raw Tuna, Raw Lobster, Raw Swordfish, Raw Monkfish, Raw Shark, Cooked Shrimps, Cooked Crayfish, Cooked Sardines, Cooked Anchovies, Cooked Herring, Cooked Trout, Cooked Pike, Cooked Salmon, Cooked Tuna, Cooked Lobster, Cooked Swordfish, Cooked Monkfish, Cooked Shark, Uncut Sapphire, Uncut Emerald, Uncut Ruby, Uncut Diamond, Bird'S Nest, Feather, Staff Of Air, Staff Of Water, Staff Of Earth, Staff Of Fire, Air Rune, Body Rune, Mind Rune, Earth Rune, Fire Rune, Water Rune, Chaos Rune, Law Rune, Cosmic Rune, Death Rune, Nature Rune, Blood Rune, Soul Rune, Astral Rune, Rune Essence, Pure Essence, Soft Clay, Vial, Vial Of Water, Jug, Jug Of Water, Bowl, Bowl Of Water, Bucket, Bucket Of Water, Air Tiara, Body Tiara, Mind Tiara, Earth Tiara, Fire Tiara, Water Tiara, Dwarven Army Axe, Coal Bag, SRL - Lamp bitmap, 108]
    The following bitmaps were not freed: [SRL - Mod bitmap, SRL - Admin bitmap, SRL - Flag bitmap]
    [Error] (102:6): Unknown identifier '' at line 101
    Compiling failed.
    [Error] (1:1): Unexpected end of file at line 0
    Compiling failed.

  5. #5
    Join Date
    Jun 2012
    Posts
    23
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Go to line 101 in your script and post it here?

  6. #6
    Join Date
    Jun 2012
    Posts
    7
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    line 101:end; its highlighted orange
    so what can I do?

    When I press run again it says [Error] (1:1): Unexpected end of file at line 0
    Compiling failed.

  7. #7
    Join Date
    Sep 2010
    Location
    Azeroth
    Posts
    395
    Mentioned
    0 Post(s)
    Quoted
    17 Post(s)

    Default

    may you please post the script so i can take a look at it...

  8. #8
    Join Date
    Jun 2012
    Posts
    7
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    {$DEFINE SRL_SMART}
    {$DEFINE SMART}
    {.loadlib libsmart}

    function IsKeyDown(C:Byte): Boolean;
    begin
    Result := SmartIsKeyDown(C);
    end;

    procedure MoveMouse(x, y: Integer);
    begin
    SmartMoveMouse(x, y);
    end;

    procedure HoldMouse(x, y: Integer; button : integer);
    begin
    if button = mouse_left then
    SmartHoldMousePlus(x,y,1)
    else if button = mouse_middle then
    SmartHoldMousePlus(x,y,2)
    else if button = mouse_right then
    SmartHoldMousePlus(x,y,3)
    else
    raiseexception(ercustomerror,'Unknown mouse button in SmartHoldMousePlus');
    end;

    procedure ReleaseMouse(x, y: Integer; button : integer);
    begin
    if button = mouse_left then
    SmartReleaseMousePlus(x,y,1)
    else if button = mouse_middle then
    SmartReleaseMousePlus(x,y,2)
    else if button = mouse_right then
    SmartReleaseMousePlus(x,y,3)
    else
    raiseexception(ercustomerror,'Unknown mouse button in SmartReleaseMousePlus');
    end;

    procedure KeyUp(key: Byte);
    begin
    If Key = 13 Then
    Key := 10;
    SmartReleaseKey(key);
    end;

    procedure KeyDown(key: Byte);
    begin
    If Key = 13 Then
    Key := 10;
    SmartHoldKey(key);
    end;

    procedure SendKeys(S: String; keywait{$IFNDEF SIMBAMAJOR980}, keymodwait{$ENDIF}: integer);
    begin
    SmartSendKeys(S);
    end;

    function FindAndSetTarget(TitlePrefix: String; SetAsTarget: Boolean): Boolean;
    var
    T : TSysProcArr;
    I : Integer;
    begin
    T := GetProcesses;
    for I := High(T) downto 0 do
    if Pos(TitlePrefix, T[I].Title) <> 0 then
    begin
    Result := True;
    if SetAsTarget then SetTarget(T[I]);
    Exit;
    end;
    end;

    procedure GetRealMousePos(var X, Y : Integer);
    var
    KMTarget, ITarget : Integer;
    begin
    KMTarget := GetKeyMouseTarget;
    ITarget := GetImageTarget;
    FindAndSetTarget('Public SMART', True);
    GetTClient.IOManager.GetMousePos(X, Y);
    FreeTarget(GetImageTarget);
    SetKeyMouseTarget(KMTarget);
    SetImageTarget(ITarget);

    // These are not universial offsets, but works somewhat for some Windows themes.
    X := X - 8;
    Y := Y - 25;
    end;

    procedure GetMousePos(var x, y: Integer);
    begin
    SmartGetMousePos(x, y);
    end;

    function IsRealMouseInBox(B : TBox): Boolean;
    var
    P : TPoint;
    begin
    GetRealMousePos(P.X, P.Y);
    Result := PointInBox(P, B);
    end;

    function GetColor(x, y: Integer): Integer;
    begin
    result:= SmartGetColor(x, y);
    end;

    procedure SmartSetTarget;
    begin
    SetTargetArray(SmartImageArray, 765,503);
    end;

    function FindWindow(Title: String): Boolean;
    begin
    result:= true;
    end;

    procedure ActivateClient;
    begin
    end;

    function FindWindowBySize(Width, Height: Integer): Boolean;
    begin
    result:= true;
    end;

    {procedure SmartSaveSettings(v: TVariantArray);
    var
    i: Integer;
    ts: TStringArray;
    begin
    ts := ['server', 'members', 'signed', 'sd', 'DC', IncludePath + 'SRL/SRL/misc/smartINI.ini'];
    for i := 0 to 4 do
    WriteINI('SMART', ts[i], v[i], ts[5]);
    end; }

    procedure SmartSetupEx(Server: integer; members, signed, superdetail: boolean);
    var
    prefix: string;
    begin
    prefix := ReadINI('World' + IntToStr(Server), 'Prefix', IncludePath + 'SRL/SRL/misc/worlds.ini');
    if(prefix = '')then
    begin
    writeln('Invalid world number or corrupted world list. Please review your settings');
    TerminateScript;
    end;
    SmartSetup('http://'+prefix+'.runescape.com/', 'plugin.js?param=o0,a' + IntToStr((Integer(not(Signed)) + 1) * Integer(not((SuperDetail and Signed)))) + ',m' + IntToStr(Integer(Members)), 765, 503, 's');
    //SmartSaveSettings([Server, Members, Signed, SuperDetail, SmartGetDC]);
    end;

    {function SmartLastSettings: TStringArray;
    var
    i: Integer;
    ts: TStringArray;
    begin
    ts := ['server', 'members', 'signed', 'sd', 'DC', IncludePath + 'SRL/SRL/Misc/smartINI.ini'];
    SetLength(Result, 5);
    for i := 0 to 4 do
    Result[i] := ReadINI('SMART', ts[i], ts[5]);
    end; }

  9. #9
    Join Date
    Sep 2010
    Location
    Azeroth
    Posts
    395
    Mentioned
    0 Post(s)
    Quoted
    17 Post(s)

    Default

    what do you want 2 get accomplished??? tell me so i can help apparently i dont know what this is supposed to do.

    what does this script do or whats its purpose, i see nothing


    looks like your trying to make your own include?? well look up the tut section on how for the main part includes dont compile on their own

  10. #10
    Join Date
    Apr 2012
    Location
    Australia
    Posts
    1,252
    Mentioned
    1 Post(s)
    Quoted
    22 Post(s)

    Default

    What you posted was the include the script was having an error with.. Post the actual script you are using and wrap it in simba tags ([ SIMBA ] [/ SIMBA ] without the spaces)

  11. #11
    Join Date
    Jul 2009
    Location
    Australia
    Posts
    667
    Mentioned
    0 Post(s)
    Quoted
    7 Post(s)

    Default

    Your line 0 error comes as you do not have a 'mainloop'. All you have is procedures, at the end of that you need to have a
    Simba Code:
    begin
    end
    This is the part that you call all your procedures in so the script actually does something (you can read further in some of the all-in-on beginners tutorials).
    Post the script with simba tags so we can look at it properly to identify the line 101 error. Do you mind also telling us which line that is?

    ~Caotom

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
  •