SRL Archive - RS3 Help

chatbox.getChatArea returns wrong TBox


Amichie

2015-05-25 04:40:05

I set up my gfx settings as here: https://villavu.com/forum/showthread.php?t=47714&highlight=graphics+settings

I need to get the coordinates of the chatbox.

Right now chatbox.getChatArea returns {X1 = 3, Y1 = 68, X2 = -20, Y2 = -22}
and as

function TRSChatbox.getChatArea(): TBox;
begin
result := intToBox(self.x1+3, self.y1 + 68, self.x2-20, self.y2-22);
end;

… it has not initialized properly. Why?

The Mayor

2015-05-25 06:06:03

From: Amichie
I set up my gfx settings as here: https://villavu.com/forum/showthread.php?t=47714&highlight=graphics+settings

I need to get the coordinates of the chatbox.

Right now chatbox.getChatArea returns {X1 = 3, Y1 = 68, X2 = -20, Y2 = -22}
and as

function TRSChatbox.getChatArea(): TBox;
begin
result := intToBox(self.x1+3, self.y1 + 68, self.x2-20, self.y2-22);
end;

… it has not initialized properly. Why?


Has this worked in the past and just started occurring in the last day or so? Or you just noticed it now?

bonsai

2015-05-25 06:11:19

Did you call setupSRL()?

The chatbox is initialized in chatbox.__setup().

Which is called by players.simba __setDynamicInterfaces()

Which is called by isLoggedIn()

Which is called by isClientReady()

Which is called by waitClientReady()

Which is called by setupSRL() and sixHourFix()

Amichie

2015-05-25 06:48:10

That it is it! I removed setupSRL for testing purposes. Thanks!