Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Arena frames #7994

Closed
Tiquihit opened this issue Oct 6, 2012 · 54 comments
Closed

Arena frames #7994

Tiquihit opened this issue Oct 6, 2012 · 54 comments
Assignees

Comments

@Tiquihit
Copy link

Tiquihit commented Oct 6, 2012

When you use addons like Gladius and enter to an arena before your teammates, they appear in Gladius like they were your enemies. Also happens with blizzard arena frames.

Same problem --> http://code.google.com/p/trinitycore/issues/detail?id=582&sort=-id&colspec=ID%20Type

Regards!

Trinity rev. 2012-10-05 23:31:16 +0200 (ca55807+) (Unix, Release)

@Tiquihit
Copy link
Author

Tiquihit commented Oct 9, 2012

http://i46.tinypic.com/2qu56hu.png Beginning of the arena. I entered after my partner.

@Xencha7
Copy link

Xencha7 commented Oct 9, 2012

Confirm.

@garyfisher
Copy link

Confirm!

Core: a664a35

TDB: TDB 335.49+

@Tiquihit
Copy link
Author

any news? :D

@snehurka324
Copy link

Confirm d2ba73d

@frostmourne
Copy link

may be related to this
ddf494d

@garyfisher
Copy link

Confirm!

Core: 69377bc

TDB: TDB 335.49+

@alesete69
Copy link

Nothing more related to this topic?

@Tiquihit
Copy link
Author

Tiquihit commented Nov 8, 2012

be patient :')

@saqirmdev
Copy link

Confirmed still bugged

@cover25
Copy link

cover25 commented Nov 9, 2012

Confirm on 4e22731+

@ghost ghost assigned xurxogr Nov 10, 2012
@saqirmdev
Copy link

it is Critical, cause a big lags in arenas :-O still bugged

@Anthen
Copy link

Anthen commented Nov 15, 2012

Confirmed!

@xurxogr
Copy link
Contributor

xurxogr commented Nov 21, 2012

I managed to reproduce it (happensa to first member joining) but totally lost about the reason. Been checking the code and i don't find why it happens

@gpascualg
Copy link
Contributor

As @lehtola (I'm not sure his github name is this) said yesterday on the IRC:
On the 4.3.4 branch there's a commit about fixing arenas. Reading it takes you here:

@@ -1212,6 +1233,9 @@ void Battleground::AddPlayer(Player* player)
             player->ResetAllPowers();
         }  

+        // Correctly display EnemyUnitFrame
+        player->SetByteValue(PLAYER_BYTES_3, 3, player->GetBGTeam());

         WorldPacket data(SMSG_ARENA_OPPONENT_UPDATE, 8);
         data << uint64(player->GetGUID());
         SendPacketToTeam(team, &data, player, false);

Which may indeed fix the arena frames. Can someone test on 3.3.5a and see if we can PR it?

@iconskater
Copy link

Still getting bugged

@lehtola
Copy link

lehtola commented Nov 22, 2012

You misunderstood me.
I'm talked about 172c5f0 this commit because it is totally shit. I didn't know why that guy just merged random commits withouts any tests or sniffs. Almost all wrong there.
So, all what you need it is send uiframe packet at the right time.

@tuxity
Copy link
Contributor

tuxity commented Nov 22, 2012

@lehtola Stop troll please, It's all my work with help of other devs and it works, so if aren't agree please send us your work if you can do better. Btw 4.3.4 is in developpement, nothing finished yet.

@lehtola
Copy link

lehtola commented Nov 22, 2012

Man, srsly what are u talking about? If you can't understand that your changes in bgstatus packet and timer are wrong I dont know what you've forgotten here.
Actually why should I upload my fix? I'm not trinity developer, sorry. I simply pointed out a mistake. It is your choice to fix this shit or not. God, trinity have a lot of sniffs (Subv said about 5gb), use it!

@Shauren
Copy link
Member

Shauren commented Nov 22, 2012

@lehtola with this attitude you can simply get the fuck out of here.

@iconskater
Copy link

it's not even working so stop this please. And get a real fix.

@lehtola
Copy link

lehtola commented Nov 22, 2012

@Shauren I have a great attitude to the Trinity.
But why should I develop code instead of the developers?
I asked for help, was refused, fixed phase bug after and share my fix. So, now I have no finished code because I'm not working on it.
Just pointed at mistake and was called troll, haha

@tuxity
Copy link
Contributor

tuxity commented Nov 22, 2012

@lehtola "I'm talked about 172c5f0 this commit because it is totally shit. I didn't know why that guy just merged random commits withouts any tests or sniffs. Almost all wrong there. " This is pointing an error this ? Ok.

@gpascualg
Copy link
Contributor

Aaam wow i just misunderstood him, I though he said it was working. There's no point in starting a flame war, it's not even related to the issue.
Sorry about this.

@sinakal
Copy link

sinakal commented Nov 25, 2012

bump..

any news from this?

this is really annoying..

@tuxity
Copy link
Contributor

tuxity commented Nov 25, 2012

The opcode SMSG_ARENA_OPPONENT_UPDATE should be send at match start and not in AddPlayer()

@iconskater
Copy link

Thanks I'll add it and give the code here.

@tuxity
Copy link
Contributor

tuxity commented Nov 26, 2012

diff please ?

@iconskater
Copy link

Removed here:

    if (isArena())
    {
        player->RemoveArenaEnchantments(TEMP_ENCHANTMENT_SLOT);
        if (team == ALLIANCE)                                // gold
        {
            if (player->GetTeam() == HORDE)
                player->CastSpell(player, SPELL_HORDE_GOLD_FLAG, true);
            else
                player->CastSpell(player, SPELL_ALLIANCE_GOLD_FLAG, true);
        }
        else                                                // green
        {
            if (player->GetTeam() == HORDE)
                player->CastSpell(player, SPELL_HORDE_GREEN_FLAG, true);
            else
                player->CastSpell(player, SPELL_ALLIANCE_GREEN_FLAG, true);
        }

        player->DestroyConjuredItems(true);
        player->UnsummonPetTemporaryIfAny();

        if (GetStatus() == STATUS_WAIT_JOIN)                 // not started yet
        {
            player->SetCommandStatusOn(CHEAT_CASTTIME);
            player->CastSpell(player, SPELL_ARENA_PREPARATION, true);
            player->ResetAllPowers();
        }
    REMOVED HERE
    WorldPacket data(SMSG_ARENA_OPPONENT_UPDATE, 8);
    data << uint64(player->GetGUID());
    SendPacketToTeam(team, &data, player, false);
    }
    else
    {
        if (GetStatus() == STATUS_WAIT_JOIN)                 // not started yet
            player->CastSpell(player, SPELL_PREPARATION, true);   // reduces all mana cost of spells.
    }

Added here:

     for (BattlegroundPlayerMap::const_iterator itr = GetPlayers().begin(); itr != GetPlayers().end(); ++itr)
            if (Player* player = ObjectAccessor::FindPlayer(itr->first))
            {
                ADDED HERE
                WorldPacket data(SMSG_ARENA_OPPONENT_UPDATE, 8);
                data << uint64(player->GetGUID());
                SendPacketToTeam(team, &data, player, false);
                // BG Status packet

@iconskater
Copy link

Even if you completly remove the code from here it still gets bugged

@tuxity
Copy link
Contributor

tuxity commented Nov 26, 2012

I check with @spp and ... he's right, this opcode isn't really needed, but the place is good.

Maybe we have to add something like that:
player->SetByteValue(PLAYER_BYTES_3, 3, player->GetBGTeam());
as I've done in 4.3.4

As far as I remember, I've the same problem for ally players ( not sure)

@sinakal
Copy link

sinakal commented Nov 26, 2012

player->SetByteValue(PLAYER_BYTES_3, 3, player->GetBGTeam());

not helped.. its still bugged

@tuxity
Copy link
Contributor

tuxity commented Nov 26, 2012

@iconskater no

@sinakal
Copy link

sinakal commented Nov 28, 2012

@tuxity

any news for this fix?

@digz6666
Copy link

digz6666 commented Dec 4, 2012

Confirmed!

Revision: a7d8a65
Database: TDB.335.49 (with latest updates)

@Pumpush
Copy link

Pumpush commented Dec 5, 2012

Confirmed!

@luciolis
Copy link

Confirmed.

@OPCODE187
Copy link

CONFIRMED!

@gereltod-g
Copy link

Still happening.

@saqirmdev
Copy link

Still bugged

@Array-0
Copy link

Array-0 commented Jan 7, 2013

Confirmed!

Critical!!

@3kids
Copy link

3kids commented Jan 10, 2013

http://i.imgur.com/mtkAo.jpg will fix it, only makes sense that way anyway imo
BattlegroundMgr.cpp

@digz6666
Copy link

@3kids Thanks for the fix, I will try :)

@hankxemn
Copy link

Works the fix?

@saqirmdev
Copy link

@3kids create a Gist plz

@digz6666
Copy link

@kaelima Still not working, no custom patches applied.
@3kids Haven't tried the patch.

@snehurka324
Copy link

Confirmed,Not working
b138d7f

@digz6666
Copy link

Not working.
Revision: a05e78b

@eilwin
Copy link

eilwin commented Jan 20, 2013

Working partially on a261231
Now only pets bug the partner interface (owner interface works fine), and the rest it's fine

darvid pushed a commit to darvid/TrinityCore that referenced this issue Jan 27, 2013
@digz6666
Copy link

Issue is back at revision: d1964f6

@magoxxx
Copy link

magoxxx commented May 3, 2013

confirm, frame is bugged in rev: 26efbac

@FALL1N1
Copy link

FALL1N1 commented Jul 9, 2013

Reopen this, confirm at: 5a6eacf

raczman pushed a commit to raczman/TrinityCore that referenced this issue Apr 20, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests