Exceptions and updating menu

User Tag List

Results 1 to 8 of 8
  1. #1
    Silverguy45's Avatar Member
    Reputation
    1
    Join Date
    Aug 2019
    Posts
    6
    Thanks G/R
    4/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Exceptions and updating

    Couple of questions.

    When Turbohud is updated how do I update it without losing all my current settings?

    I am getting exceptions when I add
    Hud.GetPlugin<OriginalSkillBarPlugin>().SkillPainter.EnableSkillDpsBar = false;
    Hud.GetPlugin<OriginalSkillBarPlugin>().SkillPainter.EnableDetailedDpsHint = false;

    to the "PluginEnablerOrDisablerPlugin" to disable the DPS icons that appear around skills on the skillbar

    2019.08.19 19:29:37.684 19.8.6.0 error while initializing plugins
    2019.08.19 19:29:37.685 19.8.6.0 E:\THUD\Plugins\User\PluginEnablerOrDisablerPlugin.cs(49,37) : error CS0116: A namespace cannot directly contain members such as fields or methods
    2019.08.19 19:29:37.685 19.8.6.0 E:\THUD\Plugins\User\PluginEnablerOrDisablerPlugin.cs(49,39) : error CS8124: Tuple must contain at least two elements.
    2019.08.19 19:29:37.685 19.8.6.0 E:\THUD\Plugins\User\PluginEnablerOrDisablerPlugin.cs(49,40) : error CS1022: Type or namespace definition, or end-of-file expected
    2019.08.19 19:29:37.685 19.8.6.0 E:\THUD\Plugins\User\PluginEnablerOrDisablerPlugin.cs(49,54) : error CS0116: A namespace cannot directly contain members such as fields or methods
    2019.08.19 19:29:37.685 19.8.6.0 E:\THUD\Plugins\User\PluginEnablerOrDisablerPlugin.cs(49,72) : error CS1022: Type or namespace definition, or end-of-file expected
    2019.08.19 19:29:37.685 19.8.6.0 E:\THUD\Plugins\User\PluginEnablerOrDisablerPlugin.cs(50,37) : error CS0116: A namespace cannot directly contain members such as fields or methods
    2019.08.19 19:29:37.685 19.8.6.0 E:\THUD\Plugins\User\PluginEnablerOrDisablerPlugin.cs(50,39) : error CS8124: Tuple must contain at least two elements.
    2019.08.19 19:29:37.685 19.8.6.0 E:\THUD\Plugins\User\PluginEnablerOrDisablerPlugin.cs(50,40) : error CS1022: Type or namespace definition, or end-of-file expected
    2019.08.19 19:29:37.685 19.8.6.0 E:\THUD\Plugins\User\PluginEnablerOrDisablerPlugin.cs(50,54) : error CS0116: A namespace cannot directly contain members such as fields or methods
    2019.08.19 19:29:37.685 19.8.6.0 E:\THUD\Plugins\User\PluginEnablerOrDisablerPlugin.cs(50,76) : error CS1022: Type or namespace definition, or end-of-file expected

    Exceptions and updating
  2. #2
    JarJarD3's Avatar Contributor
    Reputation
    106
    Join Date
    Oct 2017
    Posts
    395
    Thanks G/R
    41/101
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    1 Thread(s)
    I works for me, the prob is elsewhere in your PluginEnablerOrDisablerPlugin.cs.
    Show the whole file if you need help.

  3. Thanks Silverguy45 (1 members gave Thanks to JarJarD3 for this useful post)
  4. #3
    RNN's Avatar Legendary
    Reputation
    875
    Join Date
    Sep 2018
    Posts
    1,150
    Thanks G/R
    108/837
    Trade Feedback
    0 (0%)
    Mentioned
    15 Post(s)
    Tagged
    0 Thread(s)
    To update it is advisable to decompress the .zip of the TH into a newly created folder and then copy the contents of the "Plugins" folder of the old TH, omitting the "Default" folder (important), to the "Plugins" folder of the new TH. These steps are usually enough, but it depends on whether you have made other configuration changes, such as language.
    Those lines that you have written do not seem to be wrong, it seems to me that the problem comes from the fact that you have inserted them in a bad place.

    Code:
    	public void Customize()
    	{
    		......
    		........
    		...........
    
    		here your code
    
    	}
    To edit the file I recommend using Notepad++
    And associate the .cs extension with the notepad ++

    Last edited by RNN; 08-20-2019 at 08:18 AM.

  5. Thanks afrojax, Silverguy45, ancientegs (3 members gave Thanks to RNN for this useful post)
  6. #4
    Silverguy45's Avatar Member
    Reputation
    1
    Join Date
    Aug 2019
    Posts
    6
    Thanks G/R
    4/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by RNN View Post
    To update it is advisable to decompress the .zip of the TH into a newly created folder and then copy the contents of the "Plugins" folder of the old TH, omitting the "Default" folder (important), to the "Plugins" folder of the new TH. These steps are usually enough, but it depends on whether you have made other configuration changes, such as language.
    Those lines that you have written do not seem to be wrong, it seems to me that the problem comes from the fact that you have inserted them in a bad place.

    Code:
    	public void Customize()
    	{
    		......
    		........
    		...........
    
    		here your code
    
    	}
    To edit the file I recommend using Notepad++
    And associate the .cs extension with the notepad ++

    Thank you for the reply. I have placed the lines as follows below. I haven't been able to test to see if it would work yet


    Attached Thumbnails Attached Thumbnails Exceptions and updating-capture-png  

  7. #5
    BeeAntOS's Avatar Active Member
    Reputation
    30
    Join Date
    Oct 2017
    Posts
    119
    Thanks G/R
    254/28
    Trade Feedback
    0 (0%)
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Efficient sample of the content of "PluginEnablerOrDisablerPlugin.cs" file for your minimum requirements:

    Important Note!: that file's extension must be ".cs", not ".txt"

    Code:
    //using SharpDX.DirectInput;
    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);
    
                //Order = 90000;
            }
    
            public void Customize()
            {
                Hud.SceneReveal.MinimapEnabled = true;
                //Hud.SceneReveal.MinimapOpacity = 50;
                Hud.SceneReveal.MinimapClip = true;
    
                Hud.SceneReveal.MapEnabled = true;
                //Hud.SceneReveal.MapOpacity = 50;
    
                Hud.SceneReveal.DisplaySceneBorder = false;
    
    
                Hud.RunOnPlugin<InventoryAndStashPlugin>(plugin =>
                {
                    plugin.Enabled = true;
    
                    plugin.LooksGoodDisplayEnabled = false;        // GREEN corner marker for KEEPing
                    plugin.NotGoodDisplayEnabled = false;          // Displaying of SELL-Darkening
                    plugin.DefinitelyBadDisplayEnabled = false;    // RED corner marker for SELLing
    
                    plugin.HoradricCacheEnabled = true;
                    plugin.CanCubedEnabled = true;
    
                    plugin.AncientRankEnabled = true;
                    plugin.CaldesannRankEnabled = true;
                    plugin.SocketedLegendaryGemRankEnabled = true;
                });
    
                // range for "Strength in Numbers" buff in multiplayer games
                Hud.TogglePlugin<MultiplayerExperienceRangePlugin>(true);
    
                Hud.RunOnPlugin<OriginalSkillBarPlugin>(plugin =>
                {
                    plugin.Enabled = true;
    
                    plugin.SkillPainter.EnableSkillDpsBar = false;
                    plugin.SkillPainter.EnableDetailedDpsHint = false;
                });
    
                // Takes a auto-ScreenShot when earned each new Paragon!..
                Hud.TogglePlugin<ParagonCapturePlugin>(false);    // DISABLED
    
            }
        }
    }
    Last edited by BeeAntOS; 09-23-2019 at 12:44 PM. Reason: Disabled; directive of "Order = 90000;"
    "When you reach the top, get ready to drop!"

  8. Thanks Silverguy45 (1 members gave Thanks to BeeAntOS for this useful post)
  9. #6
    Silverguy45's Avatar Member
    Reputation
    1
    Join Date
    Aug 2019
    Posts
    6
    Thanks G/R
    4/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Alright I was able to update the file and change where I put the lines. I am down to 2 exceptions now. Can someone confirm if I have the lines in the correct spot?



    Code:
    // ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    // *.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 RevealConfigurationExamplePlugin : BasePlugin, ICustomizer
        {
    
            public RevealConfigurationExamplePlugin()
            {
                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()
            {
                Hud.SceneReveal.MinimapClip = false;
    	{
                Hud.GetPlugin<OriginalSkillBarPlugin>().SkillPainter.EnableSkillDpsBar = false;
                Hud.GetPlugin<OriginalSkillBarPlugin>().SkillPainter.EnableDetailedDpsHint = false;
            }
    
        }
    
    }

  10. #7
    RNN's Avatar Legendary
    Reputation
    875
    Join Date
    Sep 2018
    Posts
    1,150
    Thanks G/R
    108/837
    Trade Feedback
    0 (0%)
    Mentioned
    15 Post(s)
    Tagged
    0 Thread(s)
    Code:
    // ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    // *.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 RevealConfigurationExamplePlugin : BasePlugin, ICustomizer
        {
    
            public RevealConfigurationExamplePlugin()
            {
                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()
            {
                Hud.SceneReveal.MinimapClip = false;
    	{
                Hud.GetPlugin<OriginalSkillBarPlugin>().SkillPainter.EnableSkillDpsBar = false;
                Hud.GetPlugin<OriginalSkillBarPlugin>().SkillPainter.EnableDetailedDpsHint = false;
            }
    
        }
    
    }
    the "{" red you must remove it . You just have to do that to make it work.

    the "{" and "}" are used to delimit instruction blocks, your code must be between the two green
    Last edited by RNN; 08-21-2019 at 07:52 PM.

  11. Thanks Silverguy45 (1 members gave Thanks to RNN for this useful post)
  12. #8
    Silverguy45's Avatar Member
    Reputation
    1
    Join Date
    Aug 2019
    Posts
    6
    Thanks G/R
    4/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by RNN View Post
    Code:
    // ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    // *.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 RevealConfigurationExamplePlugin : BasePlugin, ICustomizer
        {
    
            public RevealConfigurationExamplePlugin()
            {
                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()
            {
                Hud.SceneReveal.MinimapClip = false;
    	{
                Hud.GetPlugin<OriginalSkillBarPlugin>().SkillPainter.EnableSkillDpsBar = false;
                Hud.GetPlugin<OriginalSkillBarPlugin>().SkillPainter.EnableDetailedDpsHint = false;
            }
    
        }
    
    }
    the "{" red you must remove it . You just have to do that to make it work.

    the "{" and "}" are used to delimit instruction blocks, your code must be between the two green
    That solved it thanks for your help and explaining, makes sense now

Similar Threads

  1. How to download and update addons when curse is down, with wowmatrix
    By Stans Dad in forum World of Warcraft Guides
    Replies: 27
    Last Post: 06-22-2011, 06:56 PM
  2. Good and Updated: Guides Collection
    By Edge in forum World of Warcraft Guides
    Replies: 44
    Last Post: 09-14-2008, 02:51 PM
  3. Replies: 0
    Last Post: 04-14-2008, 05:43 PM
  4. [Show off] look at my new and updated sig.
    By shadowste in forum Art & Graphic Design
    Replies: 7
    Last Post: 03-31-2008, 12:56 PM
All times are GMT -5. The time now is 03:53 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search