Results 1 to 11 of 11

Thread: Problem running script

  1. #1
    Join Date
    Oct 2012
    Posts
    8
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Problem running script

    I just dled Simba and dont really know how to run a script. I dled The Cutting Edge script (http://villavu.com/forum/showthread.php?t=77253) and then went to file - open and chose the script then when it opened, i filled in my information and then ran the script and got a message saying

    Exception in Script: Unable to find file 'ObjectDTM/ObjDTMInclude.simba' used from 'C:\Users\(MyName)\Desktop\TheCuttingEdge v0.6.simba'

    (I dled and saved the script to my desktop)

  2. #2
    Join Date
    Jan 2012
    Posts
    2,568
    Mentioned
    35 Post(s)
    Quoted
    356 Post(s)

    Default

    You need to download the ObjDTM include, use the search button.

    EDIT: it was 2 threads below you: http://villavu.com/forum/showthread.php?t=68112

  3. #3
    Join Date
    Oct 2012
    Posts
    8
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Thanks! do i just install this then run? or do i have to setup my script with the include?

  4. #4
    Join Date
    Oct 2012
    Posts
    8
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    well i followed the instructions for installing and updating DTM and i als just installed SMART. now when i click run, i get a first error saying

    [Error] C:\Simba\Includes\SRL/SRL/misc/SmartParams.Simba(279:145): Invalid number of parameters at line 278
    Compiling failed.

    which is just a blank line in the middle of the script, when i click run again, i get another error saying

    [Error] C:\Simba\Includes\SRL\SRL\misc\SmartParams.Simba(7 0:8): Unknown identifier 'RSReady' at line 69
    Compiling failed.

    (This is the code written where i am getting te error)

    Procedure FixSmartSpeed;
    var
    T: Integer;
    begin
    T:= GetSystemTime + 2000;
    While (Not SmartEnabled) Do
    begin
    if (GetSystemTime >= T) Then
    Break;
    Wait(500);
    end;

    While (GetColor(382, 252) = 0) Do
    begin
    If RSReady then
    Break;
    SmartSetRefresh(SmartGetRefresh + 1);
    MMouse(4, 4, 0, 0);
    SmartSetRefresh(SmartGetRefresh - 1);
    if (GetSystemTime >= T) Then
    Break;
    Wait(500);
    end;

    Someone please help! Thankyou!!

  5. #5
    Join Date
    Jan 2012
    Posts
    2,568
    Mentioned
    35 Post(s)
    Quoted
    356 Post(s)

    Default

    Either change
    {$DEFINE SMART}
    to
    {$DEFINE SMART8}
    in the script,

    OR

    Remove -1 (change to:) at
    Simba Code:
    Result := SmartSpawnClient(ReplaceWrap(PluginPath, '\', '/', [rfReplaceAll]), Params[0], ',' + Params[1], 765, 553, 's', '', '');
    But you have to this every SRL update until SMART 8 becomes official.

  6. #6
    Join Date
    Oct 2012
    Posts
    8
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I added the 8 and now i am getting a different error saying

    [Error] C:\Simba\Scripts\TheCuttingEdge v0.6.simba(119:5): Unknown identifier 'SMART_DrawBitmap' at line 118
    Compiling failed.

    The line of code reads:

    Procedure Init;

    begin
    {Paint}
    if (PaintWait <> 0) then
    begin
    Prog := LoadBitmap(ThePath);
    SMART_DrawBitmap(True,Prog,Point(MCX1,MCY1));
    SetLength(PaintArray,6);
    end;


    Also I dont see a -1 that you are telling me to change, but since im getting a different error after adding the '8' then im guessing the 'SMART_DrawBitmap' is my problem. thanks

  7. #7
    Join Date
    Jan 2012
    Posts
    2,568
    Mentioned
    35 Post(s)
    Quoted
    356 Post(s)

    Default

    Well apparently ODTM include checks for {$IFDEF SMART}...

    Quick solution: delete every line that you encounter an error.
    This means you won't have any fancy paint but the script shouldn't be affected.


    OR (note the or, only do one of them)


    To keep the paint: change back to {$DEFINE SMART}, remove the -1 (it is a few lines below where the error occurs), and change
    SMART_DrawBoxEx(False, BankBox, clRed);
    to
    SMART_DrawBoxEx(False, true, BankBox, clRed);

    and remove
    Smart_Server := WORLD;
    Smart_Members := True;
    Smart_Signed := True;

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

    Default

    ok i deleted all the lines that gave me errors (they were all lines reguarding SMART) now when i run the script, it says

    Checking For An Updated Script Version.
    0.6
    0.6
    You Have The Latest Version Of The Script!
    Paint File Check.
    SRL Compiled in 0 msec
    Object DTM Include: Setup complete.

    After i run the script, that pops up and then nothing happends. The script is still running because the run arrow is greyed out and i have a choice to pause or stop. is the game client supposed to open itself? or do i have to open the game? thanks

  9. #9
    Join Date
    Jan 2012
    Posts
    2,568
    Mentioned
    35 Post(s)
    Quoted
    356 Post(s)

    Default

    Smart should be initialized. Are you using Smart 8? Get it at http://villavu.com/forum/showthread.php?t=87801 (read all the posts and follow the instructions).

  10. #10
    Join Date
    Oct 2012
    Posts
    8
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    yea i dled smart8 from that exact page. i took all the contents and put them in my Simba/Plugins folder and honestly i have no idea what else im supposed to do after that. that page u just gave me says a bunch of nonsense and i dont know what parts im supposed to do. basically can u please tell me what to do after putting the contents from this dl into my plugins folder. thanks

  11. #11
    Join Date
    Jan 2012
    Location
    127.0.0.1
    Posts
    702
    Mentioned
    11 Post(s)
    Quoted
    76 Post(s)

    Default

    think it should just run straight off then, remeber to include smart and srl

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
  •