No names...

08/05/2020 17:21 bashondegek#1
Hi guys,

Working on an upgrade of 5065 to 5079, changed the auth packet etc.
But, most of the things look working or are simple to fix... only issue that i can't find is the names of other players that are not showing...
I think its inside packet 1014, but i'm not sure about it!

Anybody around here that can help me :-)?

Thanks in advance,

Bash.


Ps.
This is the packet at the moment:










Its a Redux V2 ;-)!
Just for learning purposes...

Alright,

Found it out..
The offset of the name value has moved up a bit.

So, here is the edited and working packet.

Code:
 
byte[] data = new byte[107 + packet.Names.Length];//100
            fixed (byte* ptr = data)
            {
                PacketBuilder.AppendHeader(ptr, data.Length, 1014);
                *((uint*)(ptr + 4)) = packet.UID;
                *((uint*)(ptr + 8)) = packet.Lookface;
                *((ClientEffect*)(ptr + 12)) = packet.StatusEffects;
                *((uint*)(ptr + 20)) = packet.GuildID;
                *((byte*)(ptr + 23)) = packet.GuildRank;
                *((uint*) (ptr + 24)) = packet.GarmentType;
                *((uint*)(ptr + 28)) = packet.HelmetType;
                *((uint*)(ptr + 32)) = packet.ArmorType;
                *((uint*)(ptr + 36)) = packet.WeaponRType;
                *((uint*)(ptr + 40)) = packet.WeaponLType;
                *((ushort*)(ptr + 48)) = (ushort)packet.Life;
                *((ushort*)(ptr + 50)) = packet.Level;
                *((ushort*)(ptr + 52)) = packet.PositionX;
                *((ushort*)(ptr + 54)) = packet.PositionY;
                *((ushort*)(ptr + 56)) = packet.Hair;
                *(ptr + 58) = packet.Direction;
                *(ptr + 59) = (byte)packet.Action;
                *(ptr + 60) = packet.RebornCount;
                *((ushort*)(ptr + 62)) = packet.Level;
                *((byte*)(ptr + 84)) = packet.HelmetColor;
                *((byte*)(ptr + 86)) = packet.ArmorColor;
                *((byte*)(ptr + 68)) = packet.Nobility;
                *((uint*)(ptr + 76)) = packet.NobilityRank;
                PacketBuilder.AppendNetStringPacker(ptr + 94, packet.Names);