SRL Archive - SRL Bugs

LoginPlayer - resized


Shatterhand

2012-08-07 14:54:52

Ok, the problem is:
I play on a normal client in 'resized' mode.
I close the program.
I load SMART, and it will use the last settings.
LoginPlayer wont work untill I manually switch back to 'fixed'. (it wont click on the boxes)
I guess the login screen is little different.

Le Jingle

2012-08-07 15:17:38

I think you need to change some constants as well as fix a couple of the hard code coords in LoginPlayerToLobby and LoginPlayer; both in simba/includes/srl/srl/login.simba. I don't think there's support in login.simba for resizable (at least with my includes). Hope this helps,
Lj

E: Plus I'm pretty sure you need to manually switch sizes, because all smart does is place the game into safe mode (which works in different sizes afaik)

Shatterhand

2012-08-07 15:33:25

I dont want to bot in resized mode. What Im suggesting is to improve the login function so it can handle the loginscreen. Switching back to fixed, and change some other options could be done by myself. I would use LoginPlayerToLob then call my ChangeSettings function.

NKN

2012-08-07 15:36:04

I wrote a login procedure that doesn't use static clicking, so you could use what ever mode to log in, I think it works. :)

Shatterhand

2012-08-07 15:40:46

From: NKN
I wrote a login procedure that doesn't use static clicking, so you could use what ever mode to log in, I think it works. :)

Yea but I would prefer to have the SRL one improved so the rsupdate and client token errors can be handled.
Can you post it anyways?
EDIT: I looked into the include files. But im stucked here.
(*
LobbyScreen
~~~~~~~~~~~

.. code-block:: pascal

function LobbyScreen: Boolean;

Returns true if we are at the Lobby Screen

.. note::

by IceFire908 & Bionicle1800

Example:

.. code-block:: pascal

// wait for the Lobby Screen to appear!
while (not LobbyScreen) do
Wait(100 + Random(400));

*)
function LobbyScreen: Boolean;
begin
Result := InRange(GetLobbyTab, L_PlayerInfo, L_Options);
end;
If we manage to have the resized lobbyscreen recognized, the boxes are nearly the same coords, so login would work.

Jakkle

2012-08-07 18:25:28

From: Shatterhand
Yea but I would prefer to have the SRL one improved so the rsupdate and client token errors can be handled.
Can you post it anyways?
EDIT: I looked into the include files. But im stucked here.
(*
LobbyScreen
~~~~~~~~~~~

.. code-block:: pascal

function LobbyScreen: Boolean;

Returns true if we are at the Lobby Screen

.. note::

by IceFire908 & Bionicle1800

Example:

.. code-block:: pascal

// wait for the Lobby Screen to appear!
while (not LobbyScreen) do
Wait(100 + Random(400));

*)
function LobbyScreen: Boolean;
begin
Result := InRange(GetLobbyTab, L_PlayerInfo, L_Options);
end;
If we manage to have the resized lobbyscreen recognized, the boxes are nearly the same coords, so login would work.


Before Brandon did his fix, this is where I was stuck. I couldn't find where these 2 variables (L_PlayerInfo, L_Options) were in the SRL library :confused:.
You could always just find where the setting button is to know if your in the right mode and if it's not then click it and change the settings to fixed, close window and login.

x[Warrior]x3500

2012-08-07 19:12:15

From: Jakkle
Before Brandon did his fix, this is where I was stuck. I couldn't find where these 2 variables (L_PlayerInfo, L_Options) were in the SRL library :confused:.
You could always just find where the setting button is to know if your in the right mode and if it's not then click it and change the settings to fixed, close window and login.


line 18 gametab.simba

Brandon

2012-08-07 19:21:50

It detects the login screen and it will tell you that you need to switch to fix. I believe there is a function called SetGraphics or something that you can have the script do it for you BUT I'm not completely sure on that..

Shatterhand

2012-08-09 15:29:59

From: Brandon
It detects the login screen and it will tell you that you need to switch to fix. I believe there is a function called SetGraphics or something that you can have the script do it for you BUT I'm not completely sure on that..

SetGraphics is outdated. I guess I will give it a go making a function for this.
EDIT: made an easy DTM which would detect the resized loginscreen, but the script stucks at SetupSRL.
SetupSRL;
Writeln('Passed');
'Passed' wont show up.