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?
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?
![]()
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.
Last edited by nemo_149; 08-24-2015 at 07:04 PM.
a simple script, works well for methere 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 ////////// ////////// ////////// ////////////////////////////////////////////////////////////////////////////////////////////////////
Last edited by qntn; 08-30-2015 at 07:52 AM.
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
Last edited by Syndicate; 09-05-2015 at 03:20 AM.
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![]()
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.
There are currently 1 users browsing this thread. (0 members and 1 guests)