SRL Archive - General Botting Help

Problems detecting login box simba1 / srl6


b0bzilla

2013-09-30 08:29:10

I'm having problems getting SRL6 to find the login boxes. I wanted to see if anyone else has seen similar or had any thoughts.

My suspicion is that it's being caused by my graphics card/driver. The machine was made for XP and is running windows 7. The graphics card is radeon X300/X500/X1050 series and the available drivers are made for vista not windows 7. I'm thinking about getting a cheap card to see if things run properly.

I'm reasonably sure my simba/smart/srl/opengl software is good. I carefully matched the client graphic settings to the guide. I also had this problem with beta releases. It did work a few times (I think when I was messing with opengl.dll files, windows version vs. brandon's). I'm now running only the released software from last week.

RS loads ok in the smart window, then __setInputBoxes returns with lousy values. __enterLoginInfo adds 8 to the X value causing an out of bounds value to get passed to findColors.

------ __setInputBoxes(): Set username and password boxes
---- __setInputBoxes(): _boxUsername(0,191,959,218)
---- __setInputBoxes(): _boxPassword(0,263,959,290)
---- Client is ready.
---- Setup SRL in 61995ms.
-- setupSRL(): True
-- TPlayer.login()
---- TPlayer.loginToLobby()
------ [email]xyz@example.com[/email] ()
------ Entering username...
Exception in Script: Runtime error: "You passed a wrong xe to a finder function: 967. The client has a width of 960, thus the xe is out of bounds." at line 145, column 23 in file "C:\Simba1.0\Includes\srl-6\lib\utilities\wrappers.simba"
File[C:\Simba1.0\Includes\SRL-6/logs/SRL log (27-09-13 at 02.35.14 PM).txt] has not been freed in the script, freeing it now.


The TPA returned by findColors(tpaActive, 6774863, 0, 0, w-1, h-1) is all out of whack:

[{X = 739, Y = 191}, {X = 740, Y = 191}, ... through {X = 959, Y = 191}, 
{X = 0, Y = 192}, {X = 1, Y = 192}, ... through {X = 23, Y = 192},
{X = 745, Y = 196},
{X = 37, Y = 197}, {X = 747, Y = 197},
{X = 39, Y = 198}, {X = 749, Y = 198},
{X = 41, Y = 199}, {X = 751, Y = 199},
{X = 43, Y = 200}, {X = 753, Y = 200},
{X = 45, Y = 201}, {X = 755, Y = 201},
{X = 47, Y = 202}, {X = 757, Y = 202},
{X = 49, Y = 203}, {X = 759, Y = 203},
{X = 51, Y = 204}, {X = 761, Y = 204},
{X = 53, Y = 205}, {X = 763, Y = 205},
{X = 55, Y = 206}, {X = 765, Y = 206},
{X = 57, Y = 207}, {X = 767, Y = 207},
{X = 59, Y = 208}, {X = 769, Y = 208},
{X = 61, Y = 209}, {X = 771, Y = 209},
{X = 63, Y = 210}, {X = 773, Y = 210},
{X = 65, Y = 211}, {X = 775, Y = 211},
{X = 67, Y = 212}, {X = 777, Y = 212},
{X = 69, Y = 213},
{X = 791, Y = 217}, {X = 792, Y = 217}, ... through {X = 959, Y = 217},
{X = 0, Y = 218}, {X = 1, Y = 218}, ... through {X = 75, Y = 218}]

Olly

2013-09-30 08:59:52

Are you sure rs is in resizeable (even in the login stage)?

b0bzilla

2013-09-30 10:20:51

From: Olly
Are you sure rs is in resizeable (even in the login stage)?


I think so. I started a script to call setupsrl() and wait().

"disable smart" while at the login screen, used the settings icon and it showed resiable.

I noticed a registration unsuccessful and a java exception in the smart window. I don't know if it is normal or not.

[ATTACH=CONFIG]22261[/ATTACH]

Olly

2013-09-30 10:51:54

From: b0bzilla
I think so. I started a script to call setupsrl() and wait().

"disable smart" while at the login screen, used the settings icon and it showed resiable.

I noticed a registration unsuccessful and a java exception in the smart window. I don't know if it is normal or not.

[ATTACH=CONFIG]22261[/ATTACH]


Everyone gets that error, anyway is it only the lobby screen? does srl6 work when you start logged fine?

b0bzilla

2013-10-01 15:24:44

I tried a test bypassing the login and called tabBackback.open(). This also crashed with a similar out of bounds call.

-- setupSRL(): True
-- WARNING: TRSGameTabs._isTabValid(): Tab 25 is invalid
Exception in Script: Runtime error: "You passed a wrong ys to a finder function: -10. That is below 0, thus out of bounds." at line 301, column 31 in file "C:\Simba\Includes\srl-6\lib\interfaces\gametabs\gametab.simba"
File[C:\Simba\Includes\SRL-6/logs/SRL log (01-10-13 at 03.18.29 PM).txt] has not been freed in the script, freeing it now.

I duplicated the results on different hardware. Fresh windows7 32bit, patched, current drivers.

Installed jre 7 upd 40, simba 1.0.2, followed the install process.

I didn't put in the debugs to dump the TPA and validate they were exactly the same but the exception in the simba window was the same.

Login test:
program new;
{$DEFINE SMART}
{$i srl-6/srl.simba}

begin
ClearDebug();
SetupSRL();
setlength(players, 1);
with Players[0] do
begin
LoginName := 'xxx@example.com';
Password := 'password';
isActive := True;
end;
wait(15000);
players[0].login();
wait(20000);
tabBackpack.open();
writeln(tabBackpack.count() );
players[0].logout();
end.

Maunal login test:
program new;
{$DEFINE SMART}
{$i srl-6/srl.simba}

begin
ClearDebug();
SetupSRL();
wait(40000);
tabBackpack.open();
writeln(tabBackpack.count() );
end.

Brandon

2013-10-01 16:08:10

Can you give me a screenshot of your Smart v8.3 please? The whole Smart even the titlebar and buttons.

Olly

2013-10-01 17:37:40

It's caused by the length of the gametabs not being set yet, i can fix it tomorrow (im not at home currently).

b0bzilla

2013-10-01 19:29:30

QUOTE=Brandon;1267724]Can you give me a screenshot of your Smart v8.3 please? The whole Smart even the titlebar and buttons.

[ATTACH=CONFIG]22267[/ATTACH][

[ATTACH=CONFIG]22268[/ATTACH]

b0bzilla

2013-10-01 20:01:37

From: Olly
It's caused by the length of the gametabs not being set yet, i can fix it tomorrow (im not at home currently).


I don't think the root cause is in the srl6 codebase. I'm still new to this architecture but it looks to me to be a bad interaction between simba and smart.

When we ask simba to get us the tpa defining the login box, it reads the screen and hands back a (bad) list of coordinates that is the correct length (there is a check in the code).

The orange lines somewhat represent the top line of the rectangle, but all of them should have the same Y value. Plus the X values should be in the middle of the screen, not off to the right hand side.

Then we should have a run of pairs for the left and right hand part of the rectangle (green). Those should all have the same X values with the Y value incrementing. And it's close to that but the X is drifting.


[{X = 739, Y = 191}, {X = 740, Y = 191}, … through {X = 959, Y = 191},
{X = 0, Y = 192}, {X = 1, Y = 192}, … through {X = 23, Y = 192},


{X = 745, Y = 196},
{X = 37, Y = 197}, {X = 747, Y = 197},
{X = 39, Y = 198}, {X = 749, Y = 198},
{X = 41, Y = 199}, {X = 751, Y = 199},
{X = 43, Y = 200}, {X = 753, Y = 200},
{X = 45, Y = 201}, {X = 755, Y = 201},
{X = 47, Y = 202}, {X = 757, Y = 202},
{X = 49, Y = 203}, {X = 759, Y = 203},
{X = 51, Y = 204}, {X = 761, Y = 204},
{X = 53, Y = 205}, {X = 763, Y = 205},
{X = 55, Y = 206}, {X = 765, Y = 206},
{X = 57, Y = 207}, {X = 767, Y = 207},
{X = 59, Y = 208}, {X = 769, Y = 208},
{X = 61, Y = 209}, {X = 771, Y = 209},
{X = 63, Y = 210}, {X = 773, Y = 210},
{X = 65, Y = 211}, {X = 775, Y = 211},
{X = 67, Y = 212}, {X = 777, Y = 212},
{X = 69, Y = 213},


{X = 791, Y = 217}, {X = 792, Y = 217}, … through {X = 959, Y = 217},
{X = 0, Y = 218}, {X = 1, Y = 218}, … through {X = 75, Y = 218}]

Olly

2013-10-02 09:28:16

oh, use this plugin https://github.com/Brandon-T/GLX-Colour/releases and see if it fixes it.

b0bzilla

2013-10-02 11:46:03

Perfect… that opengl32.dll worked. Now it logs in and was able to perform a backpack count.

It failed the logout but that's probably a minor quirk. I expect I can work out include/lape issues on my own.

Thanks so much for the time and assistance. Finally able to start some scripting!

Olly

2013-10-02 11:51:01

Hmm, it seems like the wrong plugin or something was packaged with simba :s, Wizzup will be adding that plugin with the release of Simba 1.0.3.

Thanks for being patient though, if you find any more bugs it is recomended you report them @ http://villavu.com/forum/project.php?projectid=10. :)