Page 49 of 55 FirstFirst ... 394748495051 ... LastLast
Results 1,201 to 1,225 of 1365

Thread: [SRL-6] bonsaiFighter

  1. #1201
    Join Date
    Jun 2015
    Posts
    10
    Mentioned
    0 Post(s)
    Quoted
    6 Post(s)

    Default

    Hey there

    the script is running perfectly fine on my laptop but i always get this error "FindColorsBitmap returned an error"
    when i try running it on my desktop using the same settings.

    Any idea whats going wrong?

  2. #1202
    Join Date
    Jun 2015
    Posts
    64
    Mentioned
    2 Post(s)
    Quoted
    21 Post(s)

    Default

    Quote Originally Posted by peachrs View Post
    Hey there

    the script is running perfectly fine on my laptop but i always get this error "FindColorsBitmap returned an error"
    when i try running it on my desktop using the same settings.

    Any idea whats going wrong?
    Pretty sure that's an error because you're not on OpenGL.

  3. #1203
    Join Date
    Oct 2013
    Location
    East Coast USA
    Posts
    770
    Mentioned
    61 Post(s)
    Quoted
    364 Post(s)

    Default

    Quote Originally Posted by peachrs View Post
    Hey there

    the script is running perfectly fine on my laptop but i always get this error "FindColorsBitmap returned an error"
    when i try running it on my desktop using the same settings.

    Any idea whats going wrong?
    Here's how to solve this. You need a tool like notepad++ that can chunk through files and find things. And don't trust that windows search thing it lies like a you know what.

    Search for "FindColorsBitmap returned an error" in the SIMBADIR\bonsai\includes folder. In notepad++ this is Search->Find in Files. Then you find this:

    Simba Code:
    {¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯}
    {  findColor()                                                        }
    {  Written by: bonsai                                                 }
    {  Date Last Modified: 2014/09                                        }
    {¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯}
    function TblBitmap.findColor(c: integer): TPointArray;
    begin
       if (not self.initialized)then exit;
       if (c < 0) then exit;
       if not FindColorsBitmap(self.key, result, c) then
          writeln('FindColorsBitmap returned an error');
    end;

    That's a function to find a specific color in a bitmap and hand it back as an array of points. You wonder who calls it so you search again, for "findColor(" and see it's only called once. That's why people call my code junky. If you only call a function once you might as well put it in line with the caller. Amateur.

    Simba Code:
    {¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯}
    {  motionTpa()                                                        }
    {  Written by: bonsai                                                 }
    {  Date Last Modified: 2014/08                                        }
    {                                                                     }
    {  Returns the points that changed color during the time 't'          }
    {¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯}
    function motionTpa(b: TBox; n: integer = 1; desat: boolean = false; t: integer = 75): TPointArray;
    var
       image1, image2, mask: TblBitmap;
    begin

       image1.fromClient(b);
       sleep(t);
       image2.fromClient(b);
       if (desat) then
       begin
          image1.desaturate();
          image2.desaturate();
       end
       else
       begin
          image1.greyscale();
          image2.greyscale();
       end;
       mask := image1.diff(image2, n, 255);
       result := mask.findColor(255);
       image1.free();
       image2.free();
       mask.free();
    end;

    That function compares two screen snaps taken 75ms apart. It turns the differences into red (255) and if you got that error from findColor it means there were no differences at all. Which is a little shocking.

    Maybe change that 75 to a 150? Are you super-laggy or something?

  4. #1204
    Join Date
    Aug 2014
    Posts
    4
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    Error: Access violation at line 884
    any fix for this?

  5. #1205
    Join Date
    Oct 2013
    Location
    East Coast USA
    Posts
    770
    Mentioned
    61 Post(s)
    Quoted
    364 Post(s)

    Default

    Quote Originally Posted by enviousz View Post
    Error: Access violation at line 884
    any fix for this?
    I just downloaded the newest srl6 and had no problems getting it fired up.

    You need to provide detailed error reports to get helpful feedback.

    What file was displayed when it threw that error?
    What was the script doing?
    Did the script even start and go to the player GUI?
    Do you have a screenshot of when it happened?



  6. #1206
    Join Date
    Mar 2012
    Posts
    5
    Mentioned
    0 Post(s)
    Quoted
    3 Post(s)

    Default

    Works great! Are there any plans for loot support though?

  7. #1207
    Join Date
    Feb 2012
    Posts
    5
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    Is there anyway i could lower the wait time between kills? Usually takes 3-7 seconds before attacking again. Overall great script.

    edit: after NPC killed, status says "detecting more colours" but continues to attack npc after 3-7 secs. I currently have 3 good colours. Can't seem to get more.
    Last edited by nemo_149; 08-24-2015 at 07:04 PM.

  8. #1208
    Join Date
    Jun 2015
    Posts
    48
    Mentioned
    0 Post(s)
    Quoted
    20 Post(s)

    Default

    a simple script, works well for me there could be better queing if possible, but still, 3s between fights is awesome, its quick and efficient

  9. #1209
    Join Date
    Oct 2013
    Location
    East Coast USA
    Posts
    770
    Mentioned
    61 Post(s)
    Quoted
    364 Post(s)

    Default

    Quote Originally Posted by infamoux View Post
    Works great! Are there any plans for loot support though?
    No, but someone could work this in without too much trouble.

    Quote Originally Posted by nemo_149 View Post
    Is there anyway i could lower the wait time between kills? Usually takes 3-7 seconds before attacking again. Overall great script.

    edit: after NPC killed, status says "detecting more colours" but continues to attack npc after 3-7 secs. I currently have 3 good colours. Can't seem to get more.
    Quote Originally Posted by teddybear View Post
    a simple script, works well for me there could be better queing if possible, but still, 3s between fights is awesome, its quick and efficient
    If you have less than 21 good colors, the script will color a little in between fights. blCombat.simba line 896.

    If it's having a hard time finding npcs, it also colors, blComat.simba line 920.

    You could play with these to get various results.

    The longer you use it on a given NPC the better it runs. It should be pretty full speed when you have a good color file.

  10. #1210
    Join Date
    Apr 2015
    Posts
    17
    Mentioned
    0 Post(s)
    Quoted
    6 Post(s)

    Default

    This is working surprisingly well on Aquanites seeing as they're almost the same colour as the ground. I'll put up an Aquanite colour file after a few hours of running. I'll be getting 99 farming soon using seedicide and this script at Aquanites, thanks!

    EDIT: Here's my colour file which is working very nicely

    And here's a proggy after just over an hour and a half. I'll be back once I get 99 farming!

    Code:
    ////////////////////////////////////////////////////////////////////////////////////////////////////
    ////////////////////////////////////////       Bonsai       ////////////////////////////////////////
    ////////////////////////////////////////       Fighter      ////////////////////////////////////////
    ////////////////////////////////////////       _______      ////////////////////////////////////////
    //////////                                                                                //////////
    //////////  Script runtime:                                                               //////////
    //////////       1 hr 37 min 28 sec(Total) 1 hr 37 min 28 sec(Active) 0 sec(Break)        //////////
    //////////                                                                                //////////
    ////////////////////////////////////////        Kills       ////////////////////////////////////////
    //////////                             Total        Per Hour    /Hour Active              //////////
    //////////          Aquanite             645          397.02          397.02              //////////
    //////////                XP             645          397.02          397.02              //////////
    //////////          Const XP             215          132.34          132.34              //////////
    //////////                                                                                //////////
    ////////////////////////////////////////////////////////////////////////////////////////////////////
    Last edited by qntn; 08-30-2015 at 07:52 AM.

  11. #1211
    Join Date
    Aug 2015
    Posts
    1
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    i just dont get this at all i watched the videos read the forums i just cant make a script work...for example how can i make this one work

  12. #1212
    Join Date
    Jun 2012
    Posts
    46
    Mentioned
    1 Post(s)
    Quoted
    11 Post(s)

    Default

    Quote Originally Posted by qntn View Post
    This is working surprisingly well on Aquanites seeing as they're almost the same colour as the ground. I'll put up an Aquanite colour file after a few hours of running. I'll be getting 99 farming soon using seedicide and this script at Aquanites, thanks!

    EDIT: Here's my colour file which is working very nicely

    And here's a proggy after just over an hour and a half. I'll be back once I get 99 farming!

    Code:
    ////////////////////////////////////////////////////////////////////////////////////////////////////
    ////////////////////////////////////////       Bonsai       ////////////////////////////////////////
    ////////////////////////////////////////       Fighter      ////////////////////////////////////////
    ////////////////////////////////////////       _______      ////////////////////////////////////////
    //////////                                                                                //////////
    //////////  Script runtime:                                                               //////////
    //////////       1 hr 37 min 28 sec(Total) 1 hr 37 min 28 sec(Active) 0 sec(Break)        //////////
    //////////                                                                                //////////
    ////////////////////////////////////////        Kills       ////////////////////////////////////////
    //////////                             Total        Per Hour    /Hour Active              //////////
    //////////          Aquanite             645          397.02          397.02              //////////
    //////////                XP             645          397.02          397.02              //////////
    //////////          Const XP             215          132.34          132.34              //////////
    //////////                                                                                //////////
    ////////////////////////////////////////////////////////////////////////////////////////////////////
    Nice! Will try this out!

  13. #1213
    Join Date
    Jun 2012
    Posts
    46
    Mentioned
    1 Post(s)
    Quoted
    11 Post(s)

    Default

    Is there a way to have it turn on prayer when it logs back in from a break?

  14. #1214
    Join Date
    May 2012
    Posts
    2
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Hey, everything was working great untill I restarted the client. Now it gives me the ''FindColorsBitmap returned an error'' message. I did see there was an SRL update, so I was wondering if I am the only one with this problem.

    And I wanted to say that this script is amazing, never seen anything like that before.

  15. #1215
    Join Date
    Oct 2013
    Location
    East Coast USA
    Posts
    770
    Mentioned
    61 Post(s)
    Quoted
    364 Post(s)

    Default

    Quote Originally Posted by taduchi View Post
    i just dont get this at all i watched the videos read the forums i just cant make a script work...for example how can i make this one work
    Did you get anything working? The answer is going to be to go back to the basic install link from the top of the website and follow directions carefully. Follow any pictures like the one in the OP.

    Quote Originally Posted by drew3170 View Post
    Is there a way to have it turn on prayer when it logs back in from a break?
    You can edit onBreakEnd() in SIMBADIR\includes\bonsai\blCombat.simba line 683

    Quote Originally Posted by Harrum View Post
    Hey, everything was working great untill I restarted the client. Now it gives me the ''FindColorsBitmap returned an error'' message. I did see there was an SRL update, so I was wondering if I am the only one with this problem.

    And I wanted to say that this script is amazing, never seen anything like that before.
    I got nothing for this one.

  16. #1216
    Join Date
    May 2012
    Posts
    2
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Quote Originally Posted by bonsai View Post
    Did you get anything working? The answer is going to be to go back to the basic install link from the top of the website and follow directions carefully. Follow any pictures like the one in the OP.



    You can edit onBreakEnd() in SIMBADIR\includes\bonsai\blCombat.simba line 683



    I got nothing for this one.
    Sorry for wasting your time, somehow it works again. No idea why it didnt for a bit.

  17. #1217
    Join Date
    Jan 2012
    Posts
    117
    Mentioned
    1 Post(s)
    Quoted
    6 Post(s)

    Default

    bonsai this script is awsome i really like all the work put into this =)

  18. #1218
    Join Date
    Sep 2015
    Posts
    12
    Mentioned
    0 Post(s)
    Quoted
    6 Post(s)

    Default

    Hi Bonsai, first thank you for this script.
    Now I have a question, how do I add the colours of Aquianites from the guy above to your script ?

    Edit: Now I have a problem, the SMART client just closes itself after 1 or 2 minutes
    Last edited by Syndicate; 09-05-2015 at 03:20 AM.

  19. #1219
    Join Date
    Oct 2013
    Location
    East Coast USA
    Posts
    770
    Mentioned
    61 Post(s)
    Quoted
    364 Post(s)

    Default

    Quote Originally Posted by Syndicate View Post
    Hi Bonsai, first thank you for this script.
    Now I have a question, how do I add the colours of Aquianites from the guy above to your script ?

    Edit: Now I have a problem, the SMART client just closes itself after 1 or 2 minutes
    Save the file he linked as SIMBADIR\includes\bonsai\colors\aquanites.xml and it should show up in the selections at startup time.

    As to the other, are you setting up for the first time? That sounds like basic functionality is not working.

  20. #1220
    Join Date
    Sep 2015
    Posts
    12
    Mentioned
    0 Post(s)
    Quoted
    6 Post(s)

    Default

    No, I've been using Simba for a couple of days now, and had no problem with other scripts, its juts this one and basicFighter

  21. #1221
    Join Date
    Sep 2015
    Posts
    12
    Mentioned
    0 Post(s)
    Quoted
    6 Post(s)

    Default

    Quote Originally Posted by bonsai View Post
    Save the file he linked as SIMBADIR\includes\bonsai\colors\aquanites.xml and it should show up in the selections at startup time.

    As to the other, are you setting up for the first time? That sounds like basic functionality is not working.
    No, I've been using Simba for a couple of days now, and had no problem with other scripts, its juts this one and basicFighter

    Sorry for double post
    pls dont ban me

  22. #1222
    Join Date
    Sep 2015
    Posts
    12
    Mentioned
    0 Post(s)
    Quoted
    6 Post(s)

    Default

    Neverming Bonsai, I fixed it, the issue was my UI

    Edit: Thank you for taking the trime trying to help me

  23. #1223
    Join Date
    Apr 2015
    Posts
    17
    Mentioned
    0 Post(s)
    Quoted
    6 Post(s)

    Default

    I got 99 farming recently with this script! Using seedicide at Aquanites with a bonecrusher and demon horn necklace and putting soul split on my food key I was able to stay there for as long as I want, I'd recommend it if you're a high enough level. I forgot to grab a proggy when I was done, sorry!

    Thanks again for the script, it's perfect!

  24. #1224
    Join Date
    Aug 2015
    Posts
    9
    Mentioned
    1 Post(s)
    Quoted
    5 Post(s)

    Default

    Great script! If you're a lower level and use up food quickly, try using a sword and a shield instead of dual wielding and put rejuvenation and resonance on your action bar w/ manual abilities checked off.

  25. #1225
    Join Date
    May 2012
    Posts
    74
    Mentioned
    0 Post(s)
    Quoted
    38 Post(s)

    Default

    Could you add a preset for the red spiders in the varrock sewers please? As it takes ages for the script to autodetect them, and sometimes it just idles for a good 5-10 mins without attacking. script works great apart from that though. Thanks for your work.

Page 49 of 55 FirstFirst ... 394748495051 ... 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
  •