[v7.6] [INTERNATIONAL] [Arkahr] ConventionOfElementsBar menu

User Tag List

Page 1 of 2 12 LastLast
Results 1 to 15 of 22
  1. #1
    Arkahr's Avatar Active Member
    Reputation
    17
    Join Date
    Jan 2013
    Posts
    76
    Thanks G/R
    7/13
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [v7.6] [INTERNATIONAL] [Arkahr] ConventionOfElementsBar

    Warining: It works only for one greatest element. Using two or more elements of equal value, or no element bonus at all, will produce looping cooldown.

    Yet another Convention of Elements plugin.

    It draws cooldown in form of shrinking bar.
    By default its location is under minimap, covering objective name part.
    Grey bar is cooldown part, red is my fire as main element.





    But you can customize its properties to your liking, for example under characters feet, without time left numbers.



    Copy code from [C#] ConventionOfElementsBar - Pastebin.com and paste it to new file ConventionOfElementsBar.cs
    Put file in \plugins\Arkahr folder.

    If you wish to customize it, like the one below your character, edit \plugins\User\PluginEnablerOrDisablerPlugin.cs, adding at the top in using section:
    Code:
    using Turbo.Plugins.Arkahr;
    and further in Customize() section
    Code:
     Hud.RunOnPlugin<ConventionOfElementsBarS>(plugin=> {
        plugin.setBar(600, 520, 100, 20); //sets user prefered bar position and dimensions to setBar(x, y, width, height)
        plugin.ShowTimeLeftNumbers = false; //by default = true
        plugin.Opacity = 0.7f; //by default = 1.0f
        //plugin.TimeLeftFont = Hud.Render.CreateFont("tahoma", 8, 255, 255, 255, 255, false, false, 255, 0, 0, 0, true);        
        //plugin.BackgroundBrush = Hud.Render.CreateBrush(255, 0, 0, 0, 0); 
        //plugin.CooldownBrush = Hud.Render.CreateBrush(255, 127, 127, 127, 0);  
        //plugin.ElementBrush.Arcane = Hud.Render.CreateBrush(255, 159,  58, 232, 0); 
        //plugin.ElementBrush.Cold = Hud.Render.CreateBrush(255,  97, 193, 244, 0);  
        //plugin.ElementBrush.Fire = Hud.Render.CreateBrush(255, 182,  49,  49, 0);  
        //plugin.ElementBrush.Holy = Hud.Render.CreateBrush(255, 255, 208,  68, 0);
        //plugin.ElementBrush.Lightning = Hud.Render.CreateBrush(255,   4,  32, 135, 0);
        //plugin.ElementBrush.Physical  = Hud.Render.CreateBrush(255,  85,  80,  66, 0);
        //plugin.ElementBrush.Poison = Hud.Render.CreateBrush(255,  80, 226,  36, 0); 
    });
    Commented lines are defaults, if you wish to change it, just delete // and edit that line.

    Lets say you want to change color of brush of Arcane element to pink, instead of violet.
    Code:
    plugin.ElementBrush.Arcane = Hud.Render.CreateBrush(255, 239, 55, 218, 0);
    I hope someone gets it useful. Cheers!

    [v7.6] [INTERNATIONAL] [Arkahr] ConventionOfElementsBar
  2. Thanks ADV2015, johnbl, MrOne, C27H46O, RNN (5 members gave Thanks to Arkahr for this useful post)
  3. #2
    daneriks1990's Avatar Member
    Reputation
    1
    Join Date
    May 2017
    Posts
    16
    Thanks G/R
    1/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    is it possible to add lines indicating every second of the bar? I have abilities I time at specific points in CoE, would make it very easy to time precisely then.

  4. #3
    Arkahr's Avatar Active Member
    Reputation
    17
    Join Date
    Jan 2013
    Posts
    76
    Thanks G/R
    7/13
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by daneriks1990 View Post
    is it possible to add lines indicating every second of the bar? I have abilities I time at specific points in CoE, would make it very easy to time precisely then.

    How much these abilities are, what points in coe buff time you woud like to track, and for how much is duration of every each one?


    If I understand you correctly you would like something like that:
    - each ability line is shown for duration: from - to, then the line disapears

    --CoE--
    |-----------------1------------------2-------------------3------------------4

    -ability1-
    |-------------------------------------------------------------------------------|
    |-----------------------------------------------------------|
    -ability2-
    |-----------------------------------------------------------|
    |---------------------------------------|
    -ability3-
    |---------------------------------------|
    |-------------------|
    -ability4-
    |-------------------|
    |


    each line appear only at specified time frames (are they whole seconds (4,3,2,1) or decimals to (3.5, 2.4, 1.7, 0.9))?,

  5. #4
    C27H46O's Avatar Member
    Reputation
    1
    Join Date
    Dec 2018
    Posts
    4
    Thanks G/R
    2/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    coe bar1.jpg
    I like this!!!!
    Thx

  6. #5
    NMP's Avatar Member
    Reputation
    1
    Join Date
    Mar 2017
    Posts
    16
    Thanks G/R
    1/0
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hm.. nice plugin. But i can not change the bar position.

    Code:
    using Turbo.Plugins.Default;
    using Turbo.Plugins.Arkahr;
    
    namespace Turbo.Plugins.User
    {
    
        public class PluginEnablerOrDisablerPlugin : BasePlugin, ICustomizer
        {
    
            public PluginEnablerOrDisablerPlugin()
            {
                Enabled = true;
            }
    
            public override void Load(IController hud)
            {
                base.Load(hud);
            }
    
            
            public void Customize()
            {
                Hud.TogglePlugin<MultiplayerExperienceRangePlugin>(true);
    	    
    			Hud.GetPlugin<InventoryAndStashPlugin>().NotGoodDisplayEnabled = false;
                
    	    
                Hud.GetPlugin<InventoryAndStashPlugin>().NotGoodDisplayEnabled = false;
    
    			
    			Hud.GetPlugin<EliteMonsterAffixPlugin>().AffixDecorators.Remove(MonsterAffix.Arcane);
    
               
    			Hud.GetPlugin<EliteMonsterAffixPlugin>().CustomAffixNames.Add(MonsterAffix.Desecrator, "DES");
    			Hud.RunOnPlugin<ConventionOfElementsBar>(plugin=> {
    				plugin.setBar(600, 520, 100, 20); 
    				plugin.ShowTimeLeftNumbers = false;
    				plugin.Opacity = 1f; 
    				plugin.TimeLeftFont = Hud.Render.CreateFont("tahoma", 8, 255, 255, 255, 255, false, false, 255, 0, 0, 0, true);        
    				plugin.BackgroundBrush = Hud.Render.CreateBrush(255, 0, 0, 0, 0); 
    				plugin.CooldownBrush = Hud.Render.CreateBrush(255, 127, 127, 127, 0);  
    				plugin.ElementBrush.Arcane = Hud.Render.CreateBrush(255, 159,  58, 232, 0); 
    				plugin.ElementBrush.Cold = Hud.Render.CreateBrush(255,  97, 193, 244, 0);  
    				plugin.ElementBrush.Fire = Hud.Render.CreateBrush(255, 182,  49,  49, 0);  
    				plugin.ElementBrush.Holy = Hud.Render.CreateBrush(255, 255, 208,  68, 0);
    				plugin.ElementBrush.Lightning = Hud.Render.CreateBrush(255,   4,  32, 135, 0);		
    				plugin.ElementBrush.Physical  = Hud.Render.CreateBrush(255,  85,  80,  66, 0);
    				plugin.ElementBrush.Poison = Hud.Render.CreateBrush(255,  80, 226,  36, 0); 
    			});
            }
    
        }
    
    }
    can u help me? what is wrong?

  7. #6
    banzie's Avatar Member
    Reputation
    1
    Join Date
    Feb 2018
    Posts
    1
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thx a lot
    Last edited by banzie; 01-27-2019 at 09:53 AM.

  8. #7
    Saah's Avatar Member
    Reputation
    4
    Join Date
    Sep 2013
    Posts
    62
    Thanks G/R
    0/3
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Addon works out-of-the-box (if you dont add the customization code), but if you add a customization code the PluginCustomizationPlugin.cs file, an exception raises and addon does not run, exception says:
    "The type or namespace name 'ConventionOfElementsBarS' could not be found (are you missing a using directive or an assembly reference?)"
    so in the line:
    "Hud.RunOnPlugin<ConventionOfElementsBarS>(plugin=> { "
    between "< >" must be something else, not just "<ConventionOfElementsBarS>" (at least folder name missing)


    UPD:
    Here is how to fix it:
    1) in the plugin customization section, that you copied from the first post change:
    "<ConventionOfElementsBarS>" change to "<Turbo.Plugins.Arkahr.ConventionOfElementsBar>"
    This is the correct namespace, then customization will work.

    EPD2:
    i did not read author's post thorougly (about customization), if you add "using Turbo.Plugins.Arkahr;" it will be enough, but my above fix allows to not add that "using.." line for the customization section to work.

    The addon itself is the best for CoE displaying, very clearly visible, for Raekor-HOTA barb it is a must-have addon.
    Last edited by Saah; 02-09-2019 at 03:08 PM. Reason: typos

  9. Thanks FoxPox (1 members gave Thanks to Saah for this useful post)
  10. #8
    CaptainDesu's Avatar Member
    Reputation
    1
    Join Date
    Jun 2011
    Posts
    3
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by NMP View Post
    Hm.. nice plugin. But i can not change the bar position.

    Code:
    using Turbo.Plugins.Default;
    using Turbo.Plugins.Arkahr;
    
    namespace Turbo.Plugins.User
    {
    
        public class PluginEnablerOrDisablerPlugin : BasePlugin, ICustomizer
        {
    
            public PluginEnablerOrDisablerPlugin()
            {
                Enabled = true;
            }
    
            public override void Load(IController hud)
            {
                base.Load(hud);
            }
    
            
            public void Customize()
            {
                Hud.TogglePlugin<MultiplayerExperienceRangePlugin>(true);
    	    
    			Hud.GetPlugin<InventoryAndStashPlugin>().NotGoodDisplayEnabled = false;
                
    	    
                Hud.GetPlugin<InventoryAndStashPlugin>().NotGoodDisplayEnabled = false;
    
    			
    			Hud.GetPlugin<EliteMonsterAffixPlugin>().AffixDecorators.Remove(MonsterAffix.Arcane);
    
               
    			Hud.GetPlugin<EliteMonsterAffixPlugin>().CustomAffixNames.Add(MonsterAffix.Desecrator, "DES");
    			Hud.RunOnPlugin<ConventionOfElementsBar>(plugin=> {
    				plugin.setBar(600, 520, 100, 20); 
    				plugin.ShowTimeLeftNumbers = false;
    				plugin.Opacity = 1f; 
    				plugin.TimeLeftFont = Hud.Render.CreateFont("tahoma", 8, 255, 255, 255, 255, false, false, 255, 0, 0, 0, true);        
    				plugin.BackgroundBrush = Hud.Render.CreateBrush(255, 0, 0, 0, 0); 
    				plugin.CooldownBrush = Hud.Render.CreateBrush(255, 127, 127, 127, 0);  
    				plugin.ElementBrush.Arcane = Hud.Render.CreateBrush(255, 159,  58, 232, 0); 
    				plugin.ElementBrush.Cold = Hud.Render.CreateBrush(255,  97, 193, 244, 0);  
    				plugin.ElementBrush.Fire = Hud.Render.CreateBrush(255, 182,  49,  49, 0);  
    				plugin.ElementBrush.Holy = Hud.Render.CreateBrush(255, 255, 208,  68, 0);
    				plugin.ElementBrush.Lightning = Hud.Render.CreateBrush(255,   4,  32, 135, 0);		
    				plugin.ElementBrush.Physical  = Hud.Render.CreateBrush(255,  85,  80,  66, 0);
    				plugin.ElementBrush.Poison = Hud.Render.CreateBrush(255,  80, 226,  36, 0); 
    			});
            }
    
        }
    
    }
    can u help me? what is wrong?
    U gotta change that to change bar position.
    Code:
    plugin.setBar(600, 520, 100, 20);
    Where 600 is X coordinate from right to left and 520 is Y from top to bottom
    I moved it to under character feet using
    Code:
    plugin.setBar(Hud.Window.Size.Width * 0.5f - 50f, Hud.Window.Size.Height * 0.515f, 100, 20);

  11. #9
    SnowWar's Avatar Member
    Reputation
    1
    Join Date
    Jun 2012
    Posts
    2
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    2 Things:

    1) Check that your PluginEnablerOrDisablerPlugin file is called PluginEnablerOrDisablerPlugin.cs and not .txt

    2) The one line should read:
    Hud.RunOnPlugin<ConventionOfElementsBar>(plugin=> {

    Without the S behind BarS

  12. #10
    Cplusplusnoob's Avatar Member
    Reputation
    1
    Join Date
    Apr 2011
    Posts
    15
    Thanks G/R
    2/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hello, I was wondering if someone could post a bar for wiz arcane cycle under the character. I'm not very savvy with this sorta stuff.
    Last edited by Cplusplusnoob; 02-23-2019 at 02:18 PM.

  13. #11
    immor's Avatar Active Member
    Reputation
    20
    Join Date
    Mar 2008
    Posts
    68
    Thanks G/R
    3/4
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I really like this method of displaying COE cycles best and never had any problems with this plugin. But lately I am getting an exception every now and then:
    Code:
    2019.04.17 21:28:46.954 19.3.26.1 overlay paint error (System.ArgumentOutOfRangeException: Der Index lag außerhalb des Bereichs. Er darf nicht negativ und kleiner als die Sammlung sein.
    Parametername: index
       bei System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource)
       bei Turbo.Plugins.Arkahr.ConventionOfElementsBar.PaintTopInGame(ClipState clipState)
       bei ‬​‏‪‪‎‬‪‎‏‫‪‪‎‎​‫.‫‬‎‏‎‫‎​‫‫‫‬‎‬​‬‏‪‎‏​​‏‏‬‫.​‎​‎‎‏‎‎‏‬‎‫‎‫‬‎​‪()
       bei ‬​‏‪‪‎‬‪‎‏‫‪‪‎‎​‫.‪​​​‪‎‪‎‪‎‬‏‎‫(IPlugin , String , Action , Boolean)
       bei ‬​‏‪‪‎‬‪‎‏‫‪‪‎‎​‫.‎‎‫‬‫​​‪‎‫‬‫‎(Object , EventArgs)
       bei ‎‬‏‬‬‏‫​‏‫‪‪‪‏‏‪.‫‎‪‏​‬​‏‫​​‪‫‎‫‏‬())‫‏‬())
    If there is anyone out there willing to help, I'd really appreciate!

  14. #12
    RNN's Avatar Legendary
    Reputation
    813
    Join Date
    Sep 2018
    Posts
    1,056
    Thanks G/R
    104/776
    Trade Feedback
    0 (0%)
    Mentioned
    15 Post(s)
    Tagged
    0 Thread(s)
    I have looked over the code and there is a part that is wrong, if you equip your character with objects that enhance the damage to an element that does not use that character appear exceptions, for example using lightning damage in a necromancer. (bestindex does not take any value but is used below, the problem comes from using player.Offense.HighestElementalDamageBonus instead of looking for the element that has the most damage inside the elements that the pj uses)
    To reproduce the problem: equip the character with an object with 20 to fire and 15-19 to physical/poison or cold
    Last edited by RNN; 04-18-2019 at 05:54 AM.

  15. #13
    RNN's Avatar Legendary
    Reputation
    813
    Join Date
    Sep 2018
    Posts
    1,056
    Thanks G/R
    104/776
    Trade Feedback
    0 (0%)
    Mentioned
    15 Post(s)
    Tagged
    0 Thread(s)
    I have created a modification of this plugin to try to solve the issue of exceptions. I found parts of the code that were convenient to redo because they were a source of problems.

    [C#] ConventionOfElementsBar - Pastebin.com

    Changes:
    The damage bonus to elements that are not used by the pj will be ignored, they will not be taken into account.
    If there is 2 greatest element, one of them will be chosen, always the same, according to the following order: Arcane, Cold, Fire, Holy, Lightning, Physical, Poison
    If there is no damage bonus to any element that the character uses, the plugin will not show anything (nor will it give exceptions).

  16. #14
    rogue00722's Avatar Member
    Reputation
    4
    Join Date
    Mar 2018
    Posts
    45
    Thanks G/R
    22/3
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank you for your help always.

  17. #15
    hurrikane's Avatar Member
    Reputation
    1
    Join Date
    Aug 2008
    Posts
    78
    Thanks G/R
    29/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    hello guys,

    i tried to change the PluginEnablerOrDisablerPlugin.cs file but as always i failed. I have no idea how to write those customizations

    i made it like that

    // ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    // *.txt files are not loaded automatically by TurboHUD
    // you have to change this file's extension to .cs to enable it
    // ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

    using Turbo.Plugins.Default;

    namespace Turbo.Plugins.User
    {

    public class PluginEnablerOrDisablerPlugin : BasePlugin, ICustomizer
    {

    public PluginEnablerOrDisablerPlugin()
    {
    Enabled = true;
    }

    public override void Load(IController hud)
    {
    base.Load(hud);
    }

    // "Customize" methods are automatically executed after every plugin is loaded.
    // So these methods can use Hud.GetPlugin<class> to access the plugin instances' public properties (like decorators, Enabled flag, parameters, etc)
    // Make sure you test the return value against null!
    public void Customize()
    {
    using Turbo.Plugins.Arkahr;
    Hud.RunOnPlugin<ConventionOfElementsBarS>(plugin=> {
    plugin.setBar(600, 520, 100, 20); //sets user prefered bar position and dimensions to setBar(x, y, width, height)
    plugin.ShowTimeLeftNumbers = false; //by default = true
    plugin.Opacity = 0.7f; //by default = 1.0f
    //plugin.TimeLeftFont = Hud.Render.CreateFont("tahoma", 8, 255, 255, 255, 255, false, false, 255, 0, 0, 0, true);
    //plugin.BackgroundBrush = Hud.Render.CreateBrush(255, 0, 0, 0, 0);
    //plugin.CooldownBrush = Hud.Render.CreateBrush(255, 127, 127, 127, 0);
    //plugin.ElementBrush.Arcane = Hud.Render.CreateBrush(255, 159, 58, 232, 0);
    //plugin.ElementBrush.Cold = Hud.Render.CreateBrush(255, 97, 193, 244, 0);
    //plugin.ElementBrush.Fire = Hud.Render.CreateBrush(255, 182, 49, 49, 0);
    //plugin.ElementBrush.Holy = Hud.Render.CreateBrush(255, 255, 208, 68, 0);
    //plugin.ElementBrush.Lightning = Hud.Render.CreateBrush(255, 4, 32, 135, 0);
    //plugin.ElementBrush.Physical = Hud.Render.CreateBrush(255, 85, 80, 66, 0);
    //plugin.ElementBrush.Poison = Hud.Render.CreateBrush(255, 80, 226, 36, 0);
    });



    Hud.RunOnPlugin<Gigi.EliteBarPlugin>(plugin => {
    plugin.DisplayAffix.Add(MonsterAffix.Frozen, "Frozen");
    plugin.DisplayAffix.Add(MonsterAffix.Wormhole, "WormHole");
    plugin.DisplayAffix.Add(MonsterAffix.Illusionist, "Illusion");
    plugin.DisplayAffix.Add(MonsterAffix.Juggernaut, "Jugger");
    plugin.DisplayAffix.Add(MonsterAffix.Waller, "Waller");
    plugin.DisplayAffix.Add(MonsterAffix.Arcane, "Arcane");
    plugin.DisplayAffix.Add(MonsterAffix.HealthLink, "HealthLink");
    plugin.DisplayAffix.Add(MonsterAffix.Desecrator, "Desec");
    plugin.DisplayAffix.Add(MonsterAffix.Shielding, "Shield");
    plugin.DisplayAffix.Add(MonsterAffix.Molten, "Molten");
    plugin.DisplayAffix.Add(MonsterAffix.FrozenPulse, "Pulse");
    plugin.DisplayAffix.Add(MonsterAffix.Thunderstorm, "Thunder");
    plugin.DisplayAffix.Add(MonsterAffix.FireChains, "Chains");
    plugin.DisplayAffix.Add(MonsterAffix.Teleporter, "Teleport");
    plugin.DisplayAffix.Add(MonsterAffix.Mortar, "Mortar");
    plugin.DisplayAffix.Add(MonsterAffix.Horde, "Horde");
    } );
    }

    }

    }

    but then i got 3 exceptions:

    2019.04.19 19:46:42.488 19.3.26.0 error while initializing plugins
    2019.04.19 19:46:42.491 19.3.26.0 C:\Users\Shadow\Desktop\Diablo 3\Plugins\User\PluginEnablerOrDisablerPlugin.cs(29,7) : error CS1003: Syntax error, '(' expected
    2019.04.19 19:46:42.494 19.3.26.0 C:\Users\Shadow\Desktop\Diablo 3\Plugins\User\PluginEnablerOrDisablerPlugin.cs(29,27) : error CS1026: ) expected

    thank you in advance

Page 1 of 2 12 LastLast

Similar Threads

  1. [v7.2] [INTERNATIONAL] [glq] MonsterRiftProgressionPlugin
    By SeaDragon in forum TurboHUD Community Plugins
    Replies: 23
    Last Post: 09-07-2021, 04:46 AM
  2. [V7.2][International][Grischu] Override for InventoryAndStashPlugin.cs
    By Grischu in forum TurboHUD Community Plugins
    Replies: 27
    Last Post: 05-21-2019, 08:32 PM
  3. [v7.2] [INTERNATIONAL] [Jack] ItemDropSoundAlertPlugin
    By JackCeparou in forum TurboHUD Community Plugins
    Replies: 22
    Last Post: 07-17-2017, 08:27 PM
  4. [V7.2][International][Grischu] Buffstatistics
    By Grischu in forum TurboHUD Community Plugins
    Replies: 20
    Last Post: 04-05-2017, 02:27 AM
All times are GMT -5. The time now is 06:37 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