SRL Archive - General Botting Help

"ERROR: TRSConversationBox.clickContinue(): Failed to find button color" FIX


Spaceblow

2014-08-17 15:01:15

So I'm adjusting a procedure that makes the player go through a door which opens a conversation box. Ths is a part of a procedure that makes the player go through the door:
  if conversationBox.isOpen() then
repeat
wait(randomRange(350, 750));
if conversationBox.continue(true, true) then //EDITED CONVERSATIONBOX.CONTINUE COLOURS
begin
wait(randomRange(350, 750));
conversationBox.selectOption(1);
wait(1000);
writeLn('Trying to continue');
terminateScript; //added this line for testing
end;
until not conversationBox.isOpen();

Most of the times it goes through the door but sometimes it just stops in the middle of the conversation box or it thinks it went through the door and starts the next procedure…

But when I change something in this function (C:\Simba\Includes\srl-6\lib\interfaces\conversationbox.simba) it works good without any error:
function TRSConversationBox.continue(spaceBar, doWait: boolean; advance: boolean = true): boolean; 

So I changed this line from:
  // yellow of the top of the button
findColorsTolerance(tpaButton, 7003134, self.getBounds(), 15, colorSetting(1));

To:
  // yellow of the top of the button
findColorsTolerance(tpaButton, 3717085, self.getBounds(), 72, colorSetting(1));

And my debug goes from:
-- ERROR: TRSConversationBox.clickContinue(): Failed to find button color
---- conversationBox.getOptions(): Options found: [, ]
---- conversationBox.selectOption(): Selected option 1
Trying to continue

To:
---- conversationBox.getOptions(): Options found: [, ]
---- conversationBox.selectOption(): Selected option 1
Trying to continue

I just manually picked the colours by using the ACA program, am I the only one who experienced this problem or were the colours just outdated? And if I would be releasing a script using my own updated conversation box line and my own updated bitmaps, would I need to put those functions manually in my script or are these stuff going to be updated if I'm not the only one having this problem? But I probably should do this to be sure, right? Thanks in advance! :)

KeepBotting

2014-08-17 16:25:50

I think conversationBox routines might be outdated. I tried modifying KeffAstrals a while ago and I had to override SRL as well.

Maybe copypasta this into the bug reports board? :P

Spaceblow

2014-08-17 16:48:25

From: KeepBotting
I think conversationBox routines might be outdated. I tried modifying KeffAstrals a while ago and I had to override SRL as well.

Maybe copypasta this into the bug reports board? :P
I'll definitely do that for this thing and also for the bitmaps that I've updated, it's this section, right?

KeepBotting

2014-08-17 16:50:25

From: Spaceblow
I'll definitely do that for this thing and also for the bitmaps that I've updated, it's this section, right?


Yup, that's the one.