SRL Archive - Jr. Member General Help and Discussion

SRL6 does not recognize lobby screen?


Dead_Photos

2013-09-28 17:24:12

Okay, I'm pretty new/old to all of this; I left the botting scene after the Bot Nuke a looooong time ago.
Now there's no randoms, SRL6 just came out and RS3 is growing on me..

I'm trying to write a simple Fletcher, and I can't even get passed the Lobby screen. ;(
Current Code(Don't laugh lol):
Program DeadFletcherBeta;
{$Define SMART}
{$I SRL-6/SRL.Simba}

procedure declarePlayers();
begin
players.setup(['WUZPLAYERHERE', '33333'], 'N00b');
currentPlayer := 0;

with players[0] do
begin
integers[0] := 50;
integers[1] := 25;
booleans[0] := true;
players[currentPlayer].loginToLobby(); //Added this + Wait below it to see if maybe the login(); function would recognize lobby.
wait(100);
players[currentPlayer].login();

end;
end;
begin
SetupSRL();
declarePlayers();

end;
Simba debug:
---- Client is ready.
---- Setup SRL in 218ms.
-- setupSRL(): True
-- TPlayerArray.setup()
---- Loaded player: **************
---- Loaded player: in
-- TPlayerArray.setup(): Success
-- TPlayer.loginToLobby()
---- ********* (*****)
---- Entering username...
---- Entering password...
---- WARNING: Unknown color count: 0
---- HINT: Please report this issue in the SRL bugs section of the forum
------ Saving screenshot: unknown_login_count.png
---- Login response: One minute as passed...
------ Switching to player 1 (in)
---- TPlayer.login()
------ TPlayer.loginToLobby()
-------- ********** (*******)
-------- Entering username...
-------- Entering password...
Exception in Script: Runtime error: "You passed a wrong xe to a finder function: 960. The client has a width of 960, thus the xe is out of bounds." at line 145, column 23 in file "C:\Simba\Includes\SRL-6\lib\utilities\wrappers.simba"
File[C:\Simba\Includes\SRL-6/logs/SRL log (29-09-13 at 05.14.02 PM).txt] has not been freed in the script, freeing it now.

I have everything set up as should be, and it seems to recognize the Client as well as input boxes for login. Just not the lobby :s

Brandon

2013-09-28 17:33:19

Do me a favour and try this: http://villavu.com/forum/showthread.php?t=106038&p=1267157#post1267157

If it does NOT work then replace your plugin in "C:/Simba/Plugins/" with: https://github.com/Brandon-T/GLX-Colour/releases/download/v1.1/OpenGL32.dll

and let me know if any of the above makes a difference at all.

Would also be nice if you could provide a picture of your Smart (with the enable button, debug button and graphics button showing).

Dead_Photos

2013-09-28 17:51:28

From: Brandon
Do me a favour and try this: http://villavu.com/forum/showthread.php?t=106038&p=1267157#post1267157

If it does NOT work then replace your plugin in "C:/Simba/Plugins/" with: https://github.com/Brandon-T/GLX-Colour/releases/download/v1.1/OpenGL32.dll

and let me know if any of the above makes a difference at all.

Would also be nice if you could provide a picture of your Smart (with the enable button, debug button and graphics button showing).


After applying that to my code; it now gets to this screen[ATTACH=CONFIG]22257[/ATTACH]

The Simba debug logs this as well
True
Exception in Script: Runtime error: "Access violation" at line 38, column 21 in file "C:\Simba\Includes\SRL-6\lib\utilities\wrappers.simba"
The following bitmaps were not freed: [SMART Debug Image]

Brandon

2013-09-28 18:07:39

From: Dead_Photos
After applying that to my code; it now gets to this screen[ATTACH=CONFIG]22257[/ATTACH]

The Simba debug logs this as well
True
Exception in Script: Runtime error: "Access violation" at line 38, column 21 in file "C:\Simba\Includes\SRL-6\lib\utilities\wrappers.simba"
The following bitmaps were not freed: [SMART Debug Image]



Click the settings button, then graphics. Then set your graphics mode to OpenGL.

Olly

2013-09-28 18:35:43

Let me take a look…

Dead_Photos

2013-09-28 18:50:48

From: Brandon
Click the settings button, then graphics. Then set your graphics mode to OpenGL.


Trust me, it's already set to OpenGL - it's my computers default.

Olly

2013-09-28 18:55:52

I've found one possible problem i guess..

Well anyway, go to interfaces/lobby.simba and replace __skipemailscreen with this

procedure TRSLobby.__skipEmailScreen();
var
tpa: TPointArray;
wid, hei: integer;
b: TBox;
begin
getClientDimensions(wid, hei);

if (not findColors(tpa, 658491, 0, 0, wid-1, hei-1)) then // the red background of the text at the top
exit();

writeln('looking for skip email screen..');
b := getTPABounds(tpa);
b.offset([0, 370]); //offset the red background bounds to where we think the button should be
b.setLimit([0, 0, wid-1, hei-1]);

if (not findColors(tpa, 14733486, b)) then // color of the "Skip" text
exit();

if (inRange(length(tpa), 30, 60)) then
begin
mouseBox(tpa.getBounds(), MOUSE_LEFT);
print('TRSLobby.__skipEmailScreen(): Closed validate email screen', TDebug.SUB);
end;
end;

it's hidden on default but it;s line 135 and see if that makes a difference.

Dead_Photos

2013-09-28 19:40:02

Issue resolved.
Reinstalled Simba/Srl6 and Smart 8.3, still got the error, applied the OpenGL fix from brandon and voila, logs in.

:D

Thanks guys.