PoEHUD Overlay Updated menu

User Tag List

Page 366 of 461 FirstFirst ... 266316362363364365366367368369370416 ... LastLast
Results 5,476 to 5,490 of 6913
  1. #5476
    GameHelper's Avatar ★ Elder ★ CoreCoins Purchaser
    Reputation
    3015
    Join Date
    Jun 2015
    Posts
    3,325
    Thanks G/R
    507/2700
    Trade Feedback
    0 (0%)
    Mentioned
    92 Post(s)
    Tagged
    2 Thread(s)
    Code:
                GameController.Game.IngameState.ServerData.StashPanel.IsVisible == true
    If I did not reply to you, it mean the question you are asking is stupid.

    PoEHUD Overlay Updated
  2. Thanks Preaches, toadskin (2 members gave Thanks to GameHelper for this useful post)
  3. #5477
    TehCheat's Avatar ★ Elder ★
    Reputation
    2564
    Join Date
    Oct 2013
    Posts
    1,900
    Thanks G/R
    349/2266
    Trade Feedback
    5 (100%)
    Mentioned
    32 Post(s)
    Tagged
    1 Thread(s)
    Originally Posted by Preaches View Post
    I'm trying to make a stash sorter, and I'm having a hard time finding the best way to detect whether or not the stash is opened, right now I'm using OpenLeftPanel.IsVisible, but that doesn't seem to have the purpose I thought it would have.

    Code:
    public override void Render()
    {
        if (!GameController.Game.IngameState.IngameUi.OpenLeftPanel.IsVisible &&
            !GameController.Game.IngameState.IngameUi.InventoryPanel.IsVisible &&
            !GameController.Area.CurrentArea.IsHideout &&
            !GameController.Area.CurrentArea.IsTown)
        {
            return;
        }
    
        Graphics.DrawText("VI VON ZULUL", 50, new Vector2(500, 500), Color.AliceBlue, FontDrawFlags.Center);
    }
    With the following code the text is drawn to the screen, while in a city and with the inventory opened but not with the stash open! Which means that

    Code:
    !GameController.Game.IngameState.IngameUi.OpenLeftPanel.IsVisible == true
    How would one go about doing this in a smarter way?


    Attachment 52772
    Your logic is all kinds of wonky. Not in town and not in hideout should be grouped together with an or operator, or else when you're in town and not in your hideout you won't return, and you'll do the draw. So like this:
    Code:
    public override void Render()
    {
        if (!GameController.Game.IngameState.IngameUi.OpenLeftPanel.IsVisible &&
            !GameController.Game.IngameState.IngameUi.InventoryPanel.IsVisible &&
            (!GameController.Area.CurrentArea.IsHideout ||
            !GameController.Area.CurrentArea.IsTown))
        {
            return;
        }
    
        Graphics.DrawText("VI VON ZULUL", 50, new Vector2(500, 500), Color.AliceBlue, FontDrawFlags.Center);
    }
    But as zaafar said, just use the StashPanel. That really should be in UIElements, but some of those things live in both UIElements and ServerData and have never gotten normalized to just being in UIElements.

  4. Thanks Preaches, toadskin (2 members gave Thanks to TehCheat for this useful post)
  5. #5478
    Preaches's Avatar Active Member
    Reputation
    78
    Join Date
    Oct 2013
    Posts
    79
    Thanks G/R
    11/57
    Trade Feedback
    1 (100%)
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    @TehCheat Thanks, I thought I was too experienced of a programmer to make that kind of mistake, woops.

  6. #5479
    Preaches's Avatar Active Member
    Reputation
    78
    Join Date
    Oct 2013
    Posts
    79
    Thanks G/R
    11/57
    Trade Feedback
    1 (100%)
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)

    Getting stash-tab names.

    Another day, another question

    Code:
    using PoeHUD.Plugins;
    using SharpDX;
    
    namespace StashManager
    {
        public class StashManager : BasePlugin
        {
            public override void Render()
            {
                if (!GameController.Game.IngameState.ServerData.StashPanel.IsVisible)
                {
                    return;
                }
    
                var stash = GameController.Game.IngameState.ServerData.StashPanel;
    
                /* 
                 * Not sure whether or not getStashName(tabIndex) is 0 indexed (it probably is), so starting from index 1.
                 * stash.TotalStashes gives the expected outcome (number of stash-tabs).
                 * 
                 * By looking at the declaration of getStashName, we can see the following:
                 * 
                 * public string getStashName(int number)
                 * {
                 *     if ((long) number >= this.TotalStashes)
                 *         return string.Empty;
                 * 
                 *     long address = this.StashListPanel.Children[2].Children[number].Address;
                 *     string str = this.M.ReadStringU(this.M.ReadLong(address + 1680L, 1488L), 256, 1 != 0);
                 *     if (str.Length == 0)
                 *        return this.M.ReadStringU(this.M.ReadLong(address + 1680L) + 1488L, 256, true);
                 * 
                 *     return str;
                 * }
                 */
                for (var i = 1; i < (int) stash.TotalStashes; i++)
                {
                    Graphics.DrawText(stash.getStashName(i), 50, new Vector2(20 * i, 500), Color.AliceBlue);
                }
            }
        }
    }
    I tested each segment of the code, but no matter what parameter I specify for getStashName(int number) I get an index out of bounds exception.
    From ErrorLog.txt:
    Code:
    Method error: Render : System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.

    How would one go about getting stashNames or Inventorylist from a stash-tab?
    Last edited by Preaches; 05-02-2017 at 09:53 AM.

  7. #5480
    StevenT's Avatar Member
    Reputation
    1
    Join Date
    Feb 2017
    Posts
    6
    Thanks G/R
    2/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    hi, this tool can atlert detonate dead mobs?

  8. #5481
    TehCheat's Avatar ★ Elder ★
    Reputation
    2564
    Join Date
    Oct 2013
    Posts
    1,900
    Thanks G/R
    349/2266
    Trade Feedback
    5 (100%)
    Mentioned
    32 Post(s)
    Tagged
    1 Thread(s)
    Originally Posted by StevenT View Post
    hi, this tool can atlert detonate dead mobs?
    Not currently. It would have to be altered to handle mob skills.

  9. Thanks StevenT (1 members gave Thanks to TehCheat for this useful post)
  10. #5482
    TehCheat's Avatar ★ Elder ★
    Reputation
    2564
    Join Date
    Oct 2013
    Posts
    1,900
    Thanks G/R
    349/2266
    Trade Feedback
    5 (100%)
    Mentioned
    32 Post(s)
    Tagged
    1 Thread(s)
    Originally Posted by Preaches View Post
    Another day, another question

    How would one go about getting stashNames or Inventorylist from a stash-tab?
    I'd debug it to see when it's failing. You could pop a messagebox up with the value of i and see when it fails.

  11. Thanks toadskin (1 members gave Thanks to TehCheat for this useful post)
  12. #5483
    GameHelper's Avatar ★ Elder ★ CoreCoins Purchaser
    Reputation
    3015
    Join Date
    Jun 2015
    Posts
    3,325
    Thanks G/R
    507/2700
    Trade Feedback
    0 (0%)
    Mentioned
    92 Post(s)
    Tagged
    2 Thread(s)
    Originally Posted by Preaches View Post
    Another day, another question
    How would one go about getting stashNames or Inventorylist from a stash-tab?
    When using this, your stashe must be opened.
    Also, it start from 0 not 1.
    Also, open all stashes at least once so that poe client can get stash data from the server.
    If I did not reply to you, it mean the question you are asking is stupid.

  13. Thanks toadskin (1 members gave Thanks to GameHelper for this useful post)
  14. #5484
    TehCheat's Avatar ★ Elder ★
    Reputation
    2564
    Join Date
    Oct 2013
    Posts
    1,900
    Thanks G/R
    349/2266
    Trade Feedback
    5 (100%)
    Mentioned
    32 Post(s)
    Tagged
    1 Thread(s)
    Originally Posted by zaafar View Post
    When using this, your stashe must be opened.
    Also, it start from 0 not 1.
    Also, open all stashes at least once so that poe client can get stash data from the server.
    I had a feeling that's what he was running into, which is why I suggested debugging it one tab at a time. It should load the first 5 tabs automatically when you go in hideout/town and the rest have to manually be opened or the data isn't available. I don't know why I'm telling you this, you know it already.

  15. #5485
    TehCheat's Avatar ★ Elder ★
    Reputation
    2564
    Join Date
    Oct 2013
    Posts
    1,900
    Thanks G/R
    349/2266
    Trade Feedback
    5 (100%)
    Mentioned
    32 Post(s)
    Tagged
    1 Thread(s)
    Originally Posted by Evilwookie View Post
    anyone else just get banned?
    Seems to just be you. Any info on what 3rd party tools you were using and behavior that you were using. Mind you, it could have been from the past, so anything recent would be enlightening.

  16. #5486
    GameHelper's Avatar ★ Elder ★ CoreCoins Purchaser
    Reputation
    3015
    Join Date
    Jun 2015
    Posts
    3,325
    Thanks G/R
    507/2700
    Trade Feedback
    0 (0%)
    Mentioned
    92 Post(s)
    Tagged
    2 Thread(s)
    Originally Posted by TehCheat View Post
    I had a feeling that's what he was running into, which is why I suggested debugging it one tab at a time. It should load the first 5 tabs automatically when you go in hideout/town and the rest have to manually be opened or the data isn't available. I don't know why I'm telling you this, you know it already.
    I think they have changed the behavior, now it doesn't load first 5 tabs when you go in HO/Town.
    It only load when you open it. To test this behavior, download some big size movie/torrent or do speed test run and during that time open the stash, u will feel the delay.
    If I did not reply to you, it mean the question you are asking is stupid.

  17. #5487
    Preaches's Avatar Active Member
    Reputation
    78
    Join Date
    Oct 2013
    Posts
    79
    Thanks G/R
    11/57
    Trade Feedback
    1 (100%)
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)

    Further testing.

    Alright, so I took the suggestion to heart, and did some further testing and came to the conclusion that getStashInventory works as intended, but getStashName does not.

    Each of the following tests is called from the Render() function.
    Code:
    public override void Render()
    {
        if (!GameController.Game.IngameState.ServerData.StashPanel.IsVisible)
        {
            return;
        }
    
        // called function from here.
    }
    getStashInventory test.
    Code:
    private void ShowItemCountOfEachNonNullTab()
    {
        var stashPanel = GameController.Game.IngameState.ServerData.StashPanel;
    
        var numberOfStashes = (int) stashPanel.TotalStashes; // Why is this not an int? :thinking:
        var content = "";
        for (var i = 0; i < numberOfStashes; i++)
        {
            var stashTab = stashPanel.getStashInventory(i);
            if (stashTab == null)
            {
                content += "stash tab no. " + i + ", is null.\n";
                continue;
            }
                    var itemCount = stashTab.ItemCount;
                    content += "stash tab no. " + i + ", has " + itemCount + " items in it.\n";
         }
    
         MessageBox.Show(content);
    }
    Result was for the most part as expected given @TehCheat and @Zafaar's comments.

    Notes:
    If you visit a new stash (eg. travel to a new town) the memoryaddresses no longer contain the information (getStashPanel from 0 to TotalStashes returns null) and you would have to go through each tab again.

    Tab information is stored into memory one at a time (as the client views the tab, not 5):
    PoEHUD Overlay Updated-ctghrcn-png
    tested by traveling to a new town and opening the stash

    Side note: The first time a stash is opened in a new place, with the code above, even the first tab displays as null, but this is due to not having a delay, by simply waiting a second, and requesting the information again without doing anything in game, we get the correct result from the first stash tab (not null).

    getStashName test.
    Code:
    private void ShowItemCountOfEachNonNullTab()
    {
        var stashPanel = GameController.Game.IngameState.ServerData.StashPanel;
        var numberOfStashes = (int) stashPanel.TotalStashes;
        var content = "";
    
        for (var i = 0; i < numberOfStashes; i++)
        {
            var stashTab = stashPanel.getStashInventory(i);
        
            if (stashTab == null)
            {
                content += "stash tab no. " + i + ", is null.\n";
                continue;
            }
        
            var itemCount = stashTab.ItemCount;
            content += "stash tab no. " + i + ", has " + itemCount + " items in it.\n";
        }
    
        MessageBox.Show(content);
    }
    Messagebox never get's called here, since we get the following error for each value of i:
    Code:
    Method error: Render : System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
    But since we are using the same index range as in the getStashInventory test this is odd, and I think it should get looken into.


    UPDATE

    Made a new test, that kinda works:
    PoEHUD Overlay Updated-9bwyim2-png

    The code is checking if all stashes are not null, if they are, it views them all by pressing right keyboard arrow and then left back to it's original position, and then the following is executed:
    Code:
    for (var i = 0; i < stashPanel.TotalStashes; i++)
    {
        var titleElement = stashPanel.getStashTitleElement(stashPanel.getStashName(i));
        var position = titleElement.GetClientRect();
        Graphics.DrawText(stashPanel.getStashName(i), 20, new Vector2(position.X, position.Y));
    }

    UPDATE 2
    Code works on Zafaar's end, dunno.
    Last edited by Preaches; 05-04-2017 at 03:52 AM.

  18. Thanks toadskin (1 members gave Thanks to Preaches for this useful post)
  19. #5488
    Evilwookie's Avatar Member
    Reputation
    3
    Join Date
    Feb 2009
    Posts
    163
    Thanks G/R
    1/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by TehCheat View Post
    Seems to just be you. Any info on what 3rd party tools you were using and behavior that you were using. Mind you, it could have been from the past, so anything recent would be enlightening.
    Could it have been my autoclicker usage?

  20. #5489
    GameHelper's Avatar ★ Elder ★ CoreCoins Purchaser
    Reputation
    3015
    Join Date
    Jun 2015
    Posts
    3,325
    Thanks G/R
    507/2700
    Trade Feedback
    0 (0%)
    Mentioned
    92 Post(s)
    Tagged
    2 Thread(s)
    Will look into getStashName function.
    Thx for the research work.
    If I did not reply to you, it mean the question you are asking is stupid.

  21. #5490
    mikilopta's Avatar Member
    Reputation
    2
    Join Date
    Mar 2014
    Posts
    48
    Thanks G/R
    2/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I have problem with itemfilter. Every item is linked as rare or something it shows in right side of screen with my new character i have made. Other characters dont show this and are absolutely fine. What went wrong?

Similar Threads

  1. [Release] PoeHUD - Overlay for Path of Exile
    By Coyl in forum PoE Bots and Programs
    Replies: 1870
    Last Post: 01-27-2015, 02:28 AM
  2. [Tool] Exp per hour overlay (needs offset update)
    By moustache in forum PoE Bots and Programs
    Replies: 15
    Last Post: 11-08-2013, 09:00 PM
  3. Site updates 6/19/2006
    By Matt in forum OC News
    Replies: 1
    Last Post: 06-19-2006, 08:48 AM
  4. Updated(FuxxoZ|WoWGlider)
    By ih8blizz in forum World of Warcraft Bots and Programs
    Replies: 22
    Last Post: 06-16-2006, 09:24 PM
  5. New Update on the Patch!
    By Dwarpy in forum World of Warcraft General
    Replies: 1
    Last Post: 05-22-2006, 12:50 AM
All times are GMT -5. The time now is 04:53 AM. 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