Results 1 to 9 of 9

Thread: LoginPlayer - resized

  1. #1
    Join Date
    Jan 2012
    Posts
    1,104
    Mentioned
    18 Post(s)
    Quoted
    211 Post(s)

    Default LoginPlayer - resized

    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.

  2. #2
    Join Date
    Feb 2012
    Location
    Wonderland
    Posts
    1,988
    Mentioned
    41 Post(s)
    Quoted
    272 Post(s)

    Default

    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)

  3. #3
    Join Date
    Jan 2012
    Posts
    1,104
    Mentioned
    18 Post(s)
    Quoted
    211 Post(s)

    Default

    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.

  4. #4
    Join Date
    Mar 2012
    Location
    127.0.0.1
    Posts
    3,383
    Mentioned
    95 Post(s)
    Quoted
    717 Post(s)

    Default

    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.

  5. #5
    Join Date
    Jan 2012
    Posts
    1,104
    Mentioned
    18 Post(s)
    Quoted
    211 Post(s)

    Default

    Quote Originally Posted by NKN View Post
    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.
    Simba Code:
    (*
    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.
    Last edited by Shatterhand; 08-07-2012 at 07:49 PM.

  6. #6
    Join Date
    Aug 2007
    Location
    England
    Posts
    1,038
    Mentioned
    0 Post(s)
    Quoted
    6 Post(s)

    Default

    Quote Originally Posted by Shatterhand View Post
    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.
    Simba Code:
    (*
    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 .
    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.
    Last edited by Jakkle; 08-07-2012 at 10:28 PM.
    Today is the first day of the rest of your life

  7. #7
    Join Date
    Jan 2009
    Location
    Turlock/LA, California
    Posts
    1,494
    Mentioned
    3 Post(s)
    Quoted
    66 Post(s)

    Default

    Quote Originally Posted by Jakkle View Post
    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 .
    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

  8. #8
    Join Date
    Feb 2011
    Location
    The Future.
    Posts
    5,600
    Mentioned
    396 Post(s)
    Quoted
    1598 Post(s)

    Default

    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..
    I am Ggzz..
    Hackintosher

  9. #9
    Join Date
    Jan 2012
    Posts
    1,104
    Mentioned
    18 Post(s)
    Quoted
    211 Post(s)

    Default

    Quote Originally Posted by Brandon View Post
    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.
    Simba Code:
    SetupSRL;
    Writeln('Passed');
    'Passed' wont show up.
    Last edited by Shatterhand; 08-09-2012 at 07:55 PM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •