"UiHiddenPlayerSkillBarPlugin.cs"  or " UiHiddenPortraitSkillBarPlugin.cs" menu

User Tag List

Results 1 to 5 of 5
  1. #1
    BiotinTH's Avatar Member
    Reputation
    1
    Join Date
    Jan 2018
    Posts
    7
    Thanks G/R
    12/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    "UiHiddenPlayerSkillBarPlugin.cs" or " UiHiddenPortraitSkillBarPlugin.cs"

    Hello!
    I updated my TH today and now it do not work!!
    like I always do, I did overwrite the new Plugins with the old. But this time there are exceptions :

    2019.03.26 17:52:02.883 19.3.26.0 error while initializing plugins
    2019.03.26 17:52:02.897 19.3.26.0 C:\Users\.....\OneDrive\Desktop\TH\Plugins\Default\SkillBars\UiHiddenPortraitSki llBarPlugin.cs(6,1 : error CS0101: The namespace 'Turbo.Plugins.Default' already contains a definition for 'UiHiddenPlayerSkillBarPlugin'
    2019.03.26 17:52:02.898 19.3.26.0 C:\Users\.....\OneDrive\Desktop\TH\Plugins\Default\SkillBars\UiHiddenPortraitSki llBarPlugin.cs(12,16) : error CS0111: Type 'UiHiddenPlayerSkillBarPlugin' already defines a member called '.ctor' with the same parameter types
    2019.03.26 17:52:02.898 19.3.26.0 C:\Users\.....\OneDrive\Desktop\TH\Plugins\Default\SkillBars\UiHiddenPortraitSki llBarPlugin.cs(17,30) : error CS0111: Type 'UiHiddenPlayerSkillBarPlugin' already defines a member called 'Load' with the same parameter types
    2019.03.26 17:52:02.899 19.3.26.0 C:\Users\.....\OneDrive\Desktop\TH\Plugins\Default\SkillBars\UiHiddenPortraitSki llBarPlugin.cs(31,21) : error CS0111: Type 'UiHiddenPlayerSkillBarPlugin' already defines a member called 'PaintTopInGame' with the same parameter types

    In the old TH there was " UiHiddenPortraitSkillBarPlugin.cs"

    using SharpDX;

    namespace Turbo.Plugins.Default
    {

    public class UiHiddenPortraitSkillBarPlugin : BasePlugin, IInGameTopPainter
    {

    public SkillPainter SkillPainter { get; set; }
    public float Ratio { get; set; }

    public UiHiddenPlayerSkillBarPlugin()
    {
    Enabled = true;
    }

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

    SkillPainter = new SkillPainter(Hud, true)
    {
    TextureOpacity = 1.0f,
    EnableSkillDpsBar = false,
    EnableDetailedDpsHint = false,
    CooldownFont = Hud.Render.CreateFont("arial", 8, 255, 255, 255, 255, true, false, 255, 0, 0, 0, true),
    };
    Ratio = 0.55f;
    }

    public void PaintTopInGame(ClipState clipState)
    {
    if (!Hud.Render.UiHidden) return;
    if (clipState != ClipState.BeforeClip) return;

    var size = 55f / 1200.0f * Hud.Window.Size.Height * Ratio;

    foreach (var player in Hud.Game.Players)
    {
    var portraitRect = player.PortraitUiElement.Rectangle;
    foreach (var skill in player.Powers.CurrentSkills)
    {
    var index = skill.Key <= ActionKey.RightSkill ? (int)skill.Key + 4 : (int)skill.Key - 2;

    var x = portraitRect.Right + size * index;
    var y = portraitRect.Top + portraitRect.Height * 0.21f;

    var rect = new RectangleF(x, y, size, size);

    SkillPainter.Paint(skill, rect);
    }
    }
    }

    }

    }



    in the new TH ther is also "UiHiddenPlayerSkillBarPlugin.cs"


    using SharpDX;

    namespace Turbo.Plugins.Default
    {
    public class UiHiddenPlayerSkillBarPlugin : BasePlugin, IInGameTopPainter
    {
    public SkillPainter SkillPainter { get; set; }
    public float Ratio { get; set; } = 0.55f;

    public UiHiddenPlayerSkillBarPlugin()
    {
    Enabled = true;
    }

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

    SkillPainter = new SkillPainter(Hud, true)
    {
    TextureOpacity = 1.0f,
    EnableSkillDpsBar = false,
    EnableDetailedDpsHint = false,
    CooldownFont = Hud.Render.CreateFont("arial", 8, 255, 255, 255, 255, true, false, 255, 0, 0, 0, true),
    };
    }

    public void PaintTopInGame(ClipState clipState)
    {
    if (!Hud.Render.UiHidden) return;
    if (clipState != ClipState.BeforeClip) return;

    var size = 55f / 1200.0f * Hud.Window.Size.Height * Ratio;

    foreach (var player in Hud.Game.Players)
    {
    var portraitRect = player.PortraitUiElement.Rectangle;
    foreach (var skill in player.Powers.CurrentSkills)
    {
    var index = skill.Key <= ActionKey.RightSkill ? (int)skill.Key + 4 : (int)skill.Key - 2;

    var x = portraitRect.Right + size * index;
    var y = portraitRect.Top + portraitRect.Height * 0.21f;

    var rect = new RectangleF(x, y, size, size);

    SkillPainter.Paint(skill, rect);
    }
    }
    }
    }
    }

    I tried some ways, remove one -no result, remove the other - no result,....

    What can I do?!

    &quot;UiHiddenPlayerSkillBarPlugin.cs&quot;  or &quot; UiHiddenPortraitSkillBarPlugin.cs&quot;
  2. #2
    Ashikaga's Avatar Member
    Reputation
    1
    Join Date
    Apr 2017
    Posts
    8
    Thanks G/R
    11/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Fresh install

  3. #3
    BiotinTH's Avatar Member
    Reputation
    1
    Join Date
    Jan 2018
    Posts
    7
    Thanks G/R
    12/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Ashikaga View Post
    Fresh install
    I DID this!!
    I want it to work with my old Plugins!!

  4. #4
    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)
    if u override the plugin folder with the old one is not a fresh install.

  5. #5
    JackCeparou's Avatar Savvy ? 🐒
    Reputation
    534
    Join Date
    Mar 2017
    Posts
    588
    Thanks G/R
    51/490
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by BiotinTH View Post
    I DID this!!
    I want it to work with my old Plugins!!
    You need to delete the old /Plugins/Default if you want to do that.
    For this specific issue, delete \Plugins\Default\SkillBars\UiHiddenPortraitSkillBarPlugin.cs, it was renamed UiHiddenPlayerSkillBarPlugin.cs some version ago.

    Btw, wrong forum section ;p
    Hide the Rum! --> Default theme customization 101 <--

Similar Threads

  1. Quotes from Steven Write
    By Amedis in forum Community Chat
    Replies: 2
    Last Post: 11-14-2022, 10:26 AM
  2. Replies: 4
    Last Post: 02-25-2019, 08:37 AM
  3. PM or notification when quoted
    By Fadelol in forum Suggestions
    Replies: 2
    Last Post: 08-15-2016, 02:30 PM
  4. [Selling] [EU] Cheap Gold - Always lowest quoted price or lower!
    By EdTheAccountant in forum World of Warcraft Buy Sell Trade
    Replies: 0
    Last Post: 11-29-2015, 11:04 PM
  5. Replies: 2
    Last Post: 09-17-2009, 04:19 PM
All times are GMT -5. The time now is 08:09 AM. 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