Results 1 to 12 of 12

Thread: Problems detecting login box simba1 / srl6

  1. #1
    Join Date
    Aug 2013
    Location
    East Coast USA
    Posts
    14
    Mentioned
    0 Post(s)
    Quoted
    5 Post(s)

    Default Problems detecting login box simba1 / srl6

    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.

    Code:
    ------ __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()
    ------ xyz@example.com ()
    ------ 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:

    Code:
    [{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}]

  2. #2
    Join Date
    Nov 2011
    Location
    England
    Posts
    3,072
    Mentioned
    296 Post(s)
    Quoted
    1094 Post(s)

    Default

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

  3. #3
    Join Date
    Aug 2013
    Location
    East Coast USA
    Posts
    14
    Mentioned
    0 Post(s)
    Quoted
    5 Post(s)

    Default

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

    Capture.JPG

  4. #4
    Join Date
    Nov 2011
    Location
    England
    Posts
    3,072
    Mentioned
    296 Post(s)
    Quoted
    1094 Post(s)

    Default

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

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

  5. #5
    Join Date
    Aug 2013
    Location
    East Coast USA
    Posts
    14
    Mentioned
    0 Post(s)
    Quoted
    5 Post(s)

    Default

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

    Code:
    -- 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:
    Code:
    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:
    Code:
    program new;
    {$DEFINE SMART}
    {$i srl-6/srl.simba}
    
    begin
      ClearDebug();
      SetupSRL();
      wait(40000);
      tabBackpack.open();
      writeln(tabBackpack.count() );
    end.

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

    Default

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

  7. #7
    Join Date
    Nov 2011
    Location
    England
    Posts
    3,072
    Mentioned
    296 Post(s)
    Quoted
    1094 Post(s)

    Default

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

  8. #8
    Join Date
    Aug 2013
    Location
    East Coast USA
    Posts
    14
    Mentioned
    0 Post(s)
    Quoted
    5 Post(s)

    Default

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

    Capture.PNG[

    Capture2.PNG

  9. #9
    Join Date
    Aug 2013
    Location
    East Coast USA
    Posts
    14
    Mentioned
    0 Post(s)
    Quoted
    5 Post(s)

    Default

    Quote Originally Posted by Olly View Post
    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}]

  10. #10
    Join Date
    Nov 2011
    Location
    England
    Posts
    3,072
    Mentioned
    296 Post(s)
    Quoted
    1094 Post(s)

    Default

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

  11. #11
    Join Date
    Aug 2013
    Location
    East Coast USA
    Posts
    14
    Mentioned
    0 Post(s)
    Quoted
    5 Post(s)

    Default

    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!

  12. #12
    Join Date
    Nov 2011
    Location
    England
    Posts
    3,072
    Mentioned
    296 Post(s)
    Quoted
    1094 Post(s)

    Default

    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.

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
  •