About the r8577 for the length of the 082D packet

Wrote new code? Fixed a bug? Want to discuss technical stuff? Feel free to post it here.

Moderator: Moderators

Message
Author
sofax222
Developers
Developers
Posts: 214
Joined: 24 Nov 2010, 03:08
Noob?: Yes

About the r8577 for the length of the 082D packet

#1 Post by sofax222 »

In the r8577,
change the

Code: Select all

		'082D' => ['received_characters_info', 'v C5 x20', [qw(packet_len normal_slot premium_slot billing_slot producible_slot valid_slot)]],
to

Code: Select all

		'082D' => ['received_characters_info', 'x2 C5 x20', [qw(normal_slot premium_slot billing_slot producible_slot valid_slot)]],
With twRO, the length of the 082D packet is "0" in recvpackets.txt,
So, the 2nd, 3rd bytes of this packet should be 'v' not 'x2'

Any way, the 082D packet is not a fixed length packet.
The the 2nd, 3rd bytes of this packet should be the length of the packet !!
Last edited by sofax222 on 15 May 2013, 19:21, edited 1 time in total.

EternalHarvest
Developers
Developers
Posts: 1798
Joined: 05 Dec 2008, 05:42
Noob?: Yes

Re: About the r8577 for the length of the 082D packet

#2 Post by EternalHarvest »

Parse (used normally) and reconstruct (used in XKore 2) functions already know that, they do not use this information from serverTypes (they use recvpackets to determine whether there should be length field at start of the packet). Is it needed in any other place?

We can keep it in this unpack string, but it probably wouldn't be used anywhere.

sofax222
Developers
Developers
Posts: 214
Joined: 24 Nov 2010, 03:08
Noob?: Yes

Re: About the r8577 for the length of the 082D packet

#3 Post by sofax222 »

Sorry !
I forgot the reconstruct function will generate the length bytes for packet !!

Post Reply