Jump to content
  • 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

    Avvi

    Posted (edited)

     

    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
    Avvi

    Posted

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

    Droidz

    Posted

    Hello, I have tested and seem to works, he return party members (without your character). Do you have try to disable your wow addons?

    Avvi

    Posted

    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?

    Avvi

    Posted

    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.

    Droidz

    Posted

    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?

    Avvi

    Posted

    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. 

    Avvi

    Posted

    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.



    Create an account or sign in to comment

    You need to be a member in order to leave a comment

    Create an account

    Sign up for a new account in our community. It's easy!

    Register a new account

    Sign in

    Already have an account? Sign in here.

    Sign In Now

×
×
  • Create New...