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:
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:
So I changed this line from:
To:
And my debug goes from:
To:
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! :)
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 continueTo:
---- 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! :)