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?
Printable View
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?
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?
http://puu.sh/jChMM/62a39d735c.jpg
Works great! Are there any plans for loot support though?
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.
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
No, but someone could work this in without too much trouble.
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.
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 //////////
////////// //////////
////////////////////////////////////////////////////////////////////////////////////////////////////
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
Is there a way to have it turn on prayer when it logs back in from a break?
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.
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.
bonsai this script is awsome i really like all the work put into this =)
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
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
Neverming Bonsai, I fixed it, the issue was my UI
Edit: Thank you for taking the trime trying to help me :D
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!
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.
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.
Waterfiends in the ancient cavern would also be greatly appreciated.
Thanks! Completely missed that
Amazing script Bonsai. New to botting and scripting but from someone who has used runemate to rsbot and getting banned so much... this has been good so far. If anyone here has a link to a guide on how to get max combat stats using this bot, much would be appreciated! Thanks! and Thank you Bonsai, again! Kudos from here!
I'd suggest either using a youtube video's guide and sticking to combat your level, for example if you are lvl 100 and can kill hellhounds, do hellhounds since the xp is not bad and if you have guthans it ez mode.
Alright Darcy! I was just asking bc I have been running it with goblins and it's great to not use any food... but tried with fleshes and the script ended in a couple hours.
What is a good place to use this script? I have 61 attack 60 str and 61 def.
does this work with thresholds? fantastic script for Waterfiends! thanks :)
Hey bonsai, I've been using this script lately, is there a way for this to support prayer renewals potions in actionbar?
It should if you use manual abilities. I think the automatic ones only use basic skills. Put the higher skills towards the right, it activates the rightmost one that is ready. The base functions were always a little buggy on those so I'm not sure how well it works.
Some people have also hacked the food key to do various things.
You can change procedure __defaultHealthCheck() in simbadir\includes\bonsai\blCombat.simba. That gets called a lot and is responsible for the eating/healing.
////////////////////////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////// Bonsai ////////////////////////////////////////
//////////////////////////////////////// Fighter ////////////////////////////////////////
//////////////////////////////////////// _______ ////////////////////////////////////////
////////// //////////
////////// Script runtime: //////////
////////// 9 hr 27 min 7 sec(Total) 9 hr 27 min 7 sec(Active) 0 sec(Break) //////////
////////// //////////
//////////////////////////////////////// Kills ////////////////////////////////////////
////////// Total Per Hour /Hour Active //////////
////////// waterfiend 3,361 355.58 355.58 //////////
////////// XP 3,361 355.58 355.58 //////////
////////// Const XP 1,120.33 118.53 118.53 //////////
////////// //////////
////////////////////////////////////////////////////////////////////////////////////////////////////
Awesome, thank you :)
trying to get this working in darkscape for crawling corpse torso but it just sits there saying booting up, then it just closes, any ideas?
thank you flawless
New to botting and Simba SRL. amazing script and it seems to be working fine. I got a couple questions however.
What is the best camera angle so that the script finds the most amount of PCs overlooking the best-wide angle to see the whole zone you are in?
Does the script move the camera angle on its own to find the NPCs or do I need to periodically manually set my camera angle to cover most amount of ground?
and how do I import the NPC colors u have got in the mainpost into the script?