[v7.3] [INTERNATIONAL] [glq] GRProgressionToTime menu

User Tag List

Page 3 of 3 FirstFirst 123
Results 31 to 45 of 45
  1. #31
    cherouvim13's Avatar Member
    Reputation
    14
    Join Date
    Mar 2017
    Posts
    212
    Thanks G/R
    258/13
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Memory error cannot be fixed?

    I ask that because the timer still disappears or appears negative if I am ahead of time in party, not solo.

    [v7.3] [INTERNATIONAL] [glq] GRProgressionToTime
  2. #32
    SeaDragon's Avatar Contributor
    Reputation
    321
    Join Date
    Aug 2016
    Posts
    1,041
    Thanks G/R
    140/299
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by cherouvim13 View Post
    Memory error cannot be fixed?

    I ask that because the timer still disappears or appears negative if I am ahead of time in party, not solo.
    Only KJ can fix it

  3. #33
    Tapia's Avatar Member
    Reputation
    1
    Join Date
    Nov 2017
    Posts
    2
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by JackCeparou View Post
    Ill take a look.

    Ps: THANKS, with this i can remove GR from RiftInfoPlugin
    Jack please update yours RiftInfoPlugin into 7.6, plugin very good and needed.

  4. #34
    2003VB12's Avatar Member
    Reputation
    1
    Join Date
    Feb 2018
    Posts
    32
    Thanks G/R
    4/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Does it still work on the May 2018 version? It doesn't seem to appear on the newest version.

  5. #35
    SeaDragon's Avatar Contributor
    Reputation
    321
    Join Date
    Aug 2016
    Posts
    1,041
    Thanks G/R
    140/299
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by 2003VB12 View Post
    Does it still work on the May 2018 version? It doesn't seem to appear on the newest version.
    It doesn't work on 18.5.7.0. I think it'is a BUG of TurboHUD, waiting for KJ to fix interface.

  6. #36
    SeaDragon's Avatar Contributor
    Reputation
    321
    Join Date
    Aug 2016
    Posts
    1,041
    Thanks G/R
    140/299
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by 2003VB12 View Post
    Does it still work on the May 2018 version? It doesn't seem to appear on the newest version.
    18.5.7.1 has fixed it

  7. #37
    Magu's Avatar Member
    Reputation
    9
    Join Date
    Mar 2017
    Posts
    55
    Thanks G/R
    12/8
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Its not working for me, since last update

  8. #38
    SeaDragon's Avatar Contributor
    Reputation
    321
    Join Date
    Aug 2016
    Posts
    1,041
    Thanks G/R
    140/299
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Magu View Post
    Its not working for me, since last update
    Wait for KJ to fix it

  9. #39
    Magu's Avatar Member
    Reputation
    9
    Join Date
    Mar 2017
    Posts
    55
    Thanks G/R
    12/8
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Alright, waiting for the boss then thx for quick reply tho

  10. #40
    ibushk's Avatar Member
    Reputation
    2
    Join Date
    Mar 2017
    Posts
    7
    Thanks G/R
    2/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You may try to replace the old version one as below:

    Code:
    using Turbo.Plugins.Default;
    using System.Linq;
    using System;
    using System.Globalization;
     
    namespace Turbo.Plugins.glq
    {
        public class GLQ_GRProgressionToTime : BasePlugin, IInGameTopPainter, IAfterCollectHandler
        {
            public IFont BonusTimeFont { get; set; }
            public IFont MalusTimeFont { get; set; }
    		
    		public string SecondsFormat { get; set; }
            public string MinutesSecondsFormat { get; set; }
     
            private IFont currentFont;
    		
    		public bool IsGreaterRift
            {
                get
                {
                    return riftQuest != null &&
                           (riftQuest.QuestStepId == 13 || riftQuest.QuestStepId == 16 || riftQuest.QuestStepId == 34 ||
                            riftQuest.QuestStepId == 46);
                }
            }
    
            private IQuest riftQuest
            {
                get
                {
                    return Hud.Game.Quests.FirstOrDefault(q => q.SnoQuest.Sno == 337492) ?? // rift
                           Hud.Game.Quests.FirstOrDefault(q => q.SnoQuest.Sno == 382695);   // gr
                }
            }
    		
    		private const uint greaterriftMaxTimeMilliseconds = 900000;
    		private IWatch pauseTimer;	//for solo
     
            public GLQ_GRProgressionToTime()
            {
                Enabled = true;
            }
     
            public override void Load(IController hud)
            {
                base.Load(hud);
                MalusTimeFont = Hud.Render.CreateFont("tahoma", 7, 255, 250, 100, 100, true, false, 160, 0, 0, 0, true);
                BonusTimeFont = Hud.Render.CreateFont("tahoma", 7, 255, 128, 255, 0, true, false, 160, 0, 0, 0, true);
    			
    			MinutesSecondsFormat = "{0:%m}m {0:ss}s";
                
    			pauseTimer = Hud.Time.CreateWatch();		//solo
            }
    		
    		//pauseTimer handling for GR-Solos
    		public void AfterCollect()
            {
                if (ResetTimers()) return;
    
                if (GamePauseTimers()) return;
    
                RestartStopTimers();
            }
    
            private void RestartStopTimers()
            {
                // (re)start/stop timers if needed
                if (pauseTimer.IsRunning)
                    pauseTimer.Stop();
            }
    
            private bool GamePauseTimers()
            {
                // game pause
                if (Hud.Game.IsPaused || (IsGreaterRift && Hud.Game.NumberOfPlayersInGame == 1 && Hud.Game.IsLoading))
                {
                    if (!pauseTimer.IsRunning)
                        pauseTimer.Start();
    
                    return true;
                }
                return false;
            }
    
            private bool ResetTimers()
            {
                // reset states if needed
                if (riftQuest == null || (riftQuest != null && riftQuest.State == QuestState.none))
                {
                    if (pauseTimer.IsRunning || pauseTimer.ElapsedMilliseconds > 0)
                    {
                        pauseTimer.Reset();
                    }
    				
    				return true;
                }
                return false;
            }
    		
    		public void PaintTopInGame(ClipState clipState)
            {
                if (clipState != ClipState.BeforeClip) return;
                if (!IsGreaterRift) return;
    			
                var ui = Hud.Render.GreaterRiftBarUiElement;
    			
                if (ui == null || !ui.Visible) return;
    			var secondsElapsed = riftQuest.StartedOn.ElapsedMilliseconds;
                var percent = (float)Hud.Game.RiftPercentage;
    			
    			if (secondsElapsed > greaterriftMaxTimeMilliseconds) return;
     
                string text;
    			var _myTime_ms = percent*9000f - secondsElapsed - pauseTimer.ElapsedMilliseconds;
    			var _myTime_span = TimeSpan.FromMilliseconds(_myTime_ms);
    			
    			if (_myTime_ms <= 0)
                {
                    text = "- " + String.Format(CultureInfo.InvariantCulture, MinutesSecondsFormat, _myTime_span);
                    currentFont = MalusTimeFont;
                }
                else
                {
                    text = "+ " + String.Format(CultureInfo.InvariantCulture, MinutesSecondsFormat, _myTime_span);
                    currentFont = BonusTimeFont;
                }
    			
                var textLayout = currentFont.GetTextLayout(text);
    			var x = ui.Rectangle.Left + ui.Rectangle.Width / 100.0f * percent - textLayout.Metrics.Width / 2;
                var y = ui.Rectangle.Top - ui.Rectangle.Height * 0.1f - textLayout.Metrics.Height;
                currentFont.DrawText(textLayout, x, y);
            }
        }
    }

  11. Thanks Magu (1 members gave Thanks to ibushk for this useful post)
  12. #41
    SeaDragon's Avatar Contributor
    Reputation
    321
    Join Date
    Aug 2016
    Posts
    1,041
    Thanks G/R
    140/299
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by ibushk View Post
    You may try to replace the old version one as below:

    Code:
    using Turbo.Plugins.Default;
    using System.Linq;
    using System;
    using System.Globalization;
     
    namespace Turbo.Plugins.glq
    {
        public class GLQ_GRProgressionToTime : BasePlugin, IInGameTopPainter, IAfterCollectHandler
        {
            public IFont BonusTimeFont { get; set; }
            public IFont MalusTimeFont { get; set; }
    		
    		public string SecondsFormat { get; set; }
            public string MinutesSecondsFormat { get; set; }
     
            private IFont currentFont;
    		
    		public bool IsGreaterRift
            {
                get
                {
                    return riftQuest != null &&
                           (riftQuest.QuestStepId == 13 || riftQuest.QuestStepId == 16 || riftQuest.QuestStepId == 34 ||
                            riftQuest.QuestStepId == 46);
                }
            }
    
            private IQuest riftQuest
            {
                get
                {
                    return Hud.Game.Quests.FirstOrDefault(q => q.SnoQuest.Sno == 337492) ?? // rift
                           Hud.Game.Quests.FirstOrDefault(q => q.SnoQuest.Sno == 382695);   // gr
                }
            }
    		
    		private const uint greaterriftMaxTimeMilliseconds = 900000;
    		private IWatch pauseTimer;	//for solo
     
            public GLQ_GRProgressionToTime()
            {
                Enabled = true;
            }
     
            public override void Load(IController hud)
            {
                base.Load(hud);
                MalusTimeFont = Hud.Render.CreateFont("tahoma", 7, 255, 250, 100, 100, true, false, 160, 0, 0, 0, true);
                BonusTimeFont = Hud.Render.CreateFont("tahoma", 7, 255, 128, 255, 0, true, false, 160, 0, 0, 0, true);
    			
    			MinutesSecondsFormat = "{0:%m}m {0:ss}s";
                
    			pauseTimer = Hud.Time.CreateWatch();		//solo
            }
    		
    		//pauseTimer handling for GR-Solos
    		public void AfterCollect()
            {
                if (ResetTimers()) return;
    
                if (GamePauseTimers()) return;
    
                RestartStopTimers();
            }
    
            private void RestartStopTimers()
            {
                // (re)start/stop timers if needed
                if (pauseTimer.IsRunning)
                    pauseTimer.Stop();
            }
    
            private bool GamePauseTimers()
            {
                // game pause
                if (Hud.Game.IsPaused || (IsGreaterRift && Hud.Game.NumberOfPlayersInGame == 1 && Hud.Game.IsLoading))
                {
                    if (!pauseTimer.IsRunning)
                        pauseTimer.Start();
    
                    return true;
                }
                return false;
            }
    
            private bool ResetTimers()
            {
                // reset states if needed
                if (riftQuest == null || (riftQuest != null && riftQuest.State == QuestState.none))
                {
                    if (pauseTimer.IsRunning || pauseTimer.ElapsedMilliseconds > 0)
                    {
                        pauseTimer.Reset();
                    }
    				
    				return true;
                }
                return false;
            }
    		
    		public void PaintTopInGame(ClipState clipState)
            {
                if (clipState != ClipState.BeforeClip) return;
                if (!IsGreaterRift) return;
    			
                var ui = Hud.Render.GreaterRiftBarUiElement;
    			
                if (ui == null || !ui.Visible) return;
    			var secondsElapsed = riftQuest.StartedOn.ElapsedMilliseconds;
                var percent = (float)Hud.Game.RiftPercentage;
    			
    			if (secondsElapsed > greaterriftMaxTimeMilliseconds) return;
     
                string text;
    			var _myTime_ms = percent*9000f - secondsElapsed - pauseTimer.ElapsedMilliseconds;
    			var _myTime_span = TimeSpan.FromMilliseconds(_myTime_ms);
    			
    			if (_myTime_ms <= 0)
                {
                    text = "- " + String.Format(CultureInfo.InvariantCulture, MinutesSecondsFormat, _myTime_span);
                    currentFont = MalusTimeFont;
                }
                else
                {
                    text = "+ " + String.Format(CultureInfo.InvariantCulture, MinutesSecondsFormat, _myTime_span);
                    currentFont = BonusTimeFont;
                }
    			
                var textLayout = currentFont.GetTextLayout(text);
    			var x = ui.Rectangle.Left + ui.Rectangle.Width / 100.0f * percent - textLayout.Metrics.Width / 2;
                var y = ui.Rectangle.Top - ui.Rectangle.Height * 0.1f - textLayout.Metrics.Height;
                currentFont.DrawText(textLayout, x, y);
            }
        }
    }
    @gjuz ‘s code code is implemented in another way, but it has a problem. It will be inaccurate after death in solo.

    As shown in the picture1.jpg

  13. Thanks ADV2015 (1 members gave Thanks to SeaDragon for this useful post)
  14. #42
    Magu's Avatar Member
    Reputation
    9
    Join Date
    Mar 2017
    Posts
    55
    Thanks G/R
    12/8
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    seems to work so far, thx ibushk !

  15. #43
    bm206's Avatar Active Member
    Reputation
    73
    Join Date
    Mar 2017
    Posts
    285
    Thanks G/R
    57/64
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Can somebody explain the difference in calculating the time between SeaDragon and gjuz? What are the pros for each Version? Sometimes the version of SeaDragon didn't show something, but then the rift plugin stopped, top. But this only happened in a few rifts.

  16. #44
    2003VB12's Avatar Member
    Reputation
    1
    Join Date
    Feb 2018
    Posts
    32
    Thanks G/R
    4/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by ibushk View Post
    You may try to replace the old version one as below:

    Code:
    using Turbo.Plugins.Default;
    using System.Linq;
    using System;
    using System.Globalization;
     
    namespace Turbo.Plugins.glq
    {
        public class GLQ_GRProgressionToTime : BasePlugin, IInGameTopPainter, IAfterCollectHandler
        {
            public IFont BonusTimeFont { get; set; }
            public IFont MalusTimeFont { get; set; }
    		
    		public string SecondsFormat { get; set; }
            public string MinutesSecondsFormat { get; set; }
     
            private IFont currentFont;
    		
    		public bool IsGreaterRift
            {
                get
                {
                    return riftQuest != null &&
                           (riftQuest.QuestStepId == 13 || riftQuest.QuestStepId == 16 || riftQuest.QuestStepId == 34 ||
                            riftQuest.QuestStepId == 46);
                }
            }
    
            private IQuest riftQuest
            {
                get
                {
                    return Hud.Game.Quests.FirstOrDefault(q => q.SnoQuest.Sno == 337492) ?? // rift
                           Hud.Game.Quests.FirstOrDefault(q => q.SnoQuest.Sno == 382695);   // gr
                }
            }
    		
    		private const uint greaterriftMaxTimeMilliseconds = 900000;
    		private IWatch pauseTimer;	//for solo
     
            public GLQ_GRProgressionToTime()
            {
                Enabled = true;
            }
     
            public override void Load(IController hud)
            {
                base.Load(hud);
                MalusTimeFont = Hud.Render.CreateFont("tahoma", 7, 255, 250, 100, 100, true, false, 160, 0, 0, 0, true);
                BonusTimeFont = Hud.Render.CreateFont("tahoma", 7, 255, 128, 255, 0, true, false, 160, 0, 0, 0, true);
    			
    			MinutesSecondsFormat = "{0:%m}m {0:ss}s";
                
    			pauseTimer = Hud.Time.CreateWatch();		//solo
            }
    		
    		//pauseTimer handling for GR-Solos
    		public void AfterCollect()
            {
                if (ResetTimers()) return;
    
                if (GamePauseTimers()) return;
    
                RestartStopTimers();
            }
    
            private void RestartStopTimers()
            {
                // (re)start/stop timers if needed
                if (pauseTimer.IsRunning)
                    pauseTimer.Stop();
            }
    
            private bool GamePauseTimers()
            {
                // game pause
                if (Hud.Game.IsPaused || (IsGreaterRift && Hud.Game.NumberOfPlayersInGame == 1 && Hud.Game.IsLoading))
                {
                    if (!pauseTimer.IsRunning)
                        pauseTimer.Start();
    
                    return true;
                }
                return false;
            }
    
            private bool ResetTimers()
            {
                // reset states if needed
                if (riftQuest == null || (riftQuest != null && riftQuest.State == QuestState.none))
                {
                    if (pauseTimer.IsRunning || pauseTimer.ElapsedMilliseconds > 0)
                    {
                        pauseTimer.Reset();
                    }
    				
    				return true;
                }
                return false;
            }
    		
    		public void PaintTopInGame(ClipState clipState)
            {
                if (clipState != ClipState.BeforeClip) return;
                if (!IsGreaterRift) return;
    			
                var ui = Hud.Render.GreaterRiftBarUiElement;
    			
                if (ui == null || !ui.Visible) return;
    			var secondsElapsed = riftQuest.StartedOn.ElapsedMilliseconds;
                var percent = (float)Hud.Game.RiftPercentage;
    			
    			if (secondsElapsed > greaterriftMaxTimeMilliseconds) return;
     
                string text;
    			var _myTime_ms = percent*9000f - secondsElapsed - pauseTimer.ElapsedMilliseconds;
    			var _myTime_span = TimeSpan.FromMilliseconds(_myTime_ms);
    			
    			if (_myTime_ms <= 0)
                {
                    text = "- " + String.Format(CultureInfo.InvariantCulture, MinutesSecondsFormat, _myTime_span);
                    currentFont = MalusTimeFont;
                }
                else
                {
                    text = "+ " + String.Format(CultureInfo.InvariantCulture, MinutesSecondsFormat, _myTime_span);
                    currentFont = BonusTimeFont;
                }
    			
                var textLayout = currentFont.GetTextLayout(text);
    			var x = ui.Rectangle.Left + ui.Rectangle.Width / 100.0f * percent - textLayout.Metrics.Width / 2;
                var y = ui.Rectangle.Top - ui.Rectangle.Height * 0.1f - textLayout.Metrics.Height;
                currentFont.DrawText(textLayout, x, y);
            }
        }
    }
    I found a bug of this version: when I am in solo GR and put the game on hold by pressing ESC, the game is paused but the plugin time is not paused.

  17. #45
    Bs4237's Avatar Member
    Reputation
    1
    Join Date
    Oct 2017
    Posts
    29
    Thanks G/R
    1/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Great plugin!
    Last edited by Bs4237; 11-27-2020 at 09:12 PM.

Page 3 of 3 FirstFirst 123

Similar Threads

  1. [INTERNATIONAL] [glq] MonstersCountPlugin
    By SeaDragon in forum TurboHUD Community Plugins
    Replies: 120
    Last Post: 11-12-2022, 06:50 PM
  2. [v7.2] [INTERNATIONAL] [glq] MonsterRiftProgressionPlugin
    By SeaDragon in forum TurboHUD Community Plugins
    Replies: 23
    Last Post: 09-07-2021, 04:46 AM
  3. [v7.3] [INTERNATIONAL] [glq] PlayerSkillBarPlugin
    By SeaDragon in forum TurboHUD Community Plugins
    Replies: 27
    Last Post: 10-12-2019, 01:58 AM
  4. [v7.2] [INTERNATIONAL] [glq] ZeiCircleForBoss
    By SeaDragon in forum TurboHUD Community Plugins
    Replies: 22
    Last Post: 05-25-2018, 03:33 AM
All times are GMT -5. The time now is 02:25 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search