Results 1 to 7 of 7

Thread: GameTab Bug.

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

    Default GameTab Bug.

    When using gametab.. There is a slight chance that it messes up and switches to some random tab..

    GameTab(TAB_INV).. if already on the Inv tab, sometimes it switches to the music tab then back.. does this very often now whereas before it was rare enough for me to not report it..

    Other tabs do this as well..
    I am Ggzz..
    Hackintosher

  2. #2
    Join Date
    Apr 2008
    Location
    Marquette, MI
    Posts
    15,252
    Mentioned
    138 Post(s)
    Quoted
    680 Post(s)

    Default

    Moved to the bugs section.

    This may have something to do with the false negatives tabExists was giving. It's fixed in the new_randoms branch. I haven't pushed that commit to master yet because I was unsure if it would really mess things up.

    Try this tabExists and let me know how it goes.
    Simba Code:
    function TabExists(Tab: Integer): Boolean;
    var
      tP: TPoint;
    begin
      Result := false;
      if (not loggedIn) then
        exit;

      if (tab < 20) then
      begin
        SRL_Warn('TabExists', 'Tab ' + IntToStr(Tab) + ' is not using the new constants! Please upgrade your script.', warn_AllVersions);
        Exit;
      end;

      if (not(InRange(Tab, Tab_Combat, Tab_LogOut))) then
      begin
        SRL_Warn('TabExists', 'Tab ' + IntToStr(Tab) + ' is not a valid tab number.', warn_AllVersions);
        Exit;
      end;

      if (Tab = tab_Inv) then
        if BankScreen then
        begin
          Result := True;
          Exit;
        end;

      if (Tab = tab_LogOut) then
      begin
        Result := (GetColor(746, 0) = 65536);
        Exit;
      end;

      tP := Point(((Tab - 21) mod 8 * 30) + 537, ((Tab - 21) div 8 * 298) + 186);
      Result := (CountColorTolerance(5005422, tp.x-12, tp.y-12, tp.x+12, tp.y+12, 55) < 600); // the count when no icons are overlapping the GameTab.
    end;

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

    Default

    Confirmed and Thank you. Might want to push that soon
    I am Ggzz..
    Hackintosher

  4. #4
    Join Date
    Apr 2008
    Location
    Marquette, MI
    Posts
    15,252
    Mentioned
    138 Post(s)
    Quoted
    680 Post(s)

    Default

    It's resolved in the latest version.

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

    Default

    Quote Originally Posted by Coh3n View Post
    It's resolved in the latest version.
    Uhh if u just pushed it.. then it'll take an hr to get through because I just got this happening to me again after overriding an update. So good to hear but the copy paste above works
    I am Ggzz..
    Hackintosher

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

    Default

    Ahh this bug exists again.. Only that it hovers over the ClanChat or little Yellow MSN looking icon at the bottom of the screen.. Constantly doing this and sometimes even staying there for 10-20 seconds on the spot..

  7. #7
    Join Date
    Apr 2008
    Location
    Marquette, MI
    Posts
    15,252
    Mentioned
    138 Post(s)
    Quoted
    680 Post(s)

    Default

    Quote Originally Posted by ggzz View Post
    Ahh this bug exists again.. Only that it hovers over the ClanChat or little Yellow MSN looking icon at the bottom of the screen.. Constantly doing this and sometimes even staying there for 10-20 seconds on the spot..
    How is that related at all? It seems like a completely different issue. More information may be helpful.

    E: TabExists was rewritten, so I don't think it's that. Could be something in GameTab() though. Can you reproduce it?

    E2: I accidentally had it setting CTS2 instead of CTS1. Try the latest SRL and see if it still happens.
    Last edited by Coh3n; 03-13-2012 at 02:11 AM.

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
  •