It is currently Wed Oct 15, 2008 10:56 pm

All times are UTC - 8 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Packet size (2D - KR)
PostPosted: Sat Mar 29, 2008 4:41 am 
Offline

Joined: Tue Mar 20, 2007 7:17 am
Posts: 101
Location: Poland
I wish to hook a packet.
It`s size is 20 bytes. All is ok in 2D client.
But I need set a packet size to 21 (for KR), when I set it KR works fine but 2D client freeze.

Setting variable size crashes 2D client.

Any idea how to solve this? Set a second (for KR) packet lenght ?


Top
 Profile  
 
 Post subject:
PostPosted: Sun Mar 30, 2008 4:47 am 
Offline
Packet Maintainer

Joined: Thu Feb 02, 2006 8:33 am
Posts: 300
Did you try to set the size to variable and do the calculation
of the packets this way:

Code:
if(who.isUOKR)
code for the 21 bytes KR packet here
else
code for the 20 bytes 2D packet here
endif


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 8 hours


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Style based on FI Subice by phpBBservice.nl