Jump to content
This site uses cookies! Learn More

This site uses cookies!

By continuing to use this site, you agree to allow us to store cookies on your computer. :)

  • wManager.Wow.Helpers.Party.GetParty() Broken?


    Avvi
    • Version: All Product: WRobot General Type: Bug Status: Cannot Reproduce

    I think GetParty() is broken for Burning Crusade and possibly Legion? It is not broken in WoTLK, as below snippet works. Running code below always returns 0 members in the group in BC. 

    var party = wManager.Wow.Helpers.Party.GetParty();
    
    Logging.Write("Total members in group: " + party.Count);
    foreach (var members in party)
    {
       Logging.Write("Player name: " + members.name);
    }


     




    User Feedback

    Recommended Comments

     

    Below always returns 0 from wManager.Wow.ObjectManager.ObjectManager.GetObjectByGuid. I think real issue is with wManager.Wow.ObjectManager.ObjectManager.GetObjectByGuid

                    var numofMembers = wManager.Wow.Helpers.Party.GetPartyNumberPlayers();
    
                    if (numofMembers >= 2) {
                        WoWObject objectByGuid = wManager.Wow.ObjectManager.ObjectManager.GetObjectByGuid(wManager.Wow.Helpers.Party.GetMember1GUID());
                        WoWObject objectByGuid2 = wManager.Wow.ObjectManager.ObjectManager.GetObjectByGuid(wManager.Wow.Helpers.Party.GetMember2GUID());
                        WoWObject objectByGuid3 = wManager.Wow.ObjectManager.ObjectManager.GetObjectByGuid(wManager.Wow.Helpers.Party.GetMember3GUID());
                        WoWObject objectByGuid4 = wManager.Wow.ObjectManager.ObjectManager.GetObjectByGuid(wManager.Wow.Helpers.Party.GetMember4GUID());
    
                        Logging.Write(" "+objectByGuid.GetBaseAddress);
                        Logging.Write(" " + objectByGuid2.GetBaseAddress);
                        Logging.Write(" " + objectByGuid3.GetBaseAddress);
                        Logging.Write(" " + objectByGuid4.GetBaseAddress);
    
                    }

     

    Edited by Avvi

    Share this comment


    Link to comment
    Share on other sites

    Correction - The WoTLK version does not work completely.  It seems like sometimes it only returns leaders name, and sometimes it doesn't return anything.

    Share this comment


    Link to comment
    Share on other sites

    No addons are enabled when running the above code. I was able to reproduce this in BC,WoTLK. I have not tried Legion. Can you try Burning Crusade and WoTLK?

    Share this comment


    Link to comment
    Share on other sites
    List<string> partyMembers = new List<string>();
    var numOfMembers = wManager.Wow.Helpers.Party.GetPartyNumberPlayers();
    
    
    for (int i = 1; i < numOfMembers; i++) {
    
        var member = Lua.LuaDoString<List<string>>("return UnitName('party'.." + i + ")");
        Logging.Write(member[0]);
        partyMembers.Add(member[0]);
    }

     

    I wasn't able to get it working, but for anyone interested in a workaround for getting player names in group, the above function should work.

    Share this comment


    Link to comment
    Share on other sites
    1 hour ago, Avvi said:
    List<string> partyMembers = new List<string>();
    var numOfMembers = wManager.Wow.Helpers.Party.GetPartyNumberPlayers();
    
    
    for (int i = 1; i < numOfMembers; i++) {
    
        var member = Lua.LuaDoString<List<string>>("return UnitName('party'.." + i + ")");
        Logging.Write(member[0]);
        partyMembers.Add(member[0]);
    }

     

    I wasn't able to get it working, but for anyone interested in a workaround for getting player names in group, the above function should work.

     

    Quote

    var party = wManager.Wow.Helpers.Party.GetParty();

    Logging.Write("Total members in group: " + party.Count);
    foreach (var members in party)
    {
       Logging.Write("Player name: " + members.Name);
    }

    I have run this code and is works. Party product dont works?

    Share this comment


    Link to comment
    Share on other sites
    Just now, Droidz said:
    var party = wManager.Wow.Helpers.Party.GetParty();
    
    Logging.Write("Total members in group: " + party.Count);
    foreach (var members in party)
    {
       Logging.Write("Player name: " + members.Name);
    }

    I have run this code and is works. Party product dont works?

    I am able to use some funcitons from Party, but the GetParty() funtion isn't working for me. I restarted, re-installed, etc but it doesn't seem to work for me. 

    Share this comment


    Link to comment
    Share on other sites

    I think the real issue with the Party function is the GetObjectByGuid, and not actually the party helper. When i use GetObjectByGuid(wManager.Wow.Helpers.Party.GetMember4GUID()), it doesn't work.

    Share this comment


    Link to comment
    Share on other sites


    Join the conversation

    You can post now and register later. If you have an account, sign in now to post with your account.

    Guest
    Add a comment...

    ×   Pasted as rich text.   Paste as plain text instead

      Only 75 emoji are allowed.

    ×   Your link has been automatically embedded.   Display as a link instead

    ×   Your previous content has been restored.   Clear editor

    ×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...