Results 1 to 7 of 7

Thread: Ability Bar bugs

  1. #1
    Join Date
    Feb 2007
    Location
    PA, USA
    Posts
    5,240
    Mentioned
    36 Post(s)
    Quoted
    496 Post(s)

    Default Ability Bar bugs

    When the adrenaline bar is full IsActionBarOpen returns false.
    GetAdrenalinePercent returns 100 before the adrenaline bar is full.
    Last edited by footballjds; 12-04-2012 at 05:27 PM.

  2. #2
    Join Date
    Dec 2011
    Location
    The Netherlands
    Posts
    1,631
    Mentioned
    47 Post(s)
    Quoted
    254 Post(s)

    Default

    GetAdrenalinPercent returned -1 when it was full. Colors change slightly.

    Script source code available here: Github

  3. #3
    Join Date
    Feb 2007
    Location
    PA, USA
    Posts
    5,240
    Mentioned
    36 Post(s)
    Quoted
    496 Post(s)

    Default

    Quote Originally Posted by J J View Post
    GetAdrenalinPercent returned -1 when it was full. Colors change slightly.
    The reason for that is because it returns -1 if action bar isn't open. see the code below and you'll realize why:
    Simba Code:
    function GetAdrenalinePercent(): Integer;
    var
      BarX1,BarX2,BarY1,BarY2 : Integer;
      tpa : TPointArray;
      box : TBox;
    begin
      Result := -1;
      if isActionBarOpen then
      begin
        Result := 100;
        BarY1 := 334 - SRL_NAVBAR_INGAME_Y;
        BarY2 := 337- SRL_NAVBAR_INGAME_Y;
        BarX1 := 49;
        BarX2 := 469;
        if FindColorsTolerance(tpa,1776411,BarX1,BarY1,BarX2,BarY2,15) then
        begin
          box := GetTPABounds(tpa);
          Result := Floor(100 - ((BarX2 - box.X1)*1.0 / (BarX2-BarX1) * 1.0) * 100);
        end;
       end;
    end;
    The check to see if the action bar is open will return false if adrenaline is full. Put a writeln in the function in gametab like so:
    Simba Code:
    function IsActionBarOpen(): Boolean;
    begin
      Result := ((GetColor(45, 283) = 2697663) or (GetColor(473, 283) = 2697663));
      writeln('Action Bar open: '+ToStr(Result));
    end;
    and you'll see what I mean.

    GetAdrenalinePercent returns 100 when the adrenaline is almost 100% but not quite.

  4. #4
    Join Date
    Feb 2007
    Location
    PA, USA
    Posts
    5,240
    Mentioned
    36 Post(s)
    Quoted
    496 Post(s)

    Default

    Ummm, aside from getting a pos software called git how else can I contribute to the include? I want to fix issues fast. I understand maybe no one cares if these functions got put in an include and they're not working but i dooo.

  5. #5
    Join Date
    Jan 2007
    Posts
    8,876
    Mentioned
    123 Post(s)
    Quoted
    327 Post(s)

    Default

    Why not use git? Everyone uses it and it's what we know how to handle. It's of course possible to just send the files to a dev if you don't want to or have the possibilities install anything.

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

    Default

    short version: Make Git acc, fork SRL/SRL5, edit the file in yourGitName/SRL5, then try to merge with original SRL/SRL5. May take some time, depends.

  7. #7
    Join Date
    Feb 2007
    Location
    PA, USA
    Posts
    5,240
    Mentioned
    36 Post(s)
    Quoted
    496 Post(s)

    Default

    Quote Originally Posted by Zyt3x View Post
    Why not use git? Everyone uses it and it's what we know how to handle. It's of course possible to just send the files to a dev if you don't want to or have the possibilities install anything.
    Grrr, I don't like git. maybe I'll break down and start using it.

    But I really want to know why these got put in the include without due testing? I mean I doubt they broke in a few days...

    sorry guys I'm having a ****y day and nothing is seeming to work for me. creating my waterfiend script is so ****ing frustrating.

    Quote Originally Posted by Le Jingle View Post
    short version: Make Git acc, fork SRL/SRL5, edit the file in yourGitName/SRL5, then try to merge with original SRL/SRL5. May take some time, depends.
    Thank you le jingle,

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
  •