Page 1 of 5 123 ... LastLast
Results 1 to 25 of 110

Thread: [OUTDATED]SMART error fixes [WalkThrough]

  1. #1
    Join Date
    Mar 2012
    Location
    127.0.0.1
    Posts
    3,383
    Mentioned
    95 Post(s)
    Quoted
    717 Post(s)

    Default [OUTDATED]SMART error fixes [WalkThrough]

    K, the influx of all the posts of the simple outdated errors are overwhelming. Here's a tutorial on how to fix it yourself.


    At the top of the script, you might see this:
    Simba Code:
    {$i SRL/SRL/Misc/paintsmart.simba}
    Change it to:
    Simba Code:
    {$i SRL/SRL/Misc/SmartGraphics.simba}

    You might also see:
    Simba Code:
    {$i SRL/SRL/Misc/SMART.simba}
    This is for the old SMART, change it to:
    Simba Code:
    {$DEFINE SMART}
    Back to SmartGraphics/PaintSmart!

    You might get an error on a code like this:
    Simba Code:
    SMART_DrawBoxEx(False,BoxHere,ClRed)
    Easy fix!
    Add an extra false, like so:
    Simba Code:
    SMART_DrawBoxEx(False,False,BoxHere,ClRed)

    Now for errors like these:
    Simba Code:
    DrawBitmap(Pic, Smart_Canvas.Canvas, BmpPlacement.x, BmpPlacement.y);

    Change to something like:
    Simba Code:
    SMART_DrawBitmap(True,BitMapHere,Point(x,y))

    changing

    SmartGetDebugDC to GetDebugBitmap fixes the errors on most outdated scripts. just got Euphonic Fighter working.
    Don't change anything else though!


    Towards the bottom of the script, in the setup section, you might find this:
    Simba Code:
    Smart_Server := 26;
      Smart_Members := False;
      Smart_Signed := True;
      Smart_SuperDetail := False;
    Change those lines to:
    Simba Code:
    SRL_SixHourFix := True;
    SMART_FixSpeed := True;

    The script -should- now compile.
    Runtime errors!

    For any thing that uses hard coded coordinates, for the second and fourth coordinate, minus 50 from it.


    Anything else I need to add, leave a message.
    Last edited by Justin; 10-05-2013 at 12:29 PM. Reason: Added bitmaps

  2. #2
    Join Date
    Apr 2012
    Posts
    113
    Mentioned
    0 Post(s)
    Quoted
    8 Post(s)

    Default

    very cool post thx

  3. #3
    Join Date
    Feb 2012
    Location
    SRL Jail
    Posts
    1,319
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Cool tut, would read again.
    I can see how this would be helpful to the... newer additions to SRL- especially the part about -50 from 2nd and 4th coord. I don't use hard coords but would've -50d all of them if I hadn't read this.

  4. #4
    Join Date
    Feb 2012
    Location
    UK
    Posts
    909
    Mentioned
    10 Post(s)
    Quoted
    191 Post(s)

    Default

    Could you add something to do with this, if it applies, please?
    http://villavu.com/forum/showpost.ph...postcount=1218

  5. #5
    Join Date
    Mar 2012
    Location
    127.0.0.1
    Posts
    3,383
    Mentioned
    95 Post(s)
    Quoted
    717 Post(s)

    Default

    Quote Originally Posted by Fruit View Post
    Could you add something to do with this, if it applies, please?
    http://villavu.com/forum/showpost.ph...postcount=1218
    Added, I think?

  6. #6
    Join Date
    Feb 2012
    Location
    UK
    Posts
    909
    Mentioned
    10 Post(s)
    Quoted
    191 Post(s)

    Default

    It took a few minutes, but I got it to work great with your help.
    Thank you!

  7. #7
    Join Date
    Jul 2012
    Posts
    5
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I get this error after the first step - Canvas.Handle := SmartGetDebugDC

  8. #8
    Join Date
    Mar 2012
    Location
    127.0.0.1
    Posts
    3,383
    Mentioned
    95 Post(s)
    Quoted
    717 Post(s)

    Default

    Quote Originally Posted by philaverage View Post
    I get this error after the first step - Canvas.Handle := SmartGetDebugDC


    Show a few lines above that and below?
    I'm not quite sure what the error is yet.

  9. #9
    Join Date
    Jan 2012
    Posts
    15
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by NKN View Post
    Show a few lines above that and below?
    I'm not quite sure what the error is yet.

    begin
    Numb := ((I + 1) * 13);
    FastSetPixel(Pic, TTP[b].x + 1, TTP[b].y + Numb + 1, 8388736);
    FastSetPixel(Pic, TTP[b].x, TTP[b].y + Numb, Colour);
    end;
    end;
    Canvas := TCANVAS.Create;
    Canvas.Handle := SmartGetDebugDC;
    DrawBitmap(Pic, Canvas, Placement.x, Placement.y);
    FreeBitmap(Pic);
    end;


    the error states-
    [Hint] C:\Simba\Includes\SRL/SRL/core/antirandoms\randomtool.simba(215:3): Variable 'T' never used at line 214
    [Error] C:\Simba\Scripts\P1nkys PestController [L].simba(2386:20): Unknown identifier 'SmartGetDebugDC' at line 2385

  10. #10
    Join Date
    Mar 2012
    Location
    127.0.0.1
    Posts
    3,383
    Mentioned
    95 Post(s)
    Quoted
    717 Post(s)

    Default

    SmartGetDebugDC was removed, IIRC.
    Ask P1nky, it's his script.

  11. #11
    Join Date
    Nov 2011
    Location
    England
    Posts
    3,072
    Mentioned
    296 Post(s)
    Quoted
    1094 Post(s)

    Default

    Quote Originally Posted by adamsk8s View Post
    begin
    Numb := ((I + 1) * 13);
    FastSetPixel(Pic, TTP[b].x + 1, TTP[b].y + Numb + 1, 8388736);
    FastSetPixel(Pic, TTP[b].x, TTP[b].y + Numb, Colour);
    end;
    end;
    Canvas := TCANVAS.Create;
    Canvas.Handle := SmartGetDebugDC;
    DrawBitmap(Pic, Canvas, Placement.x, Placement.y);
    FreeBitmap(Pic);
    end;


    the error states-
    [Hint] C:\Simba\Includes\SRL/SRL/core/antirandoms\randomtool.simba(215:3): Variable 'T' never used at line 214
    [Error] C:\Simba\Scripts\P1nkys PestController [L].simba(2386:20): Unknown identifier 'SmartGetDebugDC' at line 2385
    pretty sure the script needs to be updated to use smart_drawbitmap and such.

  12. #12
    Join Date
    Jan 2012
    Posts
    15
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Ollybest View Post
    pretty sure the script needs to be updated to use smart_drawbitmap and such.
    i figured it out. switching the coding as nkn said and also changing

    SmartGetDebugDC to GetDebugBitmap fixes the errors on most outdated scripts. just got Euphonic Fighter working.

  13. #13
    Join Date
    Jun 2007
    Posts
    310
    Mentioned
    0 Post(s)
    Quoted
    84 Post(s)

    Default

    thank you!!! very helpful thread

  14. #14
    Join Date
    Aug 2012
    Posts
    7
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I keep getting this error:

    [Error] C:\Simba\Includes\SRL\SRL\Misc\paintsmart.simba(15 2:25): Unknown identifier 'MSBox' at line 151

    procedure SMART_ClearMS;
    begin
    SMART_ClearCanvasArea(MSBox);
    end;

    As well, the things you have posted so far are all so helpful! Thank you!
    Last edited by paynesparks; 08-30-2012 at 04:51 PM.

  15. #15
    Join Date
    Jun 2012
    Posts
    2,182
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    At the beggining of your script, find {$i srl/misc/paintsmart.simba} or something that looks like that, and change it to {$i srl/srl/misc/smartgraphics.simba}
    Thx Euphemism and Vinyl for the awesome siggy and avatar!

  16. #16
    Join Date
    Mar 2012
    Posts
    4
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    NKN you are a legend.. fixed all my problems fantastic page.
    cheers

  17. #17
    Join Date
    Apr 2012
    Posts
    35
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    [Error] C:\Users\all\Downloads\MasterArtisansWorkshop v001 (4).simba(65:3): Unknown identifier 'Smart_Server' at line 64
    Compiling failed.
    any tips?

  18. #18
    Join Date
    Feb 2012
    Location
    UK
    Posts
    909
    Mentioned
    10 Post(s)
    Quoted
    191 Post(s)

    Default

    Quote Originally Posted by James Cash View Post
    [Error] C:\Users\all\Downloads\MasterArtisansWorkshop v001 (4).simba(65:3): Unknown identifier 'Smart_Server' at line 64
    Compiling failed.
    any tips?
    Read the OP. It tells you exactly what to do, just look for the part with Smart server in.
    Solar from RiD.

  19. #19
    Join Date
    Jun 2012
    Location
    Howell, Michigan
    Posts
    1,585
    Mentioned
    34 Post(s)
    Quoted
    553 Post(s)

    Default

    Love you, thanks, just got back to SIMBA and was like wtf ? >.>

  20. #20
    Join Date
    Sep 2012
    Posts
    10
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Hi,
    not easier to just add a well-corrected file?

  21. #21
    Join Date
    Feb 2012
    Location
    UK
    Posts
    909
    Mentioned
    10 Post(s)
    Quoted
    191 Post(s)

    Default

    Quote Originally Posted by gogol13 View Post
    Hi,
    not easier to just add a well-corrected file?
    No... All scripts are different. Just read through the simple OP and the script should at least compile.
    Solar from RiD.

  22. #22
    Join Date
    Sep 2012
    Posts
    10
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    i only wanna work
    http://villavu.com/forum/showthread.php?t=47111
    woodcutting draynor chop n'bank with oak
    nothing else

  23. #23
    Join Date
    Mar 2012
    Location
    127.0.0.1
    Posts
    3,383
    Mentioned
    95 Post(s)
    Quoted
    717 Post(s)

    Default

    Don't ask for fixes, I presented how to fix them step by step.
    e.e

  24. #24
    Join Date
    Sep 2012
    Posts
    10
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    You also do not fix just placed this script?
    What a coincidence.
    everyone says that he can, gives good advice to fix it but no one knows

    and I will teach you how not to be an dick
    step by step.
    1. repair script.
    2. Do not pretend a dick
    3. Throw online and collect prizes and glory, that it has repaired
    Last edited by gogol13; 09-06-2012 at 07:15 PM.

  25. #25
    Join Date
    Mar 2012
    Location
    127.0.0.1
    Posts
    3,383
    Mentioned
    95 Post(s)
    Quoted
    717 Post(s)

    Default

    Quote Originally Posted by gogol13 View Post
    You also do not fix just placed this script?
    What a coincidence.
    everyone says that he can, gives good advice to fix it but no one knows

    and I will teach you how not to be an <--Removed--> ..
    step by step.
    1. repair script.
    2. Do not pretend <--Removed-->
    3. Throw online and collect prizes and glory, that it has repaired
    Let me teach you how to not be a leecher..
    step by step
    1. Look at the original post for thirty seconds.
    2. Look at the script for thirty seconds.
    3. Change the script to match the original post.
    4. Do not pretend to be a conceited leecher.
    5. Celebrate that the script is fixed.
    Last edited by BraK; 09-05-2012 at 05:26 PM.

Page 1 of 5 123 ... LastLast

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
  •